Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
xla.Xla Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/compiler/xla/xla.proto
package xla;
public final class Xla {
private Xla() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface HloReducePrecisionOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.HloReducePrecisionOptions)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
int getLocationValue();
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
xla.Xla.HloReducePrecisionOptions.Location getLocation();
/**
*
* Exponent and mantissa bit counts for the reduced precision.
*
*
* uint32 exponent_bits = 2;
*/
int getExponentBits();
/**
* uint32 mantissa_bits = 3;
*/
int getMantissaBits();
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
java.util.List getOpcodesToSuffixList();
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
int getOpcodesToSuffixCount();
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
int getOpcodesToSuffix(int index);
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
java.util.List
getOpnameSubstringsToSuffixList();
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
int getOpnameSubstringsToSuffixCount();
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
java.lang.String getOpnameSubstringsToSuffix(int index);
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
com.google.protobuf.ByteString
getOpnameSubstringsToSuffixBytes(int index);
}
/**
*
* Options for the HLO insert-reduce-precision-operations pass.
*
*
* Protobuf type {@code xla.HloReducePrecisionOptions}
*/
public static final class HloReducePrecisionOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.HloReducePrecisionOptions)
HloReducePrecisionOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use HloReducePrecisionOptions.newBuilder() to construct.
private HloReducePrecisionOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HloReducePrecisionOptions() {
location_ = 0;
exponentBits_ = 0;
mantissaBits_ = 0;
opcodesToSuffix_ = java.util.Collections.emptyList();
opnameSubstringsToSuffix_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HloReducePrecisionOptions(
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: {
int rawValue = input.readEnum();
location_ = rawValue;
break;
}
case 16: {
exponentBits_ = input.readUInt32();
break;
}
case 24: {
mantissaBits_ = input.readUInt32();
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
opcodesToSuffix_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
opcodesToSuffix_.add(input.readUInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
opcodesToSuffix_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
opcodesToSuffix_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
opnameSubstringsToSuffix_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
opnameSubstringsToSuffix_.add(s);
break;
}
default: {
if (!parseUnknownFieldProto3(
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_ & 0x00000008) == 0x00000008)) {
opcodesToSuffix_ = java.util.Collections.unmodifiableList(opcodesToSuffix_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
opnameSubstringsToSuffix_ = opnameSubstringsToSuffix_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_HloReducePrecisionOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_HloReducePrecisionOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.HloReducePrecisionOptions.class, xla.Xla.HloReducePrecisionOptions.Builder.class);
}
/**
*
* Where and when the reduce-precision operations will be added.
*
*
* Protobuf enum {@code xla.HloReducePrecisionOptions.Location}
*/
public enum Location
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Add reduce-precision operations to the inputs of selected instructions.
* This is done before any optimization occurs.
*
*
* OP_INPUTS = 0;
*/
OP_INPUTS(0),
/**
*
* Add reduce-precision operations to the outputs of selected instructions.
* This is done before any optimization occurs.
*
*
* OP_OUTPUTS = 1;
*/
OP_OUTPUTS(1),
/**
*
* After operation-fusion occurs, add reduce-precision operations to the
* outputs of any selected instructions that have not been fused into
* fusion instructions.
*
*
* UNFUSED_OP_OUTPUTS = 2;
*/
UNFUSED_OP_OUTPUTS(2),
/**
*
* After operation-fusion occurs, add reduce-precision operations to the
* outputs of any fusion instructions that contain operations matching the
* selection criteria.
*
*
* FUSION_INPUTS_BY_CONTENT = 3;
*/
FUSION_INPUTS_BY_CONTENT(3),
/**
*
* After operation-fusion occurs, add reduce-precision operations to the
* outputs of any fusion instructions that contain operations matching the
* selection criteria.
*
*
* FUSION_OUTPUTS_BY_CONTENT = 4;
*/
FUSION_OUTPUTS_BY_CONTENT(4),
UNRECOGNIZED(-1),
;
/**
*
* Add reduce-precision operations to the inputs of selected instructions.
* This is done before any optimization occurs.
*
*
* OP_INPUTS = 0;
*/
public static final int OP_INPUTS_VALUE = 0;
/**
*
* Add reduce-precision operations to the outputs of selected instructions.
* This is done before any optimization occurs.
*
*
* OP_OUTPUTS = 1;
*/
public static final int OP_OUTPUTS_VALUE = 1;
/**
*
* After operation-fusion occurs, add reduce-precision operations to the
* outputs of any selected instructions that have not been fused into
* fusion instructions.
*
*
* UNFUSED_OP_OUTPUTS = 2;
*/
public static final int UNFUSED_OP_OUTPUTS_VALUE = 2;
/**
*
* After operation-fusion occurs, add reduce-precision operations to the
* outputs of any fusion instructions that contain operations matching the
* selection criteria.
*
*
* FUSION_INPUTS_BY_CONTENT = 3;
*/
public static final int FUSION_INPUTS_BY_CONTENT_VALUE = 3;
/**
*
* After operation-fusion occurs, add reduce-precision operations to the
* outputs of any fusion instructions that contain operations matching the
* selection criteria.
*
*
* FUSION_OUTPUTS_BY_CONTENT = 4;
*/
public static final int FUSION_OUTPUTS_BY_CONTENT_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;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Location valueOf(int value) {
return forNumber(value);
}
public static Location forNumber(int value) {
switch (value) {
case 0: return OP_INPUTS;
case 1: return OP_OUTPUTS;
case 2: return UNFUSED_OP_OUTPUTS;
case 3: return FUSION_INPUTS_BY_CONTENT;
case 4: return FUSION_OUTPUTS_BY_CONTENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Location> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Location findValueByNumber(int number) {
return Location.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
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 xla.Xla.HloReducePrecisionOptions.getDescriptor().getEnumTypes().get(0);
}
private static final Location[] VALUES = values();
public static Location 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 Location(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:xla.HloReducePrecisionOptions.Location)
}
private int bitField0_;
public static final int LOCATION_FIELD_NUMBER = 1;
private int location_;
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public int getLocationValue() {
return location_;
}
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public xla.Xla.HloReducePrecisionOptions.Location getLocation() {
@SuppressWarnings("deprecation")
xla.Xla.HloReducePrecisionOptions.Location result = xla.Xla.HloReducePrecisionOptions.Location.valueOf(location_);
return result == null ? xla.Xla.HloReducePrecisionOptions.Location.UNRECOGNIZED : result;
}
public static final int EXPONENT_BITS_FIELD_NUMBER = 2;
private int exponentBits_;
/**
*
* Exponent and mantissa bit counts for the reduced precision.
*
*
* uint32 exponent_bits = 2;
*/
public int getExponentBits() {
return exponentBits_;
}
public static final int MANTISSA_BITS_FIELD_NUMBER = 3;
private int mantissaBits_;
/**
* uint32 mantissa_bits = 3;
*/
public int getMantissaBits() {
return mantissaBits_;
}
public static final int OPCODES_TO_SUFFIX_FIELD_NUMBER = 4;
private java.util.List opcodesToSuffix_;
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public java.util.List
getOpcodesToSuffixList() {
return opcodesToSuffix_;
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public int getOpcodesToSuffixCount() {
return opcodesToSuffix_.size();
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public int getOpcodesToSuffix(int index) {
return opcodesToSuffix_.get(index);
}
private int opcodesToSuffixMemoizedSerializedSize = -1;
public static final int OPNAME_SUBSTRINGS_TO_SUFFIX_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList opnameSubstringsToSuffix_;
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public com.google.protobuf.ProtocolStringList
getOpnameSubstringsToSuffixList() {
return opnameSubstringsToSuffix_;
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public int getOpnameSubstringsToSuffixCount() {
return opnameSubstringsToSuffix_.size();
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public java.lang.String getOpnameSubstringsToSuffix(int index) {
return opnameSubstringsToSuffix_.get(index);
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public com.google.protobuf.ByteString
getOpnameSubstringsToSuffixBytes(int index) {
return opnameSubstringsToSuffix_.getByteString(index);
}
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 (location_ != xla.Xla.HloReducePrecisionOptions.Location.OP_INPUTS.getNumber()) {
output.writeEnum(1, location_);
}
if (exponentBits_ != 0) {
output.writeUInt32(2, exponentBits_);
}
if (mantissaBits_ != 0) {
output.writeUInt32(3, mantissaBits_);
}
if (getOpcodesToSuffixList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(opcodesToSuffixMemoizedSerializedSize);
}
for (int i = 0; i < opcodesToSuffix_.size(); i++) {
output.writeUInt32NoTag(opcodesToSuffix_.get(i));
}
for (int i = 0; i < opnameSubstringsToSuffix_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, opnameSubstringsToSuffix_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (location_ != xla.Xla.HloReducePrecisionOptions.Location.OP_INPUTS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, location_);
}
if (exponentBits_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, exponentBits_);
}
if (mantissaBits_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, mantissaBits_);
}
{
int dataSize = 0;
for (int i = 0; i < opcodesToSuffix_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(opcodesToSuffix_.get(i));
}
size += dataSize;
if (!getOpcodesToSuffixList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
opcodesToSuffixMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < opnameSubstringsToSuffix_.size(); i++) {
dataSize += computeStringSizeNoTag(opnameSubstringsToSuffix_.getRaw(i));
}
size += dataSize;
size += 1 * getOpnameSubstringsToSuffixList().size();
}
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 xla.Xla.HloReducePrecisionOptions)) {
return super.equals(obj);
}
xla.Xla.HloReducePrecisionOptions other = (xla.Xla.HloReducePrecisionOptions) obj;
boolean result = true;
result = result && location_ == other.location_;
result = result && (getExponentBits()
== other.getExponentBits());
result = result && (getMantissaBits()
== other.getMantissaBits());
result = result && getOpcodesToSuffixList()
.equals(other.getOpcodesToSuffixList());
result = result && getOpnameSubstringsToSuffixList()
.equals(other.getOpnameSubstringsToSuffixList());
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) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + location_;
hash = (37 * hash) + EXPONENT_BITS_FIELD_NUMBER;
hash = (53 * hash) + getExponentBits();
hash = (37 * hash) + MANTISSA_BITS_FIELD_NUMBER;
hash = (53 * hash) + getMantissaBits();
if (getOpcodesToSuffixCount() > 0) {
hash = (37 * hash) + OPCODES_TO_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getOpcodesToSuffixList().hashCode();
}
if (getOpnameSubstringsToSuffixCount() > 0) {
hash = (37 * hash) + OPNAME_SUBSTRINGS_TO_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getOpnameSubstringsToSuffixList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.HloReducePrecisionOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.HloReducePrecisionOptions 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 xla.Xla.HloReducePrecisionOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.HloReducePrecisionOptions 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 xla.Xla.HloReducePrecisionOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.HloReducePrecisionOptions 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(xla.Xla.HloReducePrecisionOptions 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;
}
/**
*
* Options for the HLO insert-reduce-precision-operations pass.
*
*
* Protobuf type {@code xla.HloReducePrecisionOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.HloReducePrecisionOptions)
xla.Xla.HloReducePrecisionOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_HloReducePrecisionOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_HloReducePrecisionOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.HloReducePrecisionOptions.class, xla.Xla.HloReducePrecisionOptions.Builder.class);
}
// Construct using xla.Xla.HloReducePrecisionOptions.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();
location_ = 0;
exponentBits_ = 0;
mantissaBits_ = 0;
opcodesToSuffix_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
opnameSubstringsToSuffix_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_HloReducePrecisionOptions_descriptor;
}
@java.lang.Override
public xla.Xla.HloReducePrecisionOptions getDefaultInstanceForType() {
return xla.Xla.HloReducePrecisionOptions.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.HloReducePrecisionOptions build() {
xla.Xla.HloReducePrecisionOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.HloReducePrecisionOptions buildPartial() {
xla.Xla.HloReducePrecisionOptions result = new xla.Xla.HloReducePrecisionOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.location_ = location_;
result.exponentBits_ = exponentBits_;
result.mantissaBits_ = mantissaBits_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
opcodesToSuffix_ = java.util.Collections.unmodifiableList(opcodesToSuffix_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.opcodesToSuffix_ = opcodesToSuffix_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
opnameSubstringsToSuffix_ = opnameSubstringsToSuffix_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.opnameSubstringsToSuffix_ = opnameSubstringsToSuffix_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.HloReducePrecisionOptions) {
return mergeFrom((xla.Xla.HloReducePrecisionOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.HloReducePrecisionOptions other) {
if (other == xla.Xla.HloReducePrecisionOptions.getDefaultInstance()) return this;
if (other.location_ != 0) {
setLocationValue(other.getLocationValue());
}
if (other.getExponentBits() != 0) {
setExponentBits(other.getExponentBits());
}
if (other.getMantissaBits() != 0) {
setMantissaBits(other.getMantissaBits());
}
if (!other.opcodesToSuffix_.isEmpty()) {
if (opcodesToSuffix_.isEmpty()) {
opcodesToSuffix_ = other.opcodesToSuffix_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureOpcodesToSuffixIsMutable();
opcodesToSuffix_.addAll(other.opcodesToSuffix_);
}
onChanged();
}
if (!other.opnameSubstringsToSuffix_.isEmpty()) {
if (opnameSubstringsToSuffix_.isEmpty()) {
opnameSubstringsToSuffix_ = other.opnameSubstringsToSuffix_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureOpnameSubstringsToSuffixIsMutable();
opnameSubstringsToSuffix_.addAll(other.opnameSubstringsToSuffix_);
}
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 {
xla.Xla.HloReducePrecisionOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.HloReducePrecisionOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int location_ = 0;
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public int getLocationValue() {
return location_;
}
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public Builder setLocationValue(int value) {
location_ = value;
onChanged();
return this;
}
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public xla.Xla.HloReducePrecisionOptions.Location getLocation() {
@SuppressWarnings("deprecation")
xla.Xla.HloReducePrecisionOptions.Location result = xla.Xla.HloReducePrecisionOptions.Location.valueOf(location_);
return result == null ? xla.Xla.HloReducePrecisionOptions.Location.UNRECOGNIZED : result;
}
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public Builder setLocation(xla.Xla.HloReducePrecisionOptions.Location value) {
if (value == null) {
throw new NullPointerException();
}
location_ = value.getNumber();
onChanged();
return this;
}
/**
* .xla.HloReducePrecisionOptions.Location location = 1;
*/
public Builder clearLocation() {
location_ = 0;
onChanged();
return this;
}
private int exponentBits_ ;
/**
*
* Exponent and mantissa bit counts for the reduced precision.
*
*
* uint32 exponent_bits = 2;
*/
public int getExponentBits() {
return exponentBits_;
}
/**
*
* Exponent and mantissa bit counts for the reduced precision.
*
*
* uint32 exponent_bits = 2;
*/
public Builder setExponentBits(int value) {
exponentBits_ = value;
onChanged();
return this;
}
/**
*
* Exponent and mantissa bit counts for the reduced precision.
*
*
* uint32 exponent_bits = 2;
*/
public Builder clearExponentBits() {
exponentBits_ = 0;
onChanged();
return this;
}
private int mantissaBits_ ;
/**
* uint32 mantissa_bits = 3;
*/
public int getMantissaBits() {
return mantissaBits_;
}
/**
* uint32 mantissa_bits = 3;
*/
public Builder setMantissaBits(int value) {
mantissaBits_ = value;
onChanged();
return this;
}
/**
* uint32 mantissa_bits = 3;
*/
public Builder clearMantissaBits() {
mantissaBits_ = 0;
onChanged();
return this;
}
private java.util.List opcodesToSuffix_ = java.util.Collections.emptyList();
private void ensureOpcodesToSuffixIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
opcodesToSuffix_ = new java.util.ArrayList(opcodesToSuffix_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public java.util.List
getOpcodesToSuffixList() {
return java.util.Collections.unmodifiableList(opcodesToSuffix_);
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public int getOpcodesToSuffixCount() {
return opcodesToSuffix_.size();
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public int getOpcodesToSuffix(int index) {
return opcodesToSuffix_.get(index);
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public Builder setOpcodesToSuffix(
int index, int value) {
ensureOpcodesToSuffixIsMutable();
opcodesToSuffix_.set(index, value);
onChanged();
return this;
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public Builder addOpcodesToSuffix(int value) {
ensureOpcodesToSuffixIsMutable();
opcodesToSuffix_.add(value);
onChanged();
return this;
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public Builder addAllOpcodesToSuffix(
java.lang.Iterable extends java.lang.Integer> values) {
ensureOpcodesToSuffixIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, opcodesToSuffix_);
onChanged();
return this;
}
/**
*
* Operations matching these opcodes should be suffixed with reduce-precision
* operations.
*
*
* repeated uint32 opcodes_to_suffix = 4;
*/
public Builder clearOpcodesToSuffix() {
opcodesToSuffix_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList opnameSubstringsToSuffix_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureOpnameSubstringsToSuffixIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
opnameSubstringsToSuffix_ = new com.google.protobuf.LazyStringArrayList(opnameSubstringsToSuffix_);
bitField0_ |= 0x00000010;
}
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public com.google.protobuf.ProtocolStringList
getOpnameSubstringsToSuffixList() {
return opnameSubstringsToSuffix_.getUnmodifiableView();
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public int getOpnameSubstringsToSuffixCount() {
return opnameSubstringsToSuffix_.size();
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public java.lang.String getOpnameSubstringsToSuffix(int index) {
return opnameSubstringsToSuffix_.get(index);
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public com.google.protobuf.ByteString
getOpnameSubstringsToSuffixBytes(int index) {
return opnameSubstringsToSuffix_.getByteString(index);
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public Builder setOpnameSubstringsToSuffix(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOpnameSubstringsToSuffixIsMutable();
opnameSubstringsToSuffix_.set(index, value);
onChanged();
return this;
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public Builder addOpnameSubstringsToSuffix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureOpnameSubstringsToSuffixIsMutable();
opnameSubstringsToSuffix_.add(value);
onChanged();
return this;
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public Builder addAllOpnameSubstringsToSuffix(
java.lang.Iterable values) {
ensureOpnameSubstringsToSuffixIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, opnameSubstringsToSuffix_);
onChanged();
return this;
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public Builder clearOpnameSubstringsToSuffix() {
opnameSubstringsToSuffix_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Operations with names containing these substrings should be suffixed with
* reduce-precision operations.
*
*
* repeated string opname_substrings_to_suffix = 5;
*/
public Builder addOpnameSubstringsToSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureOpnameSubstringsToSuffixIsMutable();
opnameSubstringsToSuffix_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.HloReducePrecisionOptions)
}
// @@protoc_insertion_point(class_scope:xla.HloReducePrecisionOptions)
private static final xla.Xla.HloReducePrecisionOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.HloReducePrecisionOptions();
}
public static xla.Xla.HloReducePrecisionOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HloReducePrecisionOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HloReducePrecisionOptions(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 xla.Xla.HloReducePrecisionOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DebugOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.DebugOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
java.lang.String getXlaGenerateHloGraph();
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
com.google.protobuf.ByteString
getXlaGenerateHloGraphBytes();
/**
*
* Show addresses of HLO ops in graph dump.
*
*
* bool xla_hlo_graph_addresses = 2;
*/
boolean getXlaHloGraphAddresses();
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
java.lang.String getXlaHloGraphPath();
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
com.google.protobuf.ByteString
getXlaHloGraphPathBytes();
/**
*
* Dump HLO graphs as TensorFlow GraphDefs.
*
*
* bool xla_hlo_dump_as_graphdef = 5;
*/
boolean getXlaHloDumpAsGraphdef();
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
java.lang.String getXlaLogHloText();
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
com.google.protobuf.ByteString
getXlaLogHloTextBytes();
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
java.lang.String getXlaGenerateHloTextTo();
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
com.google.protobuf.ByteString
getXlaGenerateHloTextToBytes();
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
java.lang.String getXlaDumpOptimizedHloProtoTo();
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
com.google.protobuf.ByteString
getXlaDumpOptimizedHloProtoToBytes();
/**
*
* Instrument the computation to collect per-HLO cycle counts.
*
*
* bool xla_hlo_profile = 9;
*/
boolean getXlaHloProfile();
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
java.lang.String getXlaDumpComputationsTo();
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
com.google.protobuf.ByteString
getXlaDumpComputationsToBytes();
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
java.lang.String getXlaDumpExecutionsTo();
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
com.google.protobuf.ByteString
getXlaDumpExecutionsToBytes();
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
java.util.List
getXlaDisableHloPassesList();
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
int getXlaDisableHloPassesCount();
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
java.lang.String getXlaDisableHloPasses(int index);
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
com.google.protobuf.ByteString
getXlaDisableHloPassesBytes(int index);
/**
*
* Numerical optimization level for the XLA compiler backend; the specific
* interpretation of this value is left to the backends.
*
*
* int32 xla_backend_optimization_level = 31;
*/
int getXlaBackendOptimizationLevel();
/**
*
* Embed the compiler IR as a string in the executable.
*
*
* bool xla_embed_ir_in_executable = 33;
*/
boolean getXlaEmbedIrInExecutable();
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
java.lang.String getXlaDumpIrTo();
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
com.google.protobuf.ByteString
getXlaDumpIrToBytes();
/**
*
* Eliminate implicit broadcasts when lowering user computations to HLO
* instructions; use explicit broadcast instead.
*
*
* bool xla_eliminate_hlo_implicit_broadcast = 35;
*/
boolean getXlaEliminateHloImplicitBroadcast();
/**
*
* When generating calls to Eigen in the CPU backend, use multi-threaded Eigen
* mode.
*
*
* bool xla_cpu_multi_thread_eigen = 60;
*/
boolean getXlaCpuMultiThreadEigen();
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
java.lang.String getXlaGpuCudaDataDir();
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
com.google.protobuf.ByteString
getXlaGpuCudaDataDirBytes();
/**
*
* Enable flush-to-zero semantics in the GPU backend.
*
*
* bool xla_gpu_ftz = 62;
*/
boolean getXlaGpuFtz();
/**
*
* Disable multi-streaming in the GPU backend.
*
*
* bool xla_gpu_disable_multi_streaming = 63;
*/
boolean getXlaGpuDisableMultiStreaming();
/**
*
* If true, in LLVM-based backends, emit !alias.scope metadata in
* generated IR.
*
*
* bool xla_llvm_enable_alias_scope_metadata = 70;
*/
boolean getXlaLlvmEnableAliasScopeMetadata();
/**
*
* If true, in LLVM-based backends, emit !noalias metadata in the
* generated IR.
*
*
* bool xla_llvm_enable_noalias_metadata = 71;
*/
boolean getXlaLlvmEnableNoaliasMetadata();
/**
*
* If true, in LLVM-based backends, emit !invariant.load metadata in
* the generated IR.
*
*
* bool xla_llvm_enable_invariant_load_metadata = 72;
*/
boolean getXlaLlvmEnableInvariantLoadMetadata();
/**
*
* If true, a set of expensive LLVM optimization passes will not be run.
*
*
* bool xla_llvm_disable_expensive_passes = 73;
*/
boolean getXlaLlvmDisableExpensivePasses();
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
java.util.List
getHloReducePrecisionOptionsList();
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
xla.Xla.HloReducePrecisionOptions getHloReducePrecisionOptions(int index);
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
int getHloReducePrecisionOptionsCount();
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
java.util.List extends xla.Xla.HloReducePrecisionOptionsOrBuilder>
getHloReducePrecisionOptionsOrBuilderList();
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
xla.Xla.HloReducePrecisionOptionsOrBuilder getHloReducePrecisionOptionsOrBuilder(
int index);
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run n! times with all permunations of layouts for the
* output shape in rank n. For example, with a 3D shape, all permutations of
* the set {0, 1, 2} are tried.
*
*
* bool xla_test_all_output_layouts = 90;
*/
boolean getXlaTestAllOutputLayouts();
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run for all permunations of layouts of all input
* arguments. For example, with 2 input arguments in 2D and 4D shapes, the
* computation will run 2! * 4! times.
*
*
* bool xla_test_all_input_layouts = 91;
*/
boolean getXlaTestAllInputLayouts();
/**
*
* Assign colors based on sharding information when generating the Graphviz
* HLO graph.
*
*
* bool xla_hlo_graph_sharding_color = 92;
*/
boolean getXlaHloGraphShardingColor();
/**
*
* Prefix the name scopes of the TF graph exports with "devX" device
* assignments, if available.
*
*
* bool xla_hlo_tfgraph_device_scopes = 93;
*/
boolean getXlaHloTfgraphDeviceScopes();
/**
*
* If true, the GPU backend is free to use cudnn for HLO batch normalization
* ops.
*
*
* bool xla_gpu_use_cudnn_batchnorm = 94;
*/
boolean getXlaGpuUseCudnnBatchnorm();
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
java.lang.String getXlaDumpUnoptimizedHloProtoTo();
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
com.google.protobuf.ByteString
getXlaDumpUnoptimizedHloProtoToBytes();
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
java.lang.String getXlaDumpPerPassHloProtoTo();
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
com.google.protobuf.ByteString
getXlaDumpPerPassHloProtoToBytes();
/**
*
* Generate calls to MKL-DNN in the CPU backend.
*
*
* bool xla_cpu_use_mkl_dnn = 97;
*/
boolean getXlaCpuUseMklDnn();
/**
*
* Maximum kernel unroll factor for the GPU backend.
*
*
* int32 xla_gpu_max_kernel_unroll_factor = 98;
*/
int getXlaGpuMaxKernelUnrollFactor();
/**
*
* When true, "unsafe" mathematical optimizations are enabled. These
* transformations include but are not limited to:
* - Reducing the precision of operations (e.g. using an approximate sin
* function, or transforming x/y into x * (1/y)).
* - Assuming that operations never produce or consume NaN or +/- Inf.
* - Assuming that +0 and -0 are indistinguishable.
*
*
* bool xla_cpu_enable_fast_math = 99;
*/
boolean getXlaCpuEnableFastMath();
/**
* bool xla_gpu_enable_fast_math = 100;
*/
boolean getXlaGpuEnableFastMath();
/**
*
* Crashes the program when any kind of verification fails, instead of just
* logging the failures. One example is cross checking of convolution results
* among different algorithms.
*
*
* bool xla_gpu_crash_on_verification_failures = 101;
*/
boolean getXlaGpuCrashOnVerificationFailures();
/**
*
* Force the host platform to pretend that there are these many host
* "devices". All these devices are backed by the same threadpool. Defaults
* to 1.
* Setting this to anything other than 1 can increase overhead from context
* switching but we let the user override this behavior to help run tests on
* the host that run models in parallel across multiple devices.
*
*
* int32 xla_force_host_platform_device_count = 102;
*/
int getXlaForceHostPlatformDeviceCount();
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
int getXlaBackendExtraOptionsCount();
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
boolean containsXlaBackendExtraOptions(
java.lang.String key);
/**
* Use {@link #getXlaBackendExtraOptionsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getXlaBackendExtraOptions();
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
java.util.Map
getXlaBackendExtraOptionsMap();
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
java.lang.String getXlaBackendExtraOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
java.lang.String getXlaBackendExtraOptionsOrThrow(
java.lang.String key);
}
/**
*
* Debugging options for XLA. These options may change at any time - there are
* no guarantees about backward or forward compatibility for these fields.
*
*
* Protobuf type {@code xla.DebugOptions}
*/
public static final class DebugOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.DebugOptions)
DebugOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DebugOptions.newBuilder() to construct.
private DebugOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DebugOptions() {
xlaGenerateHloGraph_ = "";
xlaHloGraphAddresses_ = false;
xlaHloGraphPath_ = "";
xlaHloDumpAsGraphdef_ = false;
xlaLogHloText_ = "";
xlaGenerateHloTextTo_ = "";
xlaDumpOptimizedHloProtoTo_ = "";
xlaHloProfile_ = false;
xlaDumpComputationsTo_ = "";
xlaDumpExecutionsTo_ = "";
xlaDisableHloPasses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
xlaBackendOptimizationLevel_ = 0;
xlaEmbedIrInExecutable_ = false;
xlaDumpIrTo_ = "";
xlaEliminateHloImplicitBroadcast_ = false;
xlaCpuMultiThreadEigen_ = false;
xlaGpuCudaDataDir_ = "";
xlaGpuFtz_ = false;
xlaGpuDisableMultiStreaming_ = false;
xlaLlvmEnableAliasScopeMetadata_ = false;
xlaLlvmEnableNoaliasMetadata_ = false;
xlaLlvmEnableInvariantLoadMetadata_ = false;
xlaLlvmDisableExpensivePasses_ = false;
hloReducePrecisionOptions_ = java.util.Collections.emptyList();
xlaTestAllOutputLayouts_ = false;
xlaTestAllInputLayouts_ = false;
xlaHloGraphShardingColor_ = false;
xlaHloTfgraphDeviceScopes_ = false;
xlaGpuUseCudnnBatchnorm_ = false;
xlaDumpUnoptimizedHloProtoTo_ = "";
xlaDumpPerPassHloProtoTo_ = "";
xlaCpuUseMklDnn_ = false;
xlaGpuMaxKernelUnrollFactor_ = 0;
xlaCpuEnableFastMath_ = false;
xlaGpuEnableFastMath_ = false;
xlaGpuCrashOnVerificationFailures_ = false;
xlaForceHostPlatformDeviceCount_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DebugOptions(
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;
int mutable_bitField1_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
xlaGenerateHloGraph_ = s;
break;
}
case 16: {
xlaHloGraphAddresses_ = input.readBool();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
xlaHloGraphPath_ = s;
break;
}
case 40: {
xlaHloDumpAsGraphdef_ = input.readBool();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
xlaLogHloText_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
xlaGenerateHloTextTo_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
xlaDumpOptimizedHloProtoTo_ = s;
break;
}
case 72: {
xlaHloProfile_ = input.readBool();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
xlaDumpComputationsTo_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
xlaDumpExecutionsTo_ = s;
break;
}
case 242: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
xlaDisableHloPasses_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000400;
}
xlaDisableHloPasses_.add(s);
break;
}
case 248: {
xlaBackendOptimizationLevel_ = input.readInt32();
break;
}
case 264: {
xlaEmbedIrInExecutable_ = input.readBool();
break;
}
case 274: {
java.lang.String s = input.readStringRequireUtf8();
xlaDumpIrTo_ = s;
break;
}
case 280: {
xlaEliminateHloImplicitBroadcast_ = input.readBool();
break;
}
case 480: {
xlaCpuMultiThreadEigen_ = input.readBool();
break;
}
case 490: {
java.lang.String s = input.readStringRequireUtf8();
xlaGpuCudaDataDir_ = s;
break;
}
case 496: {
xlaGpuFtz_ = input.readBool();
break;
}
case 504: {
xlaGpuDisableMultiStreaming_ = input.readBool();
break;
}
case 560: {
xlaLlvmEnableAliasScopeMetadata_ = input.readBool();
break;
}
case 568: {
xlaLlvmEnableNoaliasMetadata_ = input.readBool();
break;
}
case 576: {
xlaLlvmEnableInvariantLoadMetadata_ = input.readBool();
break;
}
case 584: {
xlaLlvmDisableExpensivePasses_ = input.readBool();
break;
}
case 642: {
if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
hloReducePrecisionOptions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00800000;
}
hloReducePrecisionOptions_.add(
input.readMessage(xla.Xla.HloReducePrecisionOptions.parser(), extensionRegistry));
break;
}
case 720: {
xlaTestAllOutputLayouts_ = input.readBool();
break;
}
case 728: {
xlaTestAllInputLayouts_ = input.readBool();
break;
}
case 736: {
xlaHloGraphShardingColor_ = input.readBool();
break;
}
case 744: {
xlaHloTfgraphDeviceScopes_ = input.readBool();
break;
}
case 752: {
xlaGpuUseCudnnBatchnorm_ = input.readBool();
break;
}
case 762: {
java.lang.String s = input.readStringRequireUtf8();
xlaDumpUnoptimizedHloProtoTo_ = s;
break;
}
case 770: {
java.lang.String s = input.readStringRequireUtf8();
xlaDumpPerPassHloProtoTo_ = s;
break;
}
case 776: {
xlaCpuUseMklDnn_ = input.readBool();
break;
}
case 784: {
xlaGpuMaxKernelUnrollFactor_ = input.readInt32();
break;
}
case 792: {
xlaCpuEnableFastMath_ = input.readBool();
break;
}
case 800: {
xlaGpuEnableFastMath_ = input.readBool();
break;
}
case 808: {
xlaGpuCrashOnVerificationFailures_ = input.readBool();
break;
}
case 816: {
xlaForceHostPlatformDeviceCount_ = input.readInt32();
break;
}
case 4002: {
if (!((mutable_bitField1_ & 0x00000020) == 0x00000020)) {
xlaBackendExtraOptions_ = com.google.protobuf.MapField.newMapField(
XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry);
mutable_bitField1_ |= 0x00000020;
}
com.google.protobuf.MapEntry
xlaBackendExtraOptions__ = input.readMessage(
XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
xlaBackendExtraOptions_.getMutableMap().put(
xlaBackendExtraOptions__.getKey(), xlaBackendExtraOptions__.getValue());
break;
}
default: {
if (!parseUnknownFieldProto3(
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_ & 0x00000400) == 0x00000400)) {
xlaDisableHloPasses_ = xlaDisableHloPasses_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
hloReducePrecisionOptions_ = java.util.Collections.unmodifiableList(hloReducePrecisionOptions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_DebugOptions_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 500:
return internalGetXlaBackendExtraOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_DebugOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.DebugOptions.class, xla.Xla.DebugOptions.Builder.class);
}
private int bitField0_;
private int bitField1_;
public static final int XLA_GENERATE_HLO_GRAPH_FIELD_NUMBER = 1;
private volatile java.lang.Object xlaGenerateHloGraph_;
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public java.lang.String getXlaGenerateHloGraph() {
java.lang.Object ref = xlaGenerateHloGraph_;
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();
xlaGenerateHloGraph_ = s;
return s;
}
}
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public com.google.protobuf.ByteString
getXlaGenerateHloGraphBytes() {
java.lang.Object ref = xlaGenerateHloGraph_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaGenerateHloGraph_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_HLO_GRAPH_ADDRESSES_FIELD_NUMBER = 2;
private boolean xlaHloGraphAddresses_;
/**
*
* Show addresses of HLO ops in graph dump.
*
*
* bool xla_hlo_graph_addresses = 2;
*/
public boolean getXlaHloGraphAddresses() {
return xlaHloGraphAddresses_;
}
public static final int XLA_HLO_GRAPH_PATH_FIELD_NUMBER = 4;
private volatile java.lang.Object xlaHloGraphPath_;
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public java.lang.String getXlaHloGraphPath() {
java.lang.Object ref = xlaHloGraphPath_;
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();
xlaHloGraphPath_ = s;
return s;
}
}
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public com.google.protobuf.ByteString
getXlaHloGraphPathBytes() {
java.lang.Object ref = xlaHloGraphPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaHloGraphPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_HLO_DUMP_AS_GRAPHDEF_FIELD_NUMBER = 5;
private boolean xlaHloDumpAsGraphdef_;
/**
*
* Dump HLO graphs as TensorFlow GraphDefs.
*
*
* bool xla_hlo_dump_as_graphdef = 5;
*/
public boolean getXlaHloDumpAsGraphdef() {
return xlaHloDumpAsGraphdef_;
}
public static final int XLA_LOG_HLO_TEXT_FIELD_NUMBER = 6;
private volatile java.lang.Object xlaLogHloText_;
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public java.lang.String getXlaLogHloText() {
java.lang.Object ref = xlaLogHloText_;
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();
xlaLogHloText_ = s;
return s;
}
}
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public com.google.protobuf.ByteString
getXlaLogHloTextBytes() {
java.lang.Object ref = xlaLogHloText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaLogHloText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_GENERATE_HLO_TEXT_TO_FIELD_NUMBER = 7;
private volatile java.lang.Object xlaGenerateHloTextTo_;
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public java.lang.String getXlaGenerateHloTextTo() {
java.lang.Object ref = xlaGenerateHloTextTo_;
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();
xlaGenerateHloTextTo_ = s;
return s;
}
}
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public com.google.protobuf.ByteString
getXlaGenerateHloTextToBytes() {
java.lang.Object ref = xlaGenerateHloTextTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaGenerateHloTextTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_DUMP_OPTIMIZED_HLO_PROTO_TO_FIELD_NUMBER = 8;
private volatile java.lang.Object xlaDumpOptimizedHloProtoTo_;
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public java.lang.String getXlaDumpOptimizedHloProtoTo() {
java.lang.Object ref = xlaDumpOptimizedHloProtoTo_;
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();
xlaDumpOptimizedHloProtoTo_ = s;
return s;
}
}
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public com.google.protobuf.ByteString
getXlaDumpOptimizedHloProtoToBytes() {
java.lang.Object ref = xlaDumpOptimizedHloProtoTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpOptimizedHloProtoTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_HLO_PROFILE_FIELD_NUMBER = 9;
private boolean xlaHloProfile_;
/**
*
* Instrument the computation to collect per-HLO cycle counts.
*
*
* bool xla_hlo_profile = 9;
*/
public boolean getXlaHloProfile() {
return xlaHloProfile_;
}
public static final int XLA_DUMP_COMPUTATIONS_TO_FIELD_NUMBER = 10;
private volatile java.lang.Object xlaDumpComputationsTo_;
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public java.lang.String getXlaDumpComputationsTo() {
java.lang.Object ref = xlaDumpComputationsTo_;
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();
xlaDumpComputationsTo_ = s;
return s;
}
}
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public com.google.protobuf.ByteString
getXlaDumpComputationsToBytes() {
java.lang.Object ref = xlaDumpComputationsTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpComputationsTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_DUMP_EXECUTIONS_TO_FIELD_NUMBER = 11;
private volatile java.lang.Object xlaDumpExecutionsTo_;
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public java.lang.String getXlaDumpExecutionsTo() {
java.lang.Object ref = xlaDumpExecutionsTo_;
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();
xlaDumpExecutionsTo_ = s;
return s;
}
}
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public com.google.protobuf.ByteString
getXlaDumpExecutionsToBytes() {
java.lang.Object ref = xlaDumpExecutionsTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpExecutionsTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_DISABLE_HLO_PASSES_FIELD_NUMBER = 30;
private com.google.protobuf.LazyStringList xlaDisableHloPasses_;
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public com.google.protobuf.ProtocolStringList
getXlaDisableHloPassesList() {
return xlaDisableHloPasses_;
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public int getXlaDisableHloPassesCount() {
return xlaDisableHloPasses_.size();
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public java.lang.String getXlaDisableHloPasses(int index) {
return xlaDisableHloPasses_.get(index);
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public com.google.protobuf.ByteString
getXlaDisableHloPassesBytes(int index) {
return xlaDisableHloPasses_.getByteString(index);
}
public static final int XLA_BACKEND_OPTIMIZATION_LEVEL_FIELD_NUMBER = 31;
private int xlaBackendOptimizationLevel_;
/**
*
* Numerical optimization level for the XLA compiler backend; the specific
* interpretation of this value is left to the backends.
*
*
* int32 xla_backend_optimization_level = 31;
*/
public int getXlaBackendOptimizationLevel() {
return xlaBackendOptimizationLevel_;
}
public static final int XLA_EMBED_IR_IN_EXECUTABLE_FIELD_NUMBER = 33;
private boolean xlaEmbedIrInExecutable_;
/**
*
* Embed the compiler IR as a string in the executable.
*
*
* bool xla_embed_ir_in_executable = 33;
*/
public boolean getXlaEmbedIrInExecutable() {
return xlaEmbedIrInExecutable_;
}
public static final int XLA_DUMP_IR_TO_FIELD_NUMBER = 34;
private volatile java.lang.Object xlaDumpIrTo_;
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public java.lang.String getXlaDumpIrTo() {
java.lang.Object ref = xlaDumpIrTo_;
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();
xlaDumpIrTo_ = s;
return s;
}
}
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public com.google.protobuf.ByteString
getXlaDumpIrToBytes() {
java.lang.Object ref = xlaDumpIrTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpIrTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_ELIMINATE_HLO_IMPLICIT_BROADCAST_FIELD_NUMBER = 35;
private boolean xlaEliminateHloImplicitBroadcast_;
/**
*
* Eliminate implicit broadcasts when lowering user computations to HLO
* instructions; use explicit broadcast instead.
*
*
* bool xla_eliminate_hlo_implicit_broadcast = 35;
*/
public boolean getXlaEliminateHloImplicitBroadcast() {
return xlaEliminateHloImplicitBroadcast_;
}
public static final int XLA_CPU_MULTI_THREAD_EIGEN_FIELD_NUMBER = 60;
private boolean xlaCpuMultiThreadEigen_;
/**
*
* When generating calls to Eigen in the CPU backend, use multi-threaded Eigen
* mode.
*
*
* bool xla_cpu_multi_thread_eigen = 60;
*/
public boolean getXlaCpuMultiThreadEigen() {
return xlaCpuMultiThreadEigen_;
}
public static final int XLA_GPU_CUDA_DATA_DIR_FIELD_NUMBER = 61;
private volatile java.lang.Object xlaGpuCudaDataDir_;
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public java.lang.String getXlaGpuCudaDataDir() {
java.lang.Object ref = xlaGpuCudaDataDir_;
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();
xlaGpuCudaDataDir_ = s;
return s;
}
}
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public com.google.protobuf.ByteString
getXlaGpuCudaDataDirBytes() {
java.lang.Object ref = xlaGpuCudaDataDir_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaGpuCudaDataDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_GPU_FTZ_FIELD_NUMBER = 62;
private boolean xlaGpuFtz_;
/**
*
* Enable flush-to-zero semantics in the GPU backend.
*
*
* bool xla_gpu_ftz = 62;
*/
public boolean getXlaGpuFtz() {
return xlaGpuFtz_;
}
public static final int XLA_GPU_DISABLE_MULTI_STREAMING_FIELD_NUMBER = 63;
private boolean xlaGpuDisableMultiStreaming_;
/**
*
* Disable multi-streaming in the GPU backend.
*
*
* bool xla_gpu_disable_multi_streaming = 63;
*/
public boolean getXlaGpuDisableMultiStreaming() {
return xlaGpuDisableMultiStreaming_;
}
public static final int XLA_LLVM_ENABLE_ALIAS_SCOPE_METADATA_FIELD_NUMBER = 70;
private boolean xlaLlvmEnableAliasScopeMetadata_;
/**
*
* If true, in LLVM-based backends, emit !alias.scope metadata in
* generated IR.
*
*
* bool xla_llvm_enable_alias_scope_metadata = 70;
*/
public boolean getXlaLlvmEnableAliasScopeMetadata() {
return xlaLlvmEnableAliasScopeMetadata_;
}
public static final int XLA_LLVM_ENABLE_NOALIAS_METADATA_FIELD_NUMBER = 71;
private boolean xlaLlvmEnableNoaliasMetadata_;
/**
*
* If true, in LLVM-based backends, emit !noalias metadata in the
* generated IR.
*
*
* bool xla_llvm_enable_noalias_metadata = 71;
*/
public boolean getXlaLlvmEnableNoaliasMetadata() {
return xlaLlvmEnableNoaliasMetadata_;
}
public static final int XLA_LLVM_ENABLE_INVARIANT_LOAD_METADATA_FIELD_NUMBER = 72;
private boolean xlaLlvmEnableInvariantLoadMetadata_;
/**
*
* If true, in LLVM-based backends, emit !invariant.load metadata in
* the generated IR.
*
*
* bool xla_llvm_enable_invariant_load_metadata = 72;
*/
public boolean getXlaLlvmEnableInvariantLoadMetadata() {
return xlaLlvmEnableInvariantLoadMetadata_;
}
public static final int XLA_LLVM_DISABLE_EXPENSIVE_PASSES_FIELD_NUMBER = 73;
private boolean xlaLlvmDisableExpensivePasses_;
/**
*
* If true, a set of expensive LLVM optimization passes will not be run.
*
*
* bool xla_llvm_disable_expensive_passes = 73;
*/
public boolean getXlaLlvmDisableExpensivePasses() {
return xlaLlvmDisableExpensivePasses_;
}
public static final int HLO_REDUCE_PRECISION_OPTIONS_FIELD_NUMBER = 80;
private java.util.List hloReducePrecisionOptions_;
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public java.util.List getHloReducePrecisionOptionsList() {
return hloReducePrecisionOptions_;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public java.util.List extends xla.Xla.HloReducePrecisionOptionsOrBuilder>
getHloReducePrecisionOptionsOrBuilderList() {
return hloReducePrecisionOptions_;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public int getHloReducePrecisionOptionsCount() {
return hloReducePrecisionOptions_.size();
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptions getHloReducePrecisionOptions(int index) {
return hloReducePrecisionOptions_.get(index);
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptionsOrBuilder getHloReducePrecisionOptionsOrBuilder(
int index) {
return hloReducePrecisionOptions_.get(index);
}
public static final int XLA_TEST_ALL_OUTPUT_LAYOUTS_FIELD_NUMBER = 90;
private boolean xlaTestAllOutputLayouts_;
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run n! times with all permunations of layouts for the
* output shape in rank n. For example, with a 3D shape, all permutations of
* the set {0, 1, 2} are tried.
*
*
* bool xla_test_all_output_layouts = 90;
*/
public boolean getXlaTestAllOutputLayouts() {
return xlaTestAllOutputLayouts_;
}
public static final int XLA_TEST_ALL_INPUT_LAYOUTS_FIELD_NUMBER = 91;
private boolean xlaTestAllInputLayouts_;
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run for all permunations of layouts of all input
* arguments. For example, with 2 input arguments in 2D and 4D shapes, the
* computation will run 2! * 4! times.
*
*
* bool xla_test_all_input_layouts = 91;
*/
public boolean getXlaTestAllInputLayouts() {
return xlaTestAllInputLayouts_;
}
public static final int XLA_HLO_GRAPH_SHARDING_COLOR_FIELD_NUMBER = 92;
private boolean xlaHloGraphShardingColor_;
/**
*
* Assign colors based on sharding information when generating the Graphviz
* HLO graph.
*
*
* bool xla_hlo_graph_sharding_color = 92;
*/
public boolean getXlaHloGraphShardingColor() {
return xlaHloGraphShardingColor_;
}
public static final int XLA_HLO_TFGRAPH_DEVICE_SCOPES_FIELD_NUMBER = 93;
private boolean xlaHloTfgraphDeviceScopes_;
/**
*
* Prefix the name scopes of the TF graph exports with "devX" device
* assignments, if available.
*
*
* bool xla_hlo_tfgraph_device_scopes = 93;
*/
public boolean getXlaHloTfgraphDeviceScopes() {
return xlaHloTfgraphDeviceScopes_;
}
public static final int XLA_GPU_USE_CUDNN_BATCHNORM_FIELD_NUMBER = 94;
private boolean xlaGpuUseCudnnBatchnorm_;
/**
*
* If true, the GPU backend is free to use cudnn for HLO batch normalization
* ops.
*
*
* bool xla_gpu_use_cudnn_batchnorm = 94;
*/
public boolean getXlaGpuUseCudnnBatchnorm() {
return xlaGpuUseCudnnBatchnorm_;
}
public static final int XLA_DUMP_UNOPTIMIZED_HLO_PROTO_TO_FIELD_NUMBER = 95;
private volatile java.lang.Object xlaDumpUnoptimizedHloProtoTo_;
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public java.lang.String getXlaDumpUnoptimizedHloProtoTo() {
java.lang.Object ref = xlaDumpUnoptimizedHloProtoTo_;
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();
xlaDumpUnoptimizedHloProtoTo_ = s;
return s;
}
}
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public com.google.protobuf.ByteString
getXlaDumpUnoptimizedHloProtoToBytes() {
java.lang.Object ref = xlaDumpUnoptimizedHloProtoTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpUnoptimizedHloProtoTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_DUMP_PER_PASS_HLO_PROTO_TO_FIELD_NUMBER = 96;
private volatile java.lang.Object xlaDumpPerPassHloProtoTo_;
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public java.lang.String getXlaDumpPerPassHloProtoTo() {
java.lang.Object ref = xlaDumpPerPassHloProtoTo_;
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();
xlaDumpPerPassHloProtoTo_ = s;
return s;
}
}
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public com.google.protobuf.ByteString
getXlaDumpPerPassHloProtoToBytes() {
java.lang.Object ref = xlaDumpPerPassHloProtoTo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpPerPassHloProtoTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XLA_CPU_USE_MKL_DNN_FIELD_NUMBER = 97;
private boolean xlaCpuUseMklDnn_;
/**
*
* Generate calls to MKL-DNN in the CPU backend.
*
*
* bool xla_cpu_use_mkl_dnn = 97;
*/
public boolean getXlaCpuUseMklDnn() {
return xlaCpuUseMklDnn_;
}
public static final int XLA_GPU_MAX_KERNEL_UNROLL_FACTOR_FIELD_NUMBER = 98;
private int xlaGpuMaxKernelUnrollFactor_;
/**
*
* Maximum kernel unroll factor for the GPU backend.
*
*
* int32 xla_gpu_max_kernel_unroll_factor = 98;
*/
public int getXlaGpuMaxKernelUnrollFactor() {
return xlaGpuMaxKernelUnrollFactor_;
}
public static final int XLA_CPU_ENABLE_FAST_MATH_FIELD_NUMBER = 99;
private boolean xlaCpuEnableFastMath_;
/**
*
* When true, "unsafe" mathematical optimizations are enabled. These
* transformations include but are not limited to:
* - Reducing the precision of operations (e.g. using an approximate sin
* function, or transforming x/y into x * (1/y)).
* - Assuming that operations never produce or consume NaN or +/- Inf.
* - Assuming that +0 and -0 are indistinguishable.
*
*
* bool xla_cpu_enable_fast_math = 99;
*/
public boolean getXlaCpuEnableFastMath() {
return xlaCpuEnableFastMath_;
}
public static final int XLA_GPU_ENABLE_FAST_MATH_FIELD_NUMBER = 100;
private boolean xlaGpuEnableFastMath_;
/**
* bool xla_gpu_enable_fast_math = 100;
*/
public boolean getXlaGpuEnableFastMath() {
return xlaGpuEnableFastMath_;
}
public static final int XLA_GPU_CRASH_ON_VERIFICATION_FAILURES_FIELD_NUMBER = 101;
private boolean xlaGpuCrashOnVerificationFailures_;
/**
*
* Crashes the program when any kind of verification fails, instead of just
* logging the failures. One example is cross checking of convolution results
* among different algorithms.
*
*
* bool xla_gpu_crash_on_verification_failures = 101;
*/
public boolean getXlaGpuCrashOnVerificationFailures() {
return xlaGpuCrashOnVerificationFailures_;
}
public static final int XLA_FORCE_HOST_PLATFORM_DEVICE_COUNT_FIELD_NUMBER = 102;
private int xlaForceHostPlatformDeviceCount_;
/**
*
* Force the host platform to pretend that there are these many host
* "devices". All these devices are backed by the same threadpool. Defaults
* to 1.
* Setting this to anything other than 1 can increase overhead from context
* switching but we let the user override this behavior to help run tests on
* the host that run models in parallel across multiple devices.
*
*
* int32 xla_force_host_platform_device_count = 102;
*/
public int getXlaForceHostPlatformDeviceCount() {
return xlaForceHostPlatformDeviceCount_;
}
public static final int XLA_BACKEND_EXTRA_OPTIONS_FIELD_NUMBER = 500;
private static final class XlaBackendExtraOptionsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
xla.Xla.internal_static_xla_DebugOptions_XlaBackendExtraOptionsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> xlaBackendExtraOptions_;
private com.google.protobuf.MapField
internalGetXlaBackendExtraOptions() {
if (xlaBackendExtraOptions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry);
}
return xlaBackendExtraOptions_;
}
public int getXlaBackendExtraOptionsCount() {
return internalGetXlaBackendExtraOptions().getMap().size();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public boolean containsXlaBackendExtraOptions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetXlaBackendExtraOptions().getMap().containsKey(key);
}
/**
* Use {@link #getXlaBackendExtraOptionsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getXlaBackendExtraOptions() {
return getXlaBackendExtraOptionsMap();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public java.util.Map getXlaBackendExtraOptionsMap() {
return internalGetXlaBackendExtraOptions().getMap();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public java.lang.String getXlaBackendExtraOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetXlaBackendExtraOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public java.lang.String getXlaBackendExtraOptionsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetXlaBackendExtraOptions().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 (!getXlaGenerateHloGraphBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, xlaGenerateHloGraph_);
}
if (xlaHloGraphAddresses_ != false) {
output.writeBool(2, xlaHloGraphAddresses_);
}
if (!getXlaHloGraphPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, xlaHloGraphPath_);
}
if (xlaHloDumpAsGraphdef_ != false) {
output.writeBool(5, xlaHloDumpAsGraphdef_);
}
if (!getXlaLogHloTextBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, xlaLogHloText_);
}
if (!getXlaGenerateHloTextToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, xlaGenerateHloTextTo_);
}
if (!getXlaDumpOptimizedHloProtoToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, xlaDumpOptimizedHloProtoTo_);
}
if (xlaHloProfile_ != false) {
output.writeBool(9, xlaHloProfile_);
}
if (!getXlaDumpComputationsToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, xlaDumpComputationsTo_);
}
if (!getXlaDumpExecutionsToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, xlaDumpExecutionsTo_);
}
for (int i = 0; i < xlaDisableHloPasses_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 30, xlaDisableHloPasses_.getRaw(i));
}
if (xlaBackendOptimizationLevel_ != 0) {
output.writeInt32(31, xlaBackendOptimizationLevel_);
}
if (xlaEmbedIrInExecutable_ != false) {
output.writeBool(33, xlaEmbedIrInExecutable_);
}
if (!getXlaDumpIrToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 34, xlaDumpIrTo_);
}
if (xlaEliminateHloImplicitBroadcast_ != false) {
output.writeBool(35, xlaEliminateHloImplicitBroadcast_);
}
if (xlaCpuMultiThreadEigen_ != false) {
output.writeBool(60, xlaCpuMultiThreadEigen_);
}
if (!getXlaGpuCudaDataDirBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 61, xlaGpuCudaDataDir_);
}
if (xlaGpuFtz_ != false) {
output.writeBool(62, xlaGpuFtz_);
}
if (xlaGpuDisableMultiStreaming_ != false) {
output.writeBool(63, xlaGpuDisableMultiStreaming_);
}
if (xlaLlvmEnableAliasScopeMetadata_ != false) {
output.writeBool(70, xlaLlvmEnableAliasScopeMetadata_);
}
if (xlaLlvmEnableNoaliasMetadata_ != false) {
output.writeBool(71, xlaLlvmEnableNoaliasMetadata_);
}
if (xlaLlvmEnableInvariantLoadMetadata_ != false) {
output.writeBool(72, xlaLlvmEnableInvariantLoadMetadata_);
}
if (xlaLlvmDisableExpensivePasses_ != false) {
output.writeBool(73, xlaLlvmDisableExpensivePasses_);
}
for (int i = 0; i < hloReducePrecisionOptions_.size(); i++) {
output.writeMessage(80, hloReducePrecisionOptions_.get(i));
}
if (xlaTestAllOutputLayouts_ != false) {
output.writeBool(90, xlaTestAllOutputLayouts_);
}
if (xlaTestAllInputLayouts_ != false) {
output.writeBool(91, xlaTestAllInputLayouts_);
}
if (xlaHloGraphShardingColor_ != false) {
output.writeBool(92, xlaHloGraphShardingColor_);
}
if (xlaHloTfgraphDeviceScopes_ != false) {
output.writeBool(93, xlaHloTfgraphDeviceScopes_);
}
if (xlaGpuUseCudnnBatchnorm_ != false) {
output.writeBool(94, xlaGpuUseCudnnBatchnorm_);
}
if (!getXlaDumpUnoptimizedHloProtoToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 95, xlaDumpUnoptimizedHloProtoTo_);
}
if (!getXlaDumpPerPassHloProtoToBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 96, xlaDumpPerPassHloProtoTo_);
}
if (xlaCpuUseMklDnn_ != false) {
output.writeBool(97, xlaCpuUseMklDnn_);
}
if (xlaGpuMaxKernelUnrollFactor_ != 0) {
output.writeInt32(98, xlaGpuMaxKernelUnrollFactor_);
}
if (xlaCpuEnableFastMath_ != false) {
output.writeBool(99, xlaCpuEnableFastMath_);
}
if (xlaGpuEnableFastMath_ != false) {
output.writeBool(100, xlaGpuEnableFastMath_);
}
if (xlaGpuCrashOnVerificationFailures_ != false) {
output.writeBool(101, xlaGpuCrashOnVerificationFailures_);
}
if (xlaForceHostPlatformDeviceCount_ != 0) {
output.writeInt32(102, xlaForceHostPlatformDeviceCount_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetXlaBackendExtraOptions(),
XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry,
500);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getXlaGenerateHloGraphBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, xlaGenerateHloGraph_);
}
if (xlaHloGraphAddresses_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, xlaHloGraphAddresses_);
}
if (!getXlaHloGraphPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, xlaHloGraphPath_);
}
if (xlaHloDumpAsGraphdef_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, xlaHloDumpAsGraphdef_);
}
if (!getXlaLogHloTextBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, xlaLogHloText_);
}
if (!getXlaGenerateHloTextToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, xlaGenerateHloTextTo_);
}
if (!getXlaDumpOptimizedHloProtoToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, xlaDumpOptimizedHloProtoTo_);
}
if (xlaHloProfile_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, xlaHloProfile_);
}
if (!getXlaDumpComputationsToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, xlaDumpComputationsTo_);
}
if (!getXlaDumpExecutionsToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, xlaDumpExecutionsTo_);
}
{
int dataSize = 0;
for (int i = 0; i < xlaDisableHloPasses_.size(); i++) {
dataSize += computeStringSizeNoTag(xlaDisableHloPasses_.getRaw(i));
}
size += dataSize;
size += 2 * getXlaDisableHloPassesList().size();
}
if (xlaBackendOptimizationLevel_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(31, xlaBackendOptimizationLevel_);
}
if (xlaEmbedIrInExecutable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(33, xlaEmbedIrInExecutable_);
}
if (!getXlaDumpIrToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, xlaDumpIrTo_);
}
if (xlaEliminateHloImplicitBroadcast_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(35, xlaEliminateHloImplicitBroadcast_);
}
if (xlaCpuMultiThreadEigen_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(60, xlaCpuMultiThreadEigen_);
}
if (!getXlaGpuCudaDataDirBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(61, xlaGpuCudaDataDir_);
}
if (xlaGpuFtz_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(62, xlaGpuFtz_);
}
if (xlaGpuDisableMultiStreaming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(63, xlaGpuDisableMultiStreaming_);
}
if (xlaLlvmEnableAliasScopeMetadata_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(70, xlaLlvmEnableAliasScopeMetadata_);
}
if (xlaLlvmEnableNoaliasMetadata_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(71, xlaLlvmEnableNoaliasMetadata_);
}
if (xlaLlvmEnableInvariantLoadMetadata_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(72, xlaLlvmEnableInvariantLoadMetadata_);
}
if (xlaLlvmDisableExpensivePasses_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(73, xlaLlvmDisableExpensivePasses_);
}
for (int i = 0; i < hloReducePrecisionOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(80, hloReducePrecisionOptions_.get(i));
}
if (xlaTestAllOutputLayouts_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(90, xlaTestAllOutputLayouts_);
}
if (xlaTestAllInputLayouts_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(91, xlaTestAllInputLayouts_);
}
if (xlaHloGraphShardingColor_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(92, xlaHloGraphShardingColor_);
}
if (xlaHloTfgraphDeviceScopes_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(93, xlaHloTfgraphDeviceScopes_);
}
if (xlaGpuUseCudnnBatchnorm_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(94, xlaGpuUseCudnnBatchnorm_);
}
if (!getXlaDumpUnoptimizedHloProtoToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(95, xlaDumpUnoptimizedHloProtoTo_);
}
if (!getXlaDumpPerPassHloProtoToBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(96, xlaDumpPerPassHloProtoTo_);
}
if (xlaCpuUseMklDnn_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(97, xlaCpuUseMklDnn_);
}
if (xlaGpuMaxKernelUnrollFactor_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(98, xlaGpuMaxKernelUnrollFactor_);
}
if (xlaCpuEnableFastMath_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(99, xlaCpuEnableFastMath_);
}
if (xlaGpuEnableFastMath_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(100, xlaGpuEnableFastMath_);
}
if (xlaGpuCrashOnVerificationFailures_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(101, xlaGpuCrashOnVerificationFailures_);
}
if (xlaForceHostPlatformDeviceCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(102, xlaForceHostPlatformDeviceCount_);
}
for (java.util.Map.Entry entry
: internalGetXlaBackendExtraOptions().getMap().entrySet()) {
com.google.protobuf.MapEntry
xlaBackendExtraOptions__ = XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(500, xlaBackendExtraOptions__);
}
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 xla.Xla.DebugOptions)) {
return super.equals(obj);
}
xla.Xla.DebugOptions other = (xla.Xla.DebugOptions) obj;
boolean result = true;
result = result && getXlaGenerateHloGraph()
.equals(other.getXlaGenerateHloGraph());
result = result && (getXlaHloGraphAddresses()
== other.getXlaHloGraphAddresses());
result = result && getXlaHloGraphPath()
.equals(other.getXlaHloGraphPath());
result = result && (getXlaHloDumpAsGraphdef()
== other.getXlaHloDumpAsGraphdef());
result = result && getXlaLogHloText()
.equals(other.getXlaLogHloText());
result = result && getXlaGenerateHloTextTo()
.equals(other.getXlaGenerateHloTextTo());
result = result && getXlaDumpOptimizedHloProtoTo()
.equals(other.getXlaDumpOptimizedHloProtoTo());
result = result && (getXlaHloProfile()
== other.getXlaHloProfile());
result = result && getXlaDumpComputationsTo()
.equals(other.getXlaDumpComputationsTo());
result = result && getXlaDumpExecutionsTo()
.equals(other.getXlaDumpExecutionsTo());
result = result && getXlaDisableHloPassesList()
.equals(other.getXlaDisableHloPassesList());
result = result && (getXlaBackendOptimizationLevel()
== other.getXlaBackendOptimizationLevel());
result = result && (getXlaEmbedIrInExecutable()
== other.getXlaEmbedIrInExecutable());
result = result && getXlaDumpIrTo()
.equals(other.getXlaDumpIrTo());
result = result && (getXlaEliminateHloImplicitBroadcast()
== other.getXlaEliminateHloImplicitBroadcast());
result = result && (getXlaCpuMultiThreadEigen()
== other.getXlaCpuMultiThreadEigen());
result = result && getXlaGpuCudaDataDir()
.equals(other.getXlaGpuCudaDataDir());
result = result && (getXlaGpuFtz()
== other.getXlaGpuFtz());
result = result && (getXlaGpuDisableMultiStreaming()
== other.getXlaGpuDisableMultiStreaming());
result = result && (getXlaLlvmEnableAliasScopeMetadata()
== other.getXlaLlvmEnableAliasScopeMetadata());
result = result && (getXlaLlvmEnableNoaliasMetadata()
== other.getXlaLlvmEnableNoaliasMetadata());
result = result && (getXlaLlvmEnableInvariantLoadMetadata()
== other.getXlaLlvmEnableInvariantLoadMetadata());
result = result && (getXlaLlvmDisableExpensivePasses()
== other.getXlaLlvmDisableExpensivePasses());
result = result && getHloReducePrecisionOptionsList()
.equals(other.getHloReducePrecisionOptionsList());
result = result && (getXlaTestAllOutputLayouts()
== other.getXlaTestAllOutputLayouts());
result = result && (getXlaTestAllInputLayouts()
== other.getXlaTestAllInputLayouts());
result = result && (getXlaHloGraphShardingColor()
== other.getXlaHloGraphShardingColor());
result = result && (getXlaHloTfgraphDeviceScopes()
== other.getXlaHloTfgraphDeviceScopes());
result = result && (getXlaGpuUseCudnnBatchnorm()
== other.getXlaGpuUseCudnnBatchnorm());
result = result && getXlaDumpUnoptimizedHloProtoTo()
.equals(other.getXlaDumpUnoptimizedHloProtoTo());
result = result && getXlaDumpPerPassHloProtoTo()
.equals(other.getXlaDumpPerPassHloProtoTo());
result = result && (getXlaCpuUseMklDnn()
== other.getXlaCpuUseMklDnn());
result = result && (getXlaGpuMaxKernelUnrollFactor()
== other.getXlaGpuMaxKernelUnrollFactor());
result = result && (getXlaCpuEnableFastMath()
== other.getXlaCpuEnableFastMath());
result = result && (getXlaGpuEnableFastMath()
== other.getXlaGpuEnableFastMath());
result = result && (getXlaGpuCrashOnVerificationFailures()
== other.getXlaGpuCrashOnVerificationFailures());
result = result && (getXlaForceHostPlatformDeviceCount()
== other.getXlaForceHostPlatformDeviceCount());
result = result && internalGetXlaBackendExtraOptions().equals(
other.internalGetXlaBackendExtraOptions());
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) + XLA_GENERATE_HLO_GRAPH_FIELD_NUMBER;
hash = (53 * hash) + getXlaGenerateHloGraph().hashCode();
hash = (37 * hash) + XLA_HLO_GRAPH_ADDRESSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaHloGraphAddresses());
hash = (37 * hash) + XLA_HLO_GRAPH_PATH_FIELD_NUMBER;
hash = (53 * hash) + getXlaHloGraphPath().hashCode();
hash = (37 * hash) + XLA_HLO_DUMP_AS_GRAPHDEF_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaHloDumpAsGraphdef());
hash = (37 * hash) + XLA_LOG_HLO_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getXlaLogHloText().hashCode();
hash = (37 * hash) + XLA_GENERATE_HLO_TEXT_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaGenerateHloTextTo().hashCode();
hash = (37 * hash) + XLA_DUMP_OPTIMIZED_HLO_PROTO_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaDumpOptimizedHloProtoTo().hashCode();
hash = (37 * hash) + XLA_HLO_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaHloProfile());
hash = (37 * hash) + XLA_DUMP_COMPUTATIONS_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaDumpComputationsTo().hashCode();
hash = (37 * hash) + XLA_DUMP_EXECUTIONS_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaDumpExecutionsTo().hashCode();
if (getXlaDisableHloPassesCount() > 0) {
hash = (37 * hash) + XLA_DISABLE_HLO_PASSES_FIELD_NUMBER;
hash = (53 * hash) + getXlaDisableHloPassesList().hashCode();
}
hash = (37 * hash) + XLA_BACKEND_OPTIMIZATION_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getXlaBackendOptimizationLevel();
hash = (37 * hash) + XLA_EMBED_IR_IN_EXECUTABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaEmbedIrInExecutable());
hash = (37 * hash) + XLA_DUMP_IR_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaDumpIrTo().hashCode();
hash = (37 * hash) + XLA_ELIMINATE_HLO_IMPLICIT_BROADCAST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaEliminateHloImplicitBroadcast());
hash = (37 * hash) + XLA_CPU_MULTI_THREAD_EIGEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaCpuMultiThreadEigen());
hash = (37 * hash) + XLA_GPU_CUDA_DATA_DIR_FIELD_NUMBER;
hash = (53 * hash) + getXlaGpuCudaDataDir().hashCode();
hash = (37 * hash) + XLA_GPU_FTZ_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaGpuFtz());
hash = (37 * hash) + XLA_GPU_DISABLE_MULTI_STREAMING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaGpuDisableMultiStreaming());
hash = (37 * hash) + XLA_LLVM_ENABLE_ALIAS_SCOPE_METADATA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaLlvmEnableAliasScopeMetadata());
hash = (37 * hash) + XLA_LLVM_ENABLE_NOALIAS_METADATA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaLlvmEnableNoaliasMetadata());
hash = (37 * hash) + XLA_LLVM_ENABLE_INVARIANT_LOAD_METADATA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaLlvmEnableInvariantLoadMetadata());
hash = (37 * hash) + XLA_LLVM_DISABLE_EXPENSIVE_PASSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaLlvmDisableExpensivePasses());
if (getHloReducePrecisionOptionsCount() > 0) {
hash = (37 * hash) + HLO_REDUCE_PRECISION_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getHloReducePrecisionOptionsList().hashCode();
}
hash = (37 * hash) + XLA_TEST_ALL_OUTPUT_LAYOUTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaTestAllOutputLayouts());
hash = (37 * hash) + XLA_TEST_ALL_INPUT_LAYOUTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaTestAllInputLayouts());
hash = (37 * hash) + XLA_HLO_GRAPH_SHARDING_COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaHloGraphShardingColor());
hash = (37 * hash) + XLA_HLO_TFGRAPH_DEVICE_SCOPES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaHloTfgraphDeviceScopes());
hash = (37 * hash) + XLA_GPU_USE_CUDNN_BATCHNORM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaGpuUseCudnnBatchnorm());
hash = (37 * hash) + XLA_DUMP_UNOPTIMIZED_HLO_PROTO_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaDumpUnoptimizedHloProtoTo().hashCode();
hash = (37 * hash) + XLA_DUMP_PER_PASS_HLO_PROTO_TO_FIELD_NUMBER;
hash = (53 * hash) + getXlaDumpPerPassHloProtoTo().hashCode();
hash = (37 * hash) + XLA_CPU_USE_MKL_DNN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaCpuUseMklDnn());
hash = (37 * hash) + XLA_GPU_MAX_KERNEL_UNROLL_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + getXlaGpuMaxKernelUnrollFactor();
hash = (37 * hash) + XLA_CPU_ENABLE_FAST_MATH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaCpuEnableFastMath());
hash = (37 * hash) + XLA_GPU_ENABLE_FAST_MATH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaGpuEnableFastMath());
hash = (37 * hash) + XLA_GPU_CRASH_ON_VERIFICATION_FAILURES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getXlaGpuCrashOnVerificationFailures());
hash = (37 * hash) + XLA_FORCE_HOST_PLATFORM_DEVICE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getXlaForceHostPlatformDeviceCount();
if (!internalGetXlaBackendExtraOptions().getMap().isEmpty()) {
hash = (37 * hash) + XLA_BACKEND_EXTRA_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetXlaBackendExtraOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.DebugOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DebugOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DebugOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DebugOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DebugOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DebugOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DebugOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.DebugOptions 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 xla.Xla.DebugOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.DebugOptions 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 xla.Xla.DebugOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.DebugOptions 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(xla.Xla.DebugOptions 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;
}
/**
*
* Debugging options for XLA. These options may change at any time - there are
* no guarantees about backward or forward compatibility for these fields.
*
*
* Protobuf type {@code xla.DebugOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.DebugOptions)
xla.Xla.DebugOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_DebugOptions_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 500:
return internalGetXlaBackendExtraOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 500:
return internalGetMutableXlaBackendExtraOptions();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_DebugOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.DebugOptions.class, xla.Xla.DebugOptions.Builder.class);
}
// Construct using xla.Xla.DebugOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHloReducePrecisionOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
xlaGenerateHloGraph_ = "";
xlaHloGraphAddresses_ = false;
xlaHloGraphPath_ = "";
xlaHloDumpAsGraphdef_ = false;
xlaLogHloText_ = "";
xlaGenerateHloTextTo_ = "";
xlaDumpOptimizedHloProtoTo_ = "";
xlaHloProfile_ = false;
xlaDumpComputationsTo_ = "";
xlaDumpExecutionsTo_ = "";
xlaDisableHloPasses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
xlaBackendOptimizationLevel_ = 0;
xlaEmbedIrInExecutable_ = false;
xlaDumpIrTo_ = "";
xlaEliminateHloImplicitBroadcast_ = false;
xlaCpuMultiThreadEigen_ = false;
xlaGpuCudaDataDir_ = "";
xlaGpuFtz_ = false;
xlaGpuDisableMultiStreaming_ = false;
xlaLlvmEnableAliasScopeMetadata_ = false;
xlaLlvmEnableNoaliasMetadata_ = false;
xlaLlvmEnableInvariantLoadMetadata_ = false;
xlaLlvmDisableExpensivePasses_ = false;
if (hloReducePrecisionOptionsBuilder_ == null) {
hloReducePrecisionOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00800000);
} else {
hloReducePrecisionOptionsBuilder_.clear();
}
xlaTestAllOutputLayouts_ = false;
xlaTestAllInputLayouts_ = false;
xlaHloGraphShardingColor_ = false;
xlaHloTfgraphDeviceScopes_ = false;
xlaGpuUseCudnnBatchnorm_ = false;
xlaDumpUnoptimizedHloProtoTo_ = "";
xlaDumpPerPassHloProtoTo_ = "";
xlaCpuUseMklDnn_ = false;
xlaGpuMaxKernelUnrollFactor_ = 0;
xlaCpuEnableFastMath_ = false;
xlaGpuEnableFastMath_ = false;
xlaGpuCrashOnVerificationFailures_ = false;
xlaForceHostPlatformDeviceCount_ = 0;
internalGetMutableXlaBackendExtraOptions().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_DebugOptions_descriptor;
}
@java.lang.Override
public xla.Xla.DebugOptions getDefaultInstanceForType() {
return xla.Xla.DebugOptions.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.DebugOptions build() {
xla.Xla.DebugOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.DebugOptions buildPartial() {
xla.Xla.DebugOptions result = new xla.Xla.DebugOptions(this);
int from_bitField0_ = bitField0_;
int from_bitField1_ = bitField1_;
int to_bitField0_ = 0;
int to_bitField1_ = 0;
result.xlaGenerateHloGraph_ = xlaGenerateHloGraph_;
result.xlaHloGraphAddresses_ = xlaHloGraphAddresses_;
result.xlaHloGraphPath_ = xlaHloGraphPath_;
result.xlaHloDumpAsGraphdef_ = xlaHloDumpAsGraphdef_;
result.xlaLogHloText_ = xlaLogHloText_;
result.xlaGenerateHloTextTo_ = xlaGenerateHloTextTo_;
result.xlaDumpOptimizedHloProtoTo_ = xlaDumpOptimizedHloProtoTo_;
result.xlaHloProfile_ = xlaHloProfile_;
result.xlaDumpComputationsTo_ = xlaDumpComputationsTo_;
result.xlaDumpExecutionsTo_ = xlaDumpExecutionsTo_;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
xlaDisableHloPasses_ = xlaDisableHloPasses_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000400);
}
result.xlaDisableHloPasses_ = xlaDisableHloPasses_;
result.xlaBackendOptimizationLevel_ = xlaBackendOptimizationLevel_;
result.xlaEmbedIrInExecutable_ = xlaEmbedIrInExecutable_;
result.xlaDumpIrTo_ = xlaDumpIrTo_;
result.xlaEliminateHloImplicitBroadcast_ = xlaEliminateHloImplicitBroadcast_;
result.xlaCpuMultiThreadEigen_ = xlaCpuMultiThreadEigen_;
result.xlaGpuCudaDataDir_ = xlaGpuCudaDataDir_;
result.xlaGpuFtz_ = xlaGpuFtz_;
result.xlaGpuDisableMultiStreaming_ = xlaGpuDisableMultiStreaming_;
result.xlaLlvmEnableAliasScopeMetadata_ = xlaLlvmEnableAliasScopeMetadata_;
result.xlaLlvmEnableNoaliasMetadata_ = xlaLlvmEnableNoaliasMetadata_;
result.xlaLlvmEnableInvariantLoadMetadata_ = xlaLlvmEnableInvariantLoadMetadata_;
result.xlaLlvmDisableExpensivePasses_ = xlaLlvmDisableExpensivePasses_;
if (hloReducePrecisionOptionsBuilder_ == null) {
if (((bitField0_ & 0x00800000) == 0x00800000)) {
hloReducePrecisionOptions_ = java.util.Collections.unmodifiableList(hloReducePrecisionOptions_);
bitField0_ = (bitField0_ & ~0x00800000);
}
result.hloReducePrecisionOptions_ = hloReducePrecisionOptions_;
} else {
result.hloReducePrecisionOptions_ = hloReducePrecisionOptionsBuilder_.build();
}
result.xlaTestAllOutputLayouts_ = xlaTestAllOutputLayouts_;
result.xlaTestAllInputLayouts_ = xlaTestAllInputLayouts_;
result.xlaHloGraphShardingColor_ = xlaHloGraphShardingColor_;
result.xlaHloTfgraphDeviceScopes_ = xlaHloTfgraphDeviceScopes_;
result.xlaGpuUseCudnnBatchnorm_ = xlaGpuUseCudnnBatchnorm_;
result.xlaDumpUnoptimizedHloProtoTo_ = xlaDumpUnoptimizedHloProtoTo_;
result.xlaDumpPerPassHloProtoTo_ = xlaDumpPerPassHloProtoTo_;
result.xlaCpuUseMklDnn_ = xlaCpuUseMklDnn_;
result.xlaGpuMaxKernelUnrollFactor_ = xlaGpuMaxKernelUnrollFactor_;
result.xlaCpuEnableFastMath_ = xlaCpuEnableFastMath_;
result.xlaGpuEnableFastMath_ = xlaGpuEnableFastMath_;
result.xlaGpuCrashOnVerificationFailures_ = xlaGpuCrashOnVerificationFailures_;
result.xlaForceHostPlatformDeviceCount_ = xlaForceHostPlatformDeviceCount_;
result.xlaBackendExtraOptions_ = internalGetXlaBackendExtraOptions();
result.xlaBackendExtraOptions_.makeImmutable();
result.bitField0_ = to_bitField0_;
result.bitField1_ = to_bitField1_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.DebugOptions) {
return mergeFrom((xla.Xla.DebugOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.DebugOptions other) {
if (other == xla.Xla.DebugOptions.getDefaultInstance()) return this;
if (!other.getXlaGenerateHloGraph().isEmpty()) {
xlaGenerateHloGraph_ = other.xlaGenerateHloGraph_;
onChanged();
}
if (other.getXlaHloGraphAddresses() != false) {
setXlaHloGraphAddresses(other.getXlaHloGraphAddresses());
}
if (!other.getXlaHloGraphPath().isEmpty()) {
xlaHloGraphPath_ = other.xlaHloGraphPath_;
onChanged();
}
if (other.getXlaHloDumpAsGraphdef() != false) {
setXlaHloDumpAsGraphdef(other.getXlaHloDumpAsGraphdef());
}
if (!other.getXlaLogHloText().isEmpty()) {
xlaLogHloText_ = other.xlaLogHloText_;
onChanged();
}
if (!other.getXlaGenerateHloTextTo().isEmpty()) {
xlaGenerateHloTextTo_ = other.xlaGenerateHloTextTo_;
onChanged();
}
if (!other.getXlaDumpOptimizedHloProtoTo().isEmpty()) {
xlaDumpOptimizedHloProtoTo_ = other.xlaDumpOptimizedHloProtoTo_;
onChanged();
}
if (other.getXlaHloProfile() != false) {
setXlaHloProfile(other.getXlaHloProfile());
}
if (!other.getXlaDumpComputationsTo().isEmpty()) {
xlaDumpComputationsTo_ = other.xlaDumpComputationsTo_;
onChanged();
}
if (!other.getXlaDumpExecutionsTo().isEmpty()) {
xlaDumpExecutionsTo_ = other.xlaDumpExecutionsTo_;
onChanged();
}
if (!other.xlaDisableHloPasses_.isEmpty()) {
if (xlaDisableHloPasses_.isEmpty()) {
xlaDisableHloPasses_ = other.xlaDisableHloPasses_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureXlaDisableHloPassesIsMutable();
xlaDisableHloPasses_.addAll(other.xlaDisableHloPasses_);
}
onChanged();
}
if (other.getXlaBackendOptimizationLevel() != 0) {
setXlaBackendOptimizationLevel(other.getXlaBackendOptimizationLevel());
}
if (other.getXlaEmbedIrInExecutable() != false) {
setXlaEmbedIrInExecutable(other.getXlaEmbedIrInExecutable());
}
if (!other.getXlaDumpIrTo().isEmpty()) {
xlaDumpIrTo_ = other.xlaDumpIrTo_;
onChanged();
}
if (other.getXlaEliminateHloImplicitBroadcast() != false) {
setXlaEliminateHloImplicitBroadcast(other.getXlaEliminateHloImplicitBroadcast());
}
if (other.getXlaCpuMultiThreadEigen() != false) {
setXlaCpuMultiThreadEigen(other.getXlaCpuMultiThreadEigen());
}
if (!other.getXlaGpuCudaDataDir().isEmpty()) {
xlaGpuCudaDataDir_ = other.xlaGpuCudaDataDir_;
onChanged();
}
if (other.getXlaGpuFtz() != false) {
setXlaGpuFtz(other.getXlaGpuFtz());
}
if (other.getXlaGpuDisableMultiStreaming() != false) {
setXlaGpuDisableMultiStreaming(other.getXlaGpuDisableMultiStreaming());
}
if (other.getXlaLlvmEnableAliasScopeMetadata() != false) {
setXlaLlvmEnableAliasScopeMetadata(other.getXlaLlvmEnableAliasScopeMetadata());
}
if (other.getXlaLlvmEnableNoaliasMetadata() != false) {
setXlaLlvmEnableNoaliasMetadata(other.getXlaLlvmEnableNoaliasMetadata());
}
if (other.getXlaLlvmEnableInvariantLoadMetadata() != false) {
setXlaLlvmEnableInvariantLoadMetadata(other.getXlaLlvmEnableInvariantLoadMetadata());
}
if (other.getXlaLlvmDisableExpensivePasses() != false) {
setXlaLlvmDisableExpensivePasses(other.getXlaLlvmDisableExpensivePasses());
}
if (hloReducePrecisionOptionsBuilder_ == null) {
if (!other.hloReducePrecisionOptions_.isEmpty()) {
if (hloReducePrecisionOptions_.isEmpty()) {
hloReducePrecisionOptions_ = other.hloReducePrecisionOptions_;
bitField0_ = (bitField0_ & ~0x00800000);
} else {
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.addAll(other.hloReducePrecisionOptions_);
}
onChanged();
}
} else {
if (!other.hloReducePrecisionOptions_.isEmpty()) {
if (hloReducePrecisionOptionsBuilder_.isEmpty()) {
hloReducePrecisionOptionsBuilder_.dispose();
hloReducePrecisionOptionsBuilder_ = null;
hloReducePrecisionOptions_ = other.hloReducePrecisionOptions_;
bitField0_ = (bitField0_ & ~0x00800000);
hloReducePrecisionOptionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHloReducePrecisionOptionsFieldBuilder() : null;
} else {
hloReducePrecisionOptionsBuilder_.addAllMessages(other.hloReducePrecisionOptions_);
}
}
}
if (other.getXlaTestAllOutputLayouts() != false) {
setXlaTestAllOutputLayouts(other.getXlaTestAllOutputLayouts());
}
if (other.getXlaTestAllInputLayouts() != false) {
setXlaTestAllInputLayouts(other.getXlaTestAllInputLayouts());
}
if (other.getXlaHloGraphShardingColor() != false) {
setXlaHloGraphShardingColor(other.getXlaHloGraphShardingColor());
}
if (other.getXlaHloTfgraphDeviceScopes() != false) {
setXlaHloTfgraphDeviceScopes(other.getXlaHloTfgraphDeviceScopes());
}
if (other.getXlaGpuUseCudnnBatchnorm() != false) {
setXlaGpuUseCudnnBatchnorm(other.getXlaGpuUseCudnnBatchnorm());
}
if (!other.getXlaDumpUnoptimizedHloProtoTo().isEmpty()) {
xlaDumpUnoptimizedHloProtoTo_ = other.xlaDumpUnoptimizedHloProtoTo_;
onChanged();
}
if (!other.getXlaDumpPerPassHloProtoTo().isEmpty()) {
xlaDumpPerPassHloProtoTo_ = other.xlaDumpPerPassHloProtoTo_;
onChanged();
}
if (other.getXlaCpuUseMklDnn() != false) {
setXlaCpuUseMklDnn(other.getXlaCpuUseMklDnn());
}
if (other.getXlaGpuMaxKernelUnrollFactor() != 0) {
setXlaGpuMaxKernelUnrollFactor(other.getXlaGpuMaxKernelUnrollFactor());
}
if (other.getXlaCpuEnableFastMath() != false) {
setXlaCpuEnableFastMath(other.getXlaCpuEnableFastMath());
}
if (other.getXlaGpuEnableFastMath() != false) {
setXlaGpuEnableFastMath(other.getXlaGpuEnableFastMath());
}
if (other.getXlaGpuCrashOnVerificationFailures() != false) {
setXlaGpuCrashOnVerificationFailures(other.getXlaGpuCrashOnVerificationFailures());
}
if (other.getXlaForceHostPlatformDeviceCount() != 0) {
setXlaForceHostPlatformDeviceCount(other.getXlaForceHostPlatformDeviceCount());
}
internalGetMutableXlaBackendExtraOptions().mergeFrom(
other.internalGetXlaBackendExtraOptions());
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 {
xla.Xla.DebugOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.DebugOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int bitField1_;
private java.lang.Object xlaGenerateHloGraph_ = "";
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public java.lang.String getXlaGenerateHloGraph() {
java.lang.Object ref = xlaGenerateHloGraph_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaGenerateHloGraph_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public com.google.protobuf.ByteString
getXlaGenerateHloGraphBytes() {
java.lang.Object ref = xlaGenerateHloGraph_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaGenerateHloGraph_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public Builder setXlaGenerateHloGraph(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaGenerateHloGraph_ = value;
onChanged();
return this;
}
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public Builder clearXlaGenerateHloGraph() {
xlaGenerateHloGraph_ = getDefaultInstance().getXlaGenerateHloGraph();
onChanged();
return this;
}
/**
*
* HLO modules matching this regex will be dumped to a .dot file throughout
* various stages in compilation (file names are LOG(INFO)'d). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_generate_hlo_graph = 1;
*/
public Builder setXlaGenerateHloGraphBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaGenerateHloGraph_ = value;
onChanged();
return this;
}
private boolean xlaHloGraphAddresses_ ;
/**
*
* Show addresses of HLO ops in graph dump.
*
*
* bool xla_hlo_graph_addresses = 2;
*/
public boolean getXlaHloGraphAddresses() {
return xlaHloGraphAddresses_;
}
/**
*
* Show addresses of HLO ops in graph dump.
*
*
* bool xla_hlo_graph_addresses = 2;
*/
public Builder setXlaHloGraphAddresses(boolean value) {
xlaHloGraphAddresses_ = value;
onChanged();
return this;
}
/**
*
* Show addresses of HLO ops in graph dump.
*
*
* bool xla_hlo_graph_addresses = 2;
*/
public Builder clearXlaHloGraphAddresses() {
xlaHloGraphAddresses_ = false;
onChanged();
return this;
}
private java.lang.Object xlaHloGraphPath_ = "";
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public java.lang.String getXlaHloGraphPath() {
java.lang.Object ref = xlaHloGraphPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaHloGraphPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public com.google.protobuf.ByteString
getXlaHloGraphPathBytes() {
java.lang.Object ref = xlaHloGraphPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaHloGraphPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public Builder setXlaHloGraphPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaHloGraphPath_ = value;
onChanged();
return this;
}
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public Builder clearXlaHloGraphPath() {
xlaHloGraphPath_ = getDefaultInstance().getXlaHloGraphPath();
onChanged();
return this;
}
/**
*
* Path to dump HLO graphs to.
*
*
* string xla_hlo_graph_path = 4;
*/
public Builder setXlaHloGraphPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaHloGraphPath_ = value;
onChanged();
return this;
}
private boolean xlaHloDumpAsGraphdef_ ;
/**
*
* Dump HLO graphs as TensorFlow GraphDefs.
*
*
* bool xla_hlo_dump_as_graphdef = 5;
*/
public boolean getXlaHloDumpAsGraphdef() {
return xlaHloDumpAsGraphdef_;
}
/**
*
* Dump HLO graphs as TensorFlow GraphDefs.
*
*
* bool xla_hlo_dump_as_graphdef = 5;
*/
public Builder setXlaHloDumpAsGraphdef(boolean value) {
xlaHloDumpAsGraphdef_ = value;
onChanged();
return this;
}
/**
*
* Dump HLO graphs as TensorFlow GraphDefs.
*
*
* bool xla_hlo_dump_as_graphdef = 5;
*/
public Builder clearXlaHloDumpAsGraphdef() {
xlaHloDumpAsGraphdef_ = false;
onChanged();
return this;
}
private java.lang.Object xlaLogHloText_ = "";
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public java.lang.String getXlaLogHloText() {
java.lang.Object ref = xlaLogHloText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaLogHloText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public com.google.protobuf.ByteString
getXlaLogHloTextBytes() {
java.lang.Object ref = xlaLogHloText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaLogHloText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public Builder setXlaLogHloText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaLogHloText_ = value;
onChanged();
return this;
}
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public Builder clearXlaLogHloText() {
xlaLogHloText_ = getDefaultInstance().getXlaLogHloText();
onChanged();
return this;
}
/**
*
* HLO modules matching this regex will be dumped to LOG(INFO). Set to ".*" to
* dump *all* HLO modules.
*
*
* string xla_log_hlo_text = 6;
*/
public Builder setXlaLogHloTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaLogHloText_ = value;
onChanged();
return this;
}
private java.lang.Object xlaGenerateHloTextTo_ = "";
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public java.lang.String getXlaGenerateHloTextTo() {
java.lang.Object ref = xlaGenerateHloTextTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaGenerateHloTextTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public com.google.protobuf.ByteString
getXlaGenerateHloTextToBytes() {
java.lang.Object ref = xlaGenerateHloTextTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaGenerateHloTextTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public Builder setXlaGenerateHloTextTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaGenerateHloTextTo_ = value;
onChanged();
return this;
}
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public Builder clearXlaGenerateHloTextTo() {
xlaGenerateHloTextTo_ = getDefaultInstance().getXlaGenerateHloTextTo();
onChanged();
return this;
}
/**
*
* Dump all HLO modules as text into the provided directory path.
*
*
* string xla_generate_hlo_text_to = 7;
*/
public Builder setXlaGenerateHloTextToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaGenerateHloTextTo_ = value;
onChanged();
return this;
}
private java.lang.Object xlaDumpOptimizedHloProtoTo_ = "";
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public java.lang.String getXlaDumpOptimizedHloProtoTo() {
java.lang.Object ref = xlaDumpOptimizedHloProtoTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaDumpOptimizedHloProtoTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public com.google.protobuf.ByteString
getXlaDumpOptimizedHloProtoToBytes() {
java.lang.Object ref = xlaDumpOptimizedHloProtoTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpOptimizedHloProtoTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public Builder setXlaDumpOptimizedHloProtoTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaDumpOptimizedHloProtoTo_ = value;
onChanged();
return this;
}
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public Builder clearXlaDumpOptimizedHloProtoTo() {
xlaDumpOptimizedHloProtoTo_ = getDefaultInstance().getXlaDumpOptimizedHloProtoTo();
onChanged();
return this;
}
/**
*
* Dump Hlo after all hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_optimized_hlo_proto_to = 8;
*/
public Builder setXlaDumpOptimizedHloProtoToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaDumpOptimizedHloProtoTo_ = value;
onChanged();
return this;
}
private boolean xlaHloProfile_ ;
/**
*
* Instrument the computation to collect per-HLO cycle counts.
*
*
* bool xla_hlo_profile = 9;
*/
public boolean getXlaHloProfile() {
return xlaHloProfile_;
}
/**
*
* Instrument the computation to collect per-HLO cycle counts.
*
*
* bool xla_hlo_profile = 9;
*/
public Builder setXlaHloProfile(boolean value) {
xlaHloProfile_ = value;
onChanged();
return this;
}
/**
*
* Instrument the computation to collect per-HLO cycle counts.
*
*
* bool xla_hlo_profile = 9;
*/
public Builder clearXlaHloProfile() {
xlaHloProfile_ = false;
onChanged();
return this;
}
private java.lang.Object xlaDumpComputationsTo_ = "";
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public java.lang.String getXlaDumpComputationsTo() {
java.lang.Object ref = xlaDumpComputationsTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaDumpComputationsTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public com.google.protobuf.ByteString
getXlaDumpComputationsToBytes() {
java.lang.Object ref = xlaDumpComputationsTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpComputationsTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public Builder setXlaDumpComputationsTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaDumpComputationsTo_ = value;
onChanged();
return this;
}
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public Builder clearXlaDumpComputationsTo() {
xlaDumpComputationsTo_ = getDefaultInstance().getXlaDumpComputationsTo();
onChanged();
return this;
}
/**
*
* Dumps computations that XLA executes into the provided directory path.
*
*
* string xla_dump_computations_to = 10;
*/
public Builder setXlaDumpComputationsToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaDumpComputationsTo_ = value;
onChanged();
return this;
}
private java.lang.Object xlaDumpExecutionsTo_ = "";
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public java.lang.String getXlaDumpExecutionsTo() {
java.lang.Object ref = xlaDumpExecutionsTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaDumpExecutionsTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public com.google.protobuf.ByteString
getXlaDumpExecutionsToBytes() {
java.lang.Object ref = xlaDumpExecutionsTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpExecutionsTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public Builder setXlaDumpExecutionsTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaDumpExecutionsTo_ = value;
onChanged();
return this;
}
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public Builder clearXlaDumpExecutionsTo() {
xlaDumpExecutionsTo_ = getDefaultInstance().getXlaDumpExecutionsTo();
onChanged();
return this;
}
/**
*
* Dumps parameters and results of computations that XLA executes into the
* provided directory path.
*
*
* string xla_dump_executions_to = 11;
*/
public Builder setXlaDumpExecutionsToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaDumpExecutionsTo_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList xlaDisableHloPasses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureXlaDisableHloPassesIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
xlaDisableHloPasses_ = new com.google.protobuf.LazyStringArrayList(xlaDisableHloPasses_);
bitField0_ |= 0x00000400;
}
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public com.google.protobuf.ProtocolStringList
getXlaDisableHloPassesList() {
return xlaDisableHloPasses_.getUnmodifiableView();
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public int getXlaDisableHloPassesCount() {
return xlaDisableHloPasses_.size();
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public java.lang.String getXlaDisableHloPasses(int index) {
return xlaDisableHloPasses_.get(index);
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public com.google.protobuf.ByteString
getXlaDisableHloPassesBytes(int index) {
return xlaDisableHloPasses_.getByteString(index);
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public Builder setXlaDisableHloPasses(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureXlaDisableHloPassesIsMutable();
xlaDisableHloPasses_.set(index, value);
onChanged();
return this;
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public Builder addXlaDisableHloPasses(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureXlaDisableHloPassesIsMutable();
xlaDisableHloPasses_.add(value);
onChanged();
return this;
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public Builder addAllXlaDisableHloPasses(
java.lang.Iterable values) {
ensureXlaDisableHloPassesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, xlaDisableHloPasses_);
onChanged();
return this;
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public Builder clearXlaDisableHloPasses() {
xlaDisableHloPasses_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
* List of HLO passes to disable. These names must exactly match the pass
* names as specified by the HloPassInterface::name() method.
*
*
* repeated string xla_disable_hlo_passes = 30;
*/
public Builder addXlaDisableHloPassesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureXlaDisableHloPassesIsMutable();
xlaDisableHloPasses_.add(value);
onChanged();
return this;
}
private int xlaBackendOptimizationLevel_ ;
/**
*
* Numerical optimization level for the XLA compiler backend; the specific
* interpretation of this value is left to the backends.
*
*
* int32 xla_backend_optimization_level = 31;
*/
public int getXlaBackendOptimizationLevel() {
return xlaBackendOptimizationLevel_;
}
/**
*
* Numerical optimization level for the XLA compiler backend; the specific
* interpretation of this value is left to the backends.
*
*
* int32 xla_backend_optimization_level = 31;
*/
public Builder setXlaBackendOptimizationLevel(int value) {
xlaBackendOptimizationLevel_ = value;
onChanged();
return this;
}
/**
*
* Numerical optimization level for the XLA compiler backend; the specific
* interpretation of this value is left to the backends.
*
*
* int32 xla_backend_optimization_level = 31;
*/
public Builder clearXlaBackendOptimizationLevel() {
xlaBackendOptimizationLevel_ = 0;
onChanged();
return this;
}
private boolean xlaEmbedIrInExecutable_ ;
/**
*
* Embed the compiler IR as a string in the executable.
*
*
* bool xla_embed_ir_in_executable = 33;
*/
public boolean getXlaEmbedIrInExecutable() {
return xlaEmbedIrInExecutable_;
}
/**
*
* Embed the compiler IR as a string in the executable.
*
*
* bool xla_embed_ir_in_executable = 33;
*/
public Builder setXlaEmbedIrInExecutable(boolean value) {
xlaEmbedIrInExecutable_ = value;
onChanged();
return this;
}
/**
*
* Embed the compiler IR as a string in the executable.
*
*
* bool xla_embed_ir_in_executable = 33;
*/
public Builder clearXlaEmbedIrInExecutable() {
xlaEmbedIrInExecutable_ = false;
onChanged();
return this;
}
private java.lang.Object xlaDumpIrTo_ = "";
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public java.lang.String getXlaDumpIrTo() {
java.lang.Object ref = xlaDumpIrTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaDumpIrTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public com.google.protobuf.ByteString
getXlaDumpIrToBytes() {
java.lang.Object ref = xlaDumpIrTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpIrTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public Builder setXlaDumpIrTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaDumpIrTo_ = value;
onChanged();
return this;
}
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public Builder clearXlaDumpIrTo() {
xlaDumpIrTo_ = getDefaultInstance().getXlaDumpIrTo();
onChanged();
return this;
}
/**
*
* Dump the compiler IR into this directory as individual files.
*
*
* string xla_dump_ir_to = 34;
*/
public Builder setXlaDumpIrToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaDumpIrTo_ = value;
onChanged();
return this;
}
private boolean xlaEliminateHloImplicitBroadcast_ ;
/**
*
* Eliminate implicit broadcasts when lowering user computations to HLO
* instructions; use explicit broadcast instead.
*
*
* bool xla_eliminate_hlo_implicit_broadcast = 35;
*/
public boolean getXlaEliminateHloImplicitBroadcast() {
return xlaEliminateHloImplicitBroadcast_;
}
/**
*
* Eliminate implicit broadcasts when lowering user computations to HLO
* instructions; use explicit broadcast instead.
*
*
* bool xla_eliminate_hlo_implicit_broadcast = 35;
*/
public Builder setXlaEliminateHloImplicitBroadcast(boolean value) {
xlaEliminateHloImplicitBroadcast_ = value;
onChanged();
return this;
}
/**
*
* Eliminate implicit broadcasts when lowering user computations to HLO
* instructions; use explicit broadcast instead.
*
*
* bool xla_eliminate_hlo_implicit_broadcast = 35;
*/
public Builder clearXlaEliminateHloImplicitBroadcast() {
xlaEliminateHloImplicitBroadcast_ = false;
onChanged();
return this;
}
private boolean xlaCpuMultiThreadEigen_ ;
/**
*
* When generating calls to Eigen in the CPU backend, use multi-threaded Eigen
* mode.
*
*
* bool xla_cpu_multi_thread_eigen = 60;
*/
public boolean getXlaCpuMultiThreadEigen() {
return xlaCpuMultiThreadEigen_;
}
/**
*
* When generating calls to Eigen in the CPU backend, use multi-threaded Eigen
* mode.
*
*
* bool xla_cpu_multi_thread_eigen = 60;
*/
public Builder setXlaCpuMultiThreadEigen(boolean value) {
xlaCpuMultiThreadEigen_ = value;
onChanged();
return this;
}
/**
*
* When generating calls to Eigen in the CPU backend, use multi-threaded Eigen
* mode.
*
*
* bool xla_cpu_multi_thread_eigen = 60;
*/
public Builder clearXlaCpuMultiThreadEigen() {
xlaCpuMultiThreadEigen_ = false;
onChanged();
return this;
}
private java.lang.Object xlaGpuCudaDataDir_ = "";
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public java.lang.String getXlaGpuCudaDataDir() {
java.lang.Object ref = xlaGpuCudaDataDir_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaGpuCudaDataDir_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public com.google.protobuf.ByteString
getXlaGpuCudaDataDirBytes() {
java.lang.Object ref = xlaGpuCudaDataDir_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaGpuCudaDataDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public Builder setXlaGpuCudaDataDir(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaGpuCudaDataDir_ = value;
onChanged();
return this;
}
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public Builder clearXlaGpuCudaDataDir() {
xlaGpuCudaDataDir_ = getDefaultInstance().getXlaGpuCudaDataDir();
onChanged();
return this;
}
/**
*
* Path to directory with cuda/ptx tools and libraries.
*
*
* string xla_gpu_cuda_data_dir = 61;
*/
public Builder setXlaGpuCudaDataDirBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaGpuCudaDataDir_ = value;
onChanged();
return this;
}
private boolean xlaGpuFtz_ ;
/**
*
* Enable flush-to-zero semantics in the GPU backend.
*
*
* bool xla_gpu_ftz = 62;
*/
public boolean getXlaGpuFtz() {
return xlaGpuFtz_;
}
/**
*
* Enable flush-to-zero semantics in the GPU backend.
*
*
* bool xla_gpu_ftz = 62;
*/
public Builder setXlaGpuFtz(boolean value) {
xlaGpuFtz_ = value;
onChanged();
return this;
}
/**
*
* Enable flush-to-zero semantics in the GPU backend.
*
*
* bool xla_gpu_ftz = 62;
*/
public Builder clearXlaGpuFtz() {
xlaGpuFtz_ = false;
onChanged();
return this;
}
private boolean xlaGpuDisableMultiStreaming_ ;
/**
*
* Disable multi-streaming in the GPU backend.
*
*
* bool xla_gpu_disable_multi_streaming = 63;
*/
public boolean getXlaGpuDisableMultiStreaming() {
return xlaGpuDisableMultiStreaming_;
}
/**
*
* Disable multi-streaming in the GPU backend.
*
*
* bool xla_gpu_disable_multi_streaming = 63;
*/
public Builder setXlaGpuDisableMultiStreaming(boolean value) {
xlaGpuDisableMultiStreaming_ = value;
onChanged();
return this;
}
/**
*
* Disable multi-streaming in the GPU backend.
*
*
* bool xla_gpu_disable_multi_streaming = 63;
*/
public Builder clearXlaGpuDisableMultiStreaming() {
xlaGpuDisableMultiStreaming_ = false;
onChanged();
return this;
}
private boolean xlaLlvmEnableAliasScopeMetadata_ ;
/**
*
* If true, in LLVM-based backends, emit !alias.scope metadata in
* generated IR.
*
*
* bool xla_llvm_enable_alias_scope_metadata = 70;
*/
public boolean getXlaLlvmEnableAliasScopeMetadata() {
return xlaLlvmEnableAliasScopeMetadata_;
}
/**
*
* If true, in LLVM-based backends, emit !alias.scope metadata in
* generated IR.
*
*
* bool xla_llvm_enable_alias_scope_metadata = 70;
*/
public Builder setXlaLlvmEnableAliasScopeMetadata(boolean value) {
xlaLlvmEnableAliasScopeMetadata_ = value;
onChanged();
return this;
}
/**
*
* If true, in LLVM-based backends, emit !alias.scope metadata in
* generated IR.
*
*
* bool xla_llvm_enable_alias_scope_metadata = 70;
*/
public Builder clearXlaLlvmEnableAliasScopeMetadata() {
xlaLlvmEnableAliasScopeMetadata_ = false;
onChanged();
return this;
}
private boolean xlaLlvmEnableNoaliasMetadata_ ;
/**
*
* If true, in LLVM-based backends, emit !noalias metadata in the
* generated IR.
*
*
* bool xla_llvm_enable_noalias_metadata = 71;
*/
public boolean getXlaLlvmEnableNoaliasMetadata() {
return xlaLlvmEnableNoaliasMetadata_;
}
/**
*
* If true, in LLVM-based backends, emit !noalias metadata in the
* generated IR.
*
*
* bool xla_llvm_enable_noalias_metadata = 71;
*/
public Builder setXlaLlvmEnableNoaliasMetadata(boolean value) {
xlaLlvmEnableNoaliasMetadata_ = value;
onChanged();
return this;
}
/**
*
* If true, in LLVM-based backends, emit !noalias metadata in the
* generated IR.
*
*
* bool xla_llvm_enable_noalias_metadata = 71;
*/
public Builder clearXlaLlvmEnableNoaliasMetadata() {
xlaLlvmEnableNoaliasMetadata_ = false;
onChanged();
return this;
}
private boolean xlaLlvmEnableInvariantLoadMetadata_ ;
/**
*
* If true, in LLVM-based backends, emit !invariant.load metadata in
* the generated IR.
*
*
* bool xla_llvm_enable_invariant_load_metadata = 72;
*/
public boolean getXlaLlvmEnableInvariantLoadMetadata() {
return xlaLlvmEnableInvariantLoadMetadata_;
}
/**
*
* If true, in LLVM-based backends, emit !invariant.load metadata in
* the generated IR.
*
*
* bool xla_llvm_enable_invariant_load_metadata = 72;
*/
public Builder setXlaLlvmEnableInvariantLoadMetadata(boolean value) {
xlaLlvmEnableInvariantLoadMetadata_ = value;
onChanged();
return this;
}
/**
*
* If true, in LLVM-based backends, emit !invariant.load metadata in
* the generated IR.
*
*
* bool xla_llvm_enable_invariant_load_metadata = 72;
*/
public Builder clearXlaLlvmEnableInvariantLoadMetadata() {
xlaLlvmEnableInvariantLoadMetadata_ = false;
onChanged();
return this;
}
private boolean xlaLlvmDisableExpensivePasses_ ;
/**
*
* If true, a set of expensive LLVM optimization passes will not be run.
*
*
* bool xla_llvm_disable_expensive_passes = 73;
*/
public boolean getXlaLlvmDisableExpensivePasses() {
return xlaLlvmDisableExpensivePasses_;
}
/**
*
* If true, a set of expensive LLVM optimization passes will not be run.
*
*
* bool xla_llvm_disable_expensive_passes = 73;
*/
public Builder setXlaLlvmDisableExpensivePasses(boolean value) {
xlaLlvmDisableExpensivePasses_ = value;
onChanged();
return this;
}
/**
*
* If true, a set of expensive LLVM optimization passes will not be run.
*
*
* bool xla_llvm_disable_expensive_passes = 73;
*/
public Builder clearXlaLlvmDisableExpensivePasses() {
xlaLlvmDisableExpensivePasses_ = false;
onChanged();
return this;
}
private java.util.List hloReducePrecisionOptions_ =
java.util.Collections.emptyList();
private void ensureHloReducePrecisionOptionsIsMutable() {
if (!((bitField0_ & 0x00800000) == 0x00800000)) {
hloReducePrecisionOptions_ = new java.util.ArrayList(hloReducePrecisionOptions_);
bitField0_ |= 0x00800000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.HloReducePrecisionOptions, xla.Xla.HloReducePrecisionOptions.Builder, xla.Xla.HloReducePrecisionOptionsOrBuilder> hloReducePrecisionOptionsBuilder_;
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public java.util.List getHloReducePrecisionOptionsList() {
if (hloReducePrecisionOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(hloReducePrecisionOptions_);
} else {
return hloReducePrecisionOptionsBuilder_.getMessageList();
}
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public int getHloReducePrecisionOptionsCount() {
if (hloReducePrecisionOptionsBuilder_ == null) {
return hloReducePrecisionOptions_.size();
} else {
return hloReducePrecisionOptionsBuilder_.getCount();
}
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptions getHloReducePrecisionOptions(int index) {
if (hloReducePrecisionOptionsBuilder_ == null) {
return hloReducePrecisionOptions_.get(index);
} else {
return hloReducePrecisionOptionsBuilder_.getMessage(index);
}
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder setHloReducePrecisionOptions(
int index, xla.Xla.HloReducePrecisionOptions value) {
if (hloReducePrecisionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.set(index, value);
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder setHloReducePrecisionOptions(
int index, xla.Xla.HloReducePrecisionOptions.Builder builderForValue) {
if (hloReducePrecisionOptionsBuilder_ == null) {
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.set(index, builderForValue.build());
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder addHloReducePrecisionOptions(xla.Xla.HloReducePrecisionOptions value) {
if (hloReducePrecisionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.add(value);
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder addHloReducePrecisionOptions(
int index, xla.Xla.HloReducePrecisionOptions value) {
if (hloReducePrecisionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.add(index, value);
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder addHloReducePrecisionOptions(
xla.Xla.HloReducePrecisionOptions.Builder builderForValue) {
if (hloReducePrecisionOptionsBuilder_ == null) {
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.add(builderForValue.build());
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder addHloReducePrecisionOptions(
int index, xla.Xla.HloReducePrecisionOptions.Builder builderForValue) {
if (hloReducePrecisionOptionsBuilder_ == null) {
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.add(index, builderForValue.build());
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder addAllHloReducePrecisionOptions(
java.lang.Iterable extends xla.Xla.HloReducePrecisionOptions> values) {
if (hloReducePrecisionOptionsBuilder_ == null) {
ensureHloReducePrecisionOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hloReducePrecisionOptions_);
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder clearHloReducePrecisionOptions() {
if (hloReducePrecisionOptionsBuilder_ == null) {
hloReducePrecisionOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00800000);
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.clear();
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public Builder removeHloReducePrecisionOptions(int index) {
if (hloReducePrecisionOptionsBuilder_ == null) {
ensureHloReducePrecisionOptionsIsMutable();
hloReducePrecisionOptions_.remove(index);
onChanged();
} else {
hloReducePrecisionOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptions.Builder getHloReducePrecisionOptionsBuilder(
int index) {
return getHloReducePrecisionOptionsFieldBuilder().getBuilder(index);
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptionsOrBuilder getHloReducePrecisionOptionsOrBuilder(
int index) {
if (hloReducePrecisionOptionsBuilder_ == null) {
return hloReducePrecisionOptions_.get(index); } else {
return hloReducePrecisionOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public java.util.List extends xla.Xla.HloReducePrecisionOptionsOrBuilder>
getHloReducePrecisionOptionsOrBuilderList() {
if (hloReducePrecisionOptionsBuilder_ != null) {
return hloReducePrecisionOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hloReducePrecisionOptions_);
}
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptions.Builder addHloReducePrecisionOptionsBuilder() {
return getHloReducePrecisionOptionsFieldBuilder().addBuilder(
xla.Xla.HloReducePrecisionOptions.getDefaultInstance());
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public xla.Xla.HloReducePrecisionOptions.Builder addHloReducePrecisionOptionsBuilder(
int index) {
return getHloReducePrecisionOptionsFieldBuilder().addBuilder(
index, xla.Xla.HloReducePrecisionOptions.getDefaultInstance());
}
/**
*
* Options for inserting reduce-precision operations for numerical
* experimentation. This is a repeated field, as we may want to have
* multiple passes with different parameters.
*
*
* repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80;
*/
public java.util.List
getHloReducePrecisionOptionsBuilderList() {
return getHloReducePrecisionOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.HloReducePrecisionOptions, xla.Xla.HloReducePrecisionOptions.Builder, xla.Xla.HloReducePrecisionOptionsOrBuilder>
getHloReducePrecisionOptionsFieldBuilder() {
if (hloReducePrecisionOptionsBuilder_ == null) {
hloReducePrecisionOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.HloReducePrecisionOptions, xla.Xla.HloReducePrecisionOptions.Builder, xla.Xla.HloReducePrecisionOptionsOrBuilder>(
hloReducePrecisionOptions_,
((bitField0_ & 0x00800000) == 0x00800000),
getParentForChildren(),
isClean());
hloReducePrecisionOptions_ = null;
}
return hloReducePrecisionOptionsBuilder_;
}
private boolean xlaTestAllOutputLayouts_ ;
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run n! times with all permunations of layouts for the
* output shape in rank n. For example, with a 3D shape, all permutations of
* the set {0, 1, 2} are tried.
*
*
* bool xla_test_all_output_layouts = 90;
*/
public boolean getXlaTestAllOutputLayouts() {
return xlaTestAllOutputLayouts_;
}
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run n! times with all permunations of layouts for the
* output shape in rank n. For example, with a 3D shape, all permutations of
* the set {0, 1, 2} are tried.
*
*
* bool xla_test_all_output_layouts = 90;
*/
public Builder setXlaTestAllOutputLayouts(boolean value) {
xlaTestAllOutputLayouts_ = value;
onChanged();
return this;
}
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run n! times with all permunations of layouts for the
* output shape in rank n. For example, with a 3D shape, all permutations of
* the set {0, 1, 2} are tried.
*
*
* bool xla_test_all_output_layouts = 90;
*/
public Builder clearXlaTestAllOutputLayouts() {
xlaTestAllOutputLayouts_ = false;
onChanged();
return this;
}
private boolean xlaTestAllInputLayouts_ ;
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run for all permunations of layouts of all input
* arguments. For example, with 2 input arguments in 2D and 4D shapes, the
* computation will run 2! * 4! times.
*
*
* bool xla_test_all_input_layouts = 91;
*/
public boolean getXlaTestAllInputLayouts() {
return xlaTestAllInputLayouts_;
}
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run for all permunations of layouts of all input
* arguments. For example, with 2 input arguments in 2D and 4D shapes, the
* computation will run 2! * 4! times.
*
*
* bool xla_test_all_input_layouts = 91;
*/
public Builder setXlaTestAllInputLayouts(boolean value) {
xlaTestAllInputLayouts_ = value;
onChanged();
return this;
}
/**
*
* This is used by ClientLibraryTestBase::ComputeAndCompare*. If true, the
* computation will run for all permunations of layouts of all input
* arguments. For example, with 2 input arguments in 2D and 4D shapes, the
* computation will run 2! * 4! times.
*
*
* bool xla_test_all_input_layouts = 91;
*/
public Builder clearXlaTestAllInputLayouts() {
xlaTestAllInputLayouts_ = false;
onChanged();
return this;
}
private boolean xlaHloGraphShardingColor_ ;
/**
*
* Assign colors based on sharding information when generating the Graphviz
* HLO graph.
*
*
* bool xla_hlo_graph_sharding_color = 92;
*/
public boolean getXlaHloGraphShardingColor() {
return xlaHloGraphShardingColor_;
}
/**
*
* Assign colors based on sharding information when generating the Graphviz
* HLO graph.
*
*
* bool xla_hlo_graph_sharding_color = 92;
*/
public Builder setXlaHloGraphShardingColor(boolean value) {
xlaHloGraphShardingColor_ = value;
onChanged();
return this;
}
/**
*
* Assign colors based on sharding information when generating the Graphviz
* HLO graph.
*
*
* bool xla_hlo_graph_sharding_color = 92;
*/
public Builder clearXlaHloGraphShardingColor() {
xlaHloGraphShardingColor_ = false;
onChanged();
return this;
}
private boolean xlaHloTfgraphDeviceScopes_ ;
/**
*
* Prefix the name scopes of the TF graph exports with "devX" device
* assignments, if available.
*
*
* bool xla_hlo_tfgraph_device_scopes = 93;
*/
public boolean getXlaHloTfgraphDeviceScopes() {
return xlaHloTfgraphDeviceScopes_;
}
/**
*
* Prefix the name scopes of the TF graph exports with "devX" device
* assignments, if available.
*
*
* bool xla_hlo_tfgraph_device_scopes = 93;
*/
public Builder setXlaHloTfgraphDeviceScopes(boolean value) {
xlaHloTfgraphDeviceScopes_ = value;
onChanged();
return this;
}
/**
*
* Prefix the name scopes of the TF graph exports with "devX" device
* assignments, if available.
*
*
* bool xla_hlo_tfgraph_device_scopes = 93;
*/
public Builder clearXlaHloTfgraphDeviceScopes() {
xlaHloTfgraphDeviceScopes_ = false;
onChanged();
return this;
}
private boolean xlaGpuUseCudnnBatchnorm_ ;
/**
*
* If true, the GPU backend is free to use cudnn for HLO batch normalization
* ops.
*
*
* bool xla_gpu_use_cudnn_batchnorm = 94;
*/
public boolean getXlaGpuUseCudnnBatchnorm() {
return xlaGpuUseCudnnBatchnorm_;
}
/**
*
* If true, the GPU backend is free to use cudnn for HLO batch normalization
* ops.
*
*
* bool xla_gpu_use_cudnn_batchnorm = 94;
*/
public Builder setXlaGpuUseCudnnBatchnorm(boolean value) {
xlaGpuUseCudnnBatchnorm_ = value;
onChanged();
return this;
}
/**
*
* If true, the GPU backend is free to use cudnn for HLO batch normalization
* ops.
*
*
* bool xla_gpu_use_cudnn_batchnorm = 94;
*/
public Builder clearXlaGpuUseCudnnBatchnorm() {
xlaGpuUseCudnnBatchnorm_ = false;
onChanged();
return this;
}
private java.lang.Object xlaDumpUnoptimizedHloProtoTo_ = "";
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public java.lang.String getXlaDumpUnoptimizedHloProtoTo() {
java.lang.Object ref = xlaDumpUnoptimizedHloProtoTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaDumpUnoptimizedHloProtoTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public com.google.protobuf.ByteString
getXlaDumpUnoptimizedHloProtoToBytes() {
java.lang.Object ref = xlaDumpUnoptimizedHloProtoTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpUnoptimizedHloProtoTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public Builder setXlaDumpUnoptimizedHloProtoTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaDumpUnoptimizedHloProtoTo_ = value;
onChanged();
return this;
}
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public Builder clearXlaDumpUnoptimizedHloProtoTo() {
xlaDumpUnoptimizedHloProtoTo_ = getDefaultInstance().getXlaDumpUnoptimizedHloProtoTo();
onChanged();
return this;
}
/**
*
* Dump HLO before any hlo passes are executed as proto binary into this
* directory.
*
*
* string xla_dump_unoptimized_hlo_proto_to = 95;
*/
public Builder setXlaDumpUnoptimizedHloProtoToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaDumpUnoptimizedHloProtoTo_ = value;
onChanged();
return this;
}
private java.lang.Object xlaDumpPerPassHloProtoTo_ = "";
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public java.lang.String getXlaDumpPerPassHloProtoTo() {
java.lang.Object ref = xlaDumpPerPassHloProtoTo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
xlaDumpPerPassHloProtoTo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public com.google.protobuf.ByteString
getXlaDumpPerPassHloProtoToBytes() {
java.lang.Object ref = xlaDumpPerPassHloProtoTo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
xlaDumpPerPassHloProtoTo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public Builder setXlaDumpPerPassHloProtoTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
xlaDumpPerPassHloProtoTo_ = value;
onChanged();
return this;
}
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public Builder clearXlaDumpPerPassHloProtoTo() {
xlaDumpPerPassHloProtoTo_ = getDefaultInstance().getXlaDumpPerPassHloProtoTo();
onChanged();
return this;
}
/**
*
* Dump HLO after each pass as an HloProto in binary file format into this
* directory.
*
*
* string xla_dump_per_pass_hlo_proto_to = 96;
*/
public Builder setXlaDumpPerPassHloProtoToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
xlaDumpPerPassHloProtoTo_ = value;
onChanged();
return this;
}
private boolean xlaCpuUseMklDnn_ ;
/**
*
* Generate calls to MKL-DNN in the CPU backend.
*
*
* bool xla_cpu_use_mkl_dnn = 97;
*/
public boolean getXlaCpuUseMklDnn() {
return xlaCpuUseMklDnn_;
}
/**
*
* Generate calls to MKL-DNN in the CPU backend.
*
*
* bool xla_cpu_use_mkl_dnn = 97;
*/
public Builder setXlaCpuUseMklDnn(boolean value) {
xlaCpuUseMklDnn_ = value;
onChanged();
return this;
}
/**
*
* Generate calls to MKL-DNN in the CPU backend.
*
*
* bool xla_cpu_use_mkl_dnn = 97;
*/
public Builder clearXlaCpuUseMklDnn() {
xlaCpuUseMklDnn_ = false;
onChanged();
return this;
}
private int xlaGpuMaxKernelUnrollFactor_ ;
/**
*
* Maximum kernel unroll factor for the GPU backend.
*
*
* int32 xla_gpu_max_kernel_unroll_factor = 98;
*/
public int getXlaGpuMaxKernelUnrollFactor() {
return xlaGpuMaxKernelUnrollFactor_;
}
/**
*
* Maximum kernel unroll factor for the GPU backend.
*
*
* int32 xla_gpu_max_kernel_unroll_factor = 98;
*/
public Builder setXlaGpuMaxKernelUnrollFactor(int value) {
xlaGpuMaxKernelUnrollFactor_ = value;
onChanged();
return this;
}
/**
*
* Maximum kernel unroll factor for the GPU backend.
*
*
* int32 xla_gpu_max_kernel_unroll_factor = 98;
*/
public Builder clearXlaGpuMaxKernelUnrollFactor() {
xlaGpuMaxKernelUnrollFactor_ = 0;
onChanged();
return this;
}
private boolean xlaCpuEnableFastMath_ ;
/**
*
* When true, "unsafe" mathematical optimizations are enabled. These
* transformations include but are not limited to:
* - Reducing the precision of operations (e.g. using an approximate sin
* function, or transforming x/y into x * (1/y)).
* - Assuming that operations never produce or consume NaN or +/- Inf.
* - Assuming that +0 and -0 are indistinguishable.
*
*
* bool xla_cpu_enable_fast_math = 99;
*/
public boolean getXlaCpuEnableFastMath() {
return xlaCpuEnableFastMath_;
}
/**
*
* When true, "unsafe" mathematical optimizations are enabled. These
* transformations include but are not limited to:
* - Reducing the precision of operations (e.g. using an approximate sin
* function, or transforming x/y into x * (1/y)).
* - Assuming that operations never produce or consume NaN or +/- Inf.
* - Assuming that +0 and -0 are indistinguishable.
*
*
* bool xla_cpu_enable_fast_math = 99;
*/
public Builder setXlaCpuEnableFastMath(boolean value) {
xlaCpuEnableFastMath_ = value;
onChanged();
return this;
}
/**
*
* When true, "unsafe" mathematical optimizations are enabled. These
* transformations include but are not limited to:
* - Reducing the precision of operations (e.g. using an approximate sin
* function, or transforming x/y into x * (1/y)).
* - Assuming that operations never produce or consume NaN or +/- Inf.
* - Assuming that +0 and -0 are indistinguishable.
*
*
* bool xla_cpu_enable_fast_math = 99;
*/
public Builder clearXlaCpuEnableFastMath() {
xlaCpuEnableFastMath_ = false;
onChanged();
return this;
}
private boolean xlaGpuEnableFastMath_ ;
/**
* bool xla_gpu_enable_fast_math = 100;
*/
public boolean getXlaGpuEnableFastMath() {
return xlaGpuEnableFastMath_;
}
/**
* bool xla_gpu_enable_fast_math = 100;
*/
public Builder setXlaGpuEnableFastMath(boolean value) {
xlaGpuEnableFastMath_ = value;
onChanged();
return this;
}
/**
* bool xla_gpu_enable_fast_math = 100;
*/
public Builder clearXlaGpuEnableFastMath() {
xlaGpuEnableFastMath_ = false;
onChanged();
return this;
}
private boolean xlaGpuCrashOnVerificationFailures_ ;
/**
*
* Crashes the program when any kind of verification fails, instead of just
* logging the failures. One example is cross checking of convolution results
* among different algorithms.
*
*
* bool xla_gpu_crash_on_verification_failures = 101;
*/
public boolean getXlaGpuCrashOnVerificationFailures() {
return xlaGpuCrashOnVerificationFailures_;
}
/**
*
* Crashes the program when any kind of verification fails, instead of just
* logging the failures. One example is cross checking of convolution results
* among different algorithms.
*
*
* bool xla_gpu_crash_on_verification_failures = 101;
*/
public Builder setXlaGpuCrashOnVerificationFailures(boolean value) {
xlaGpuCrashOnVerificationFailures_ = value;
onChanged();
return this;
}
/**
*
* Crashes the program when any kind of verification fails, instead of just
* logging the failures. One example is cross checking of convolution results
* among different algorithms.
*
*
* bool xla_gpu_crash_on_verification_failures = 101;
*/
public Builder clearXlaGpuCrashOnVerificationFailures() {
xlaGpuCrashOnVerificationFailures_ = false;
onChanged();
return this;
}
private int xlaForceHostPlatformDeviceCount_ ;
/**
*
* Force the host platform to pretend that there are these many host
* "devices". All these devices are backed by the same threadpool. Defaults
* to 1.
* Setting this to anything other than 1 can increase overhead from context
* switching but we let the user override this behavior to help run tests on
* the host that run models in parallel across multiple devices.
*
*
* int32 xla_force_host_platform_device_count = 102;
*/
public int getXlaForceHostPlatformDeviceCount() {
return xlaForceHostPlatformDeviceCount_;
}
/**
*
* Force the host platform to pretend that there are these many host
* "devices". All these devices are backed by the same threadpool. Defaults
* to 1.
* Setting this to anything other than 1 can increase overhead from context
* switching but we let the user override this behavior to help run tests on
* the host that run models in parallel across multiple devices.
*
*
* int32 xla_force_host_platform_device_count = 102;
*/
public Builder setXlaForceHostPlatformDeviceCount(int value) {
xlaForceHostPlatformDeviceCount_ = value;
onChanged();
return this;
}
/**
*
* Force the host platform to pretend that there are these many host
* "devices". All these devices are backed by the same threadpool. Defaults
* to 1.
* Setting this to anything other than 1 can increase overhead from context
* switching but we let the user override this behavior to help run tests on
* the host that run models in parallel across multiple devices.
*
*
* int32 xla_force_host_platform_device_count = 102;
*/
public Builder clearXlaForceHostPlatformDeviceCount() {
xlaForceHostPlatformDeviceCount_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> xlaBackendExtraOptions_;
private com.google.protobuf.MapField
internalGetXlaBackendExtraOptions() {
if (xlaBackendExtraOptions_ == null) {
return com.google.protobuf.MapField.emptyMapField(
XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry);
}
return xlaBackendExtraOptions_;
}
private com.google.protobuf.MapField
internalGetMutableXlaBackendExtraOptions() {
onChanged();;
if (xlaBackendExtraOptions_ == null) {
xlaBackendExtraOptions_ = com.google.protobuf.MapField.newMapField(
XlaBackendExtraOptionsDefaultEntryHolder.defaultEntry);
}
if (!xlaBackendExtraOptions_.isMutable()) {
xlaBackendExtraOptions_ = xlaBackendExtraOptions_.copy();
}
return xlaBackendExtraOptions_;
}
public int getXlaBackendExtraOptionsCount() {
return internalGetXlaBackendExtraOptions().getMap().size();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public boolean containsXlaBackendExtraOptions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetXlaBackendExtraOptions().getMap().containsKey(key);
}
/**
* Use {@link #getXlaBackendExtraOptionsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getXlaBackendExtraOptions() {
return getXlaBackendExtraOptionsMap();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public java.util.Map getXlaBackendExtraOptionsMap() {
return internalGetXlaBackendExtraOptions().getMap();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public java.lang.String getXlaBackendExtraOptionsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetXlaBackendExtraOptions().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public java.lang.String getXlaBackendExtraOptionsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetXlaBackendExtraOptions().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearXlaBackendExtraOptions() {
internalGetMutableXlaBackendExtraOptions().getMutableMap()
.clear();
return this;
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public Builder removeXlaBackendExtraOptions(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableXlaBackendExtraOptions().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableXlaBackendExtraOptions() {
return internalGetMutableXlaBackendExtraOptions().getMutableMap();
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public Builder putXlaBackendExtraOptions(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableXlaBackendExtraOptions().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Extra options to pass to the compilation backend (e.g. LLVM); specific
* interpretation of these values is left to the backend.
*
*
* map<string, string> xla_backend_extra_options = 500;
*/
public Builder putAllXlaBackendExtraOptions(
java.util.Map values) {
internalGetMutableXlaBackendExtraOptions().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.DebugOptions)
}
// @@protoc_insertion_point(class_scope:xla.DebugOptions)
private static final xla.Xla.DebugOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.DebugOptions();
}
public static xla.Xla.DebugOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DebugOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DebugOptions(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 xla.Xla.DebugOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ExecutionOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
boolean hasShapeWithOutputLayout();
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
xla.XlaData.Shape getShapeWithOutputLayout();
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
xla.XlaData.ShapeOrBuilder getShapeWithOutputLayoutOrBuilder();
/**
*
* Used to seed random-number generators used in this computation. If this is
* 0, we generate a seed ourselves.
* TODO(b/32083678): Changing the seed unnecessarily forces a recompilation.
*
*
* uint64 seed = 3;
*/
long getSeed();
/**
* .xla.DebugOptions debug_options = 4;
*/
boolean hasDebugOptions();
/**
* .xla.DebugOptions debug_options = 4;
*/
xla.Xla.DebugOptions getDebugOptions();
/**
* .xla.DebugOptions debug_options = 4;
*/
xla.Xla.DebugOptionsOrBuilder getDebugOptionsOrBuilder();
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
java.util.List
getDeviceHandlesList();
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
xla.XlaData.DeviceHandle getDeviceHandles(int index);
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
int getDeviceHandlesCount();
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
java.util.List extends xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesOrBuilderList();
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
xla.XlaData.DeviceHandleOrBuilder getDeviceHandlesOrBuilder(
int index);
}
/**
*
* These settings control how XLA compiles and/or runs code. Not all settings
* will have an effect on every platform.
* When adding new fields, keep in mind that boolean fields default to false.
*
*
* Protobuf type {@code xla.ExecutionOptions}
*/
public static final class ExecutionOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ExecutionOptions)
ExecutionOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionOptions.newBuilder() to construct.
private ExecutionOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionOptions() {
seed_ = 0L;
deviceHandles_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionOptions(
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 18: {
xla.XlaData.Shape.Builder subBuilder = null;
if (shapeWithOutputLayout_ != null) {
subBuilder = shapeWithOutputLayout_.toBuilder();
}
shapeWithOutputLayout_ = input.readMessage(xla.XlaData.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shapeWithOutputLayout_);
shapeWithOutputLayout_ = subBuilder.buildPartial();
}
break;
}
case 24: {
seed_ = input.readUInt64();
break;
}
case 34: {
xla.Xla.DebugOptions.Builder subBuilder = null;
if (debugOptions_ != null) {
subBuilder = debugOptions_.toBuilder();
}
debugOptions_ = input.readMessage(xla.Xla.DebugOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(debugOptions_);
debugOptions_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
deviceHandles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
deviceHandles_.add(
input.readMessage(xla.XlaData.DeviceHandle.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
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_ & 0x00000008) == 0x00000008)) {
deviceHandles_ = java.util.Collections.unmodifiableList(deviceHandles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecutionOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecutionOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecutionOptions.class, xla.Xla.ExecutionOptions.Builder.class);
}
private int bitField0_;
public static final int SHAPE_WITH_OUTPUT_LAYOUT_FIELD_NUMBER = 2;
private xla.XlaData.Shape shapeWithOutputLayout_;
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public boolean hasShapeWithOutputLayout() {
return shapeWithOutputLayout_ != null;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public xla.XlaData.Shape getShapeWithOutputLayout() {
return shapeWithOutputLayout_ == null ? xla.XlaData.Shape.getDefaultInstance() : shapeWithOutputLayout_;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public xla.XlaData.ShapeOrBuilder getShapeWithOutputLayoutOrBuilder() {
return getShapeWithOutputLayout();
}
public static final int SEED_FIELD_NUMBER = 3;
private long seed_;
/**
*
* Used to seed random-number generators used in this computation. If this is
* 0, we generate a seed ourselves.
* TODO(b/32083678): Changing the seed unnecessarily forces a recompilation.
*
*
* uint64 seed = 3;
*/
public long getSeed() {
return seed_;
}
public static final int DEBUG_OPTIONS_FIELD_NUMBER = 4;
private xla.Xla.DebugOptions debugOptions_;
/**
* .xla.DebugOptions debug_options = 4;
*/
public boolean hasDebugOptions() {
return debugOptions_ != null;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public xla.Xla.DebugOptions getDebugOptions() {
return debugOptions_ == null ? xla.Xla.DebugOptions.getDefaultInstance() : debugOptions_;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public xla.Xla.DebugOptionsOrBuilder getDebugOptionsOrBuilder() {
return getDebugOptions();
}
public static final int DEVICE_HANDLES_FIELD_NUMBER = 5;
private java.util.List deviceHandles_;
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public java.util.List getDeviceHandlesList() {
return deviceHandles_;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public java.util.List extends xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesOrBuilderList() {
return deviceHandles_;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public int getDeviceHandlesCount() {
return deviceHandles_.size();
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandle getDeviceHandles(int index) {
return deviceHandles_.get(index);
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandlesOrBuilder(
int index) {
return deviceHandles_.get(index);
}
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 (shapeWithOutputLayout_ != null) {
output.writeMessage(2, getShapeWithOutputLayout());
}
if (seed_ != 0L) {
output.writeUInt64(3, seed_);
}
if (debugOptions_ != null) {
output.writeMessage(4, getDebugOptions());
}
for (int i = 0; i < deviceHandles_.size(); i++) {
output.writeMessage(5, deviceHandles_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (shapeWithOutputLayout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getShapeWithOutputLayout());
}
if (seed_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, seed_);
}
if (debugOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDebugOptions());
}
for (int i = 0; i < deviceHandles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, deviceHandles_.get(i));
}
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 xla.Xla.ExecutionOptions)) {
return super.equals(obj);
}
xla.Xla.ExecutionOptions other = (xla.Xla.ExecutionOptions) obj;
boolean result = true;
result = result && (hasShapeWithOutputLayout() == other.hasShapeWithOutputLayout());
if (hasShapeWithOutputLayout()) {
result = result && getShapeWithOutputLayout()
.equals(other.getShapeWithOutputLayout());
}
result = result && (getSeed()
== other.getSeed());
result = result && (hasDebugOptions() == other.hasDebugOptions());
if (hasDebugOptions()) {
result = result && getDebugOptions()
.equals(other.getDebugOptions());
}
result = result && getDeviceHandlesList()
.equals(other.getDeviceHandlesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasShapeWithOutputLayout()) {
hash = (37 * hash) + SHAPE_WITH_OUTPUT_LAYOUT_FIELD_NUMBER;
hash = (53 * hash) + getShapeWithOutputLayout().hashCode();
}
hash = (37 * hash) + SEED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSeed());
if (hasDebugOptions()) {
hash = (37 * hash) + DEBUG_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getDebugOptions().hashCode();
}
if (getDeviceHandlesCount() > 0) {
hash = (37 * hash) + DEVICE_HANDLES_FIELD_NUMBER;
hash = (53 * hash) + getDeviceHandlesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ExecutionOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecutionOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecutionOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecutionOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecutionOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecutionOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecutionOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecutionOptions 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 xla.Xla.ExecutionOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ExecutionOptions 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 xla.Xla.ExecutionOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecutionOptions 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(xla.Xla.ExecutionOptions 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;
}
/**
*
* These settings control how XLA compiles and/or runs code. Not all settings
* will have an effect on every platform.
* When adding new fields, keep in mind that boolean fields default to false.
*
*
* Protobuf type {@code xla.ExecutionOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ExecutionOptions)
xla.Xla.ExecutionOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecutionOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecutionOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecutionOptions.class, xla.Xla.ExecutionOptions.Builder.class);
}
// Construct using xla.Xla.ExecutionOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeviceHandlesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (shapeWithOutputLayoutBuilder_ == null) {
shapeWithOutputLayout_ = null;
} else {
shapeWithOutputLayout_ = null;
shapeWithOutputLayoutBuilder_ = null;
}
seed_ = 0L;
if (debugOptionsBuilder_ == null) {
debugOptions_ = null;
} else {
debugOptions_ = null;
debugOptionsBuilder_ = null;
}
if (deviceHandlesBuilder_ == null) {
deviceHandles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
deviceHandlesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ExecutionOptions_descriptor;
}
@java.lang.Override
public xla.Xla.ExecutionOptions getDefaultInstanceForType() {
return xla.Xla.ExecutionOptions.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ExecutionOptions build() {
xla.Xla.ExecutionOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ExecutionOptions buildPartial() {
xla.Xla.ExecutionOptions result = new xla.Xla.ExecutionOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (shapeWithOutputLayoutBuilder_ == null) {
result.shapeWithOutputLayout_ = shapeWithOutputLayout_;
} else {
result.shapeWithOutputLayout_ = shapeWithOutputLayoutBuilder_.build();
}
result.seed_ = seed_;
if (debugOptionsBuilder_ == null) {
result.debugOptions_ = debugOptions_;
} else {
result.debugOptions_ = debugOptionsBuilder_.build();
}
if (deviceHandlesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
deviceHandles_ = java.util.Collections.unmodifiableList(deviceHandles_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.deviceHandles_ = deviceHandles_;
} else {
result.deviceHandles_ = deviceHandlesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ExecutionOptions) {
return mergeFrom((xla.Xla.ExecutionOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ExecutionOptions other) {
if (other == xla.Xla.ExecutionOptions.getDefaultInstance()) return this;
if (other.hasShapeWithOutputLayout()) {
mergeShapeWithOutputLayout(other.getShapeWithOutputLayout());
}
if (other.getSeed() != 0L) {
setSeed(other.getSeed());
}
if (other.hasDebugOptions()) {
mergeDebugOptions(other.getDebugOptions());
}
if (deviceHandlesBuilder_ == null) {
if (!other.deviceHandles_.isEmpty()) {
if (deviceHandles_.isEmpty()) {
deviceHandles_ = other.deviceHandles_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureDeviceHandlesIsMutable();
deviceHandles_.addAll(other.deviceHandles_);
}
onChanged();
}
} else {
if (!other.deviceHandles_.isEmpty()) {
if (deviceHandlesBuilder_.isEmpty()) {
deviceHandlesBuilder_.dispose();
deviceHandlesBuilder_ = null;
deviceHandles_ = other.deviceHandles_;
bitField0_ = (bitField0_ & ~0x00000008);
deviceHandlesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceHandlesFieldBuilder() : null;
} else {
deviceHandlesBuilder_.addAllMessages(other.deviceHandles_);
}
}
}
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 {
xla.Xla.ExecutionOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ExecutionOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private xla.XlaData.Shape shapeWithOutputLayout_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder> shapeWithOutputLayoutBuilder_;
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public boolean hasShapeWithOutputLayout() {
return shapeWithOutputLayoutBuilder_ != null || shapeWithOutputLayout_ != null;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public xla.XlaData.Shape getShapeWithOutputLayout() {
if (shapeWithOutputLayoutBuilder_ == null) {
return shapeWithOutputLayout_ == null ? xla.XlaData.Shape.getDefaultInstance() : shapeWithOutputLayout_;
} else {
return shapeWithOutputLayoutBuilder_.getMessage();
}
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public Builder setShapeWithOutputLayout(xla.XlaData.Shape value) {
if (shapeWithOutputLayoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shapeWithOutputLayout_ = value;
onChanged();
} else {
shapeWithOutputLayoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public Builder setShapeWithOutputLayout(
xla.XlaData.Shape.Builder builderForValue) {
if (shapeWithOutputLayoutBuilder_ == null) {
shapeWithOutputLayout_ = builderForValue.build();
onChanged();
} else {
shapeWithOutputLayoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public Builder mergeShapeWithOutputLayout(xla.XlaData.Shape value) {
if (shapeWithOutputLayoutBuilder_ == null) {
if (shapeWithOutputLayout_ != null) {
shapeWithOutputLayout_ =
xla.XlaData.Shape.newBuilder(shapeWithOutputLayout_).mergeFrom(value).buildPartial();
} else {
shapeWithOutputLayout_ = value;
}
onChanged();
} else {
shapeWithOutputLayoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public Builder clearShapeWithOutputLayout() {
if (shapeWithOutputLayoutBuilder_ == null) {
shapeWithOutputLayout_ = null;
onChanged();
} else {
shapeWithOutputLayout_ = null;
shapeWithOutputLayoutBuilder_ = null;
}
return this;
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public xla.XlaData.Shape.Builder getShapeWithOutputLayoutBuilder() {
onChanged();
return getShapeWithOutputLayoutFieldBuilder().getBuilder();
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
public xla.XlaData.ShapeOrBuilder getShapeWithOutputLayoutOrBuilder() {
if (shapeWithOutputLayoutBuilder_ != null) {
return shapeWithOutputLayoutBuilder_.getMessageOrBuilder();
} else {
return shapeWithOutputLayout_ == null ?
xla.XlaData.Shape.getDefaultInstance() : shapeWithOutputLayout_;
}
}
/**
*
* This optional field's layout is used as a hint when storing the output of
* this computation. Subsequent transfers of this output array to the client
* may be faster when using this layout.
* We use a Shape here to accommodate computations that return a tuple.
*
*
* .xla.Shape shape_with_output_layout = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>
getShapeWithOutputLayoutFieldBuilder() {
if (shapeWithOutputLayoutBuilder_ == null) {
shapeWithOutputLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>(
getShapeWithOutputLayout(),
getParentForChildren(),
isClean());
shapeWithOutputLayout_ = null;
}
return shapeWithOutputLayoutBuilder_;
}
private long seed_ ;
/**
*
* Used to seed random-number generators used in this computation. If this is
* 0, we generate a seed ourselves.
* TODO(b/32083678): Changing the seed unnecessarily forces a recompilation.
*
*
* uint64 seed = 3;
*/
public long getSeed() {
return seed_;
}
/**
*
* Used to seed random-number generators used in this computation. If this is
* 0, we generate a seed ourselves.
* TODO(b/32083678): Changing the seed unnecessarily forces a recompilation.
*
*
* uint64 seed = 3;
*/
public Builder setSeed(long value) {
seed_ = value;
onChanged();
return this;
}
/**
*
* Used to seed random-number generators used in this computation. If this is
* 0, we generate a seed ourselves.
* TODO(b/32083678): Changing the seed unnecessarily forces a recompilation.
*
*
* uint64 seed = 3;
*/
public Builder clearSeed() {
seed_ = 0L;
onChanged();
return this;
}
private xla.Xla.DebugOptions debugOptions_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.DebugOptions, xla.Xla.DebugOptions.Builder, xla.Xla.DebugOptionsOrBuilder> debugOptionsBuilder_;
/**
* .xla.DebugOptions debug_options = 4;
*/
public boolean hasDebugOptions() {
return debugOptionsBuilder_ != null || debugOptions_ != null;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public xla.Xla.DebugOptions getDebugOptions() {
if (debugOptionsBuilder_ == null) {
return debugOptions_ == null ? xla.Xla.DebugOptions.getDefaultInstance() : debugOptions_;
} else {
return debugOptionsBuilder_.getMessage();
}
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public Builder setDebugOptions(xla.Xla.DebugOptions value) {
if (debugOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
debugOptions_ = value;
onChanged();
} else {
debugOptionsBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public Builder setDebugOptions(
xla.Xla.DebugOptions.Builder builderForValue) {
if (debugOptionsBuilder_ == null) {
debugOptions_ = builderForValue.build();
onChanged();
} else {
debugOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public Builder mergeDebugOptions(xla.Xla.DebugOptions value) {
if (debugOptionsBuilder_ == null) {
if (debugOptions_ != null) {
debugOptions_ =
xla.Xla.DebugOptions.newBuilder(debugOptions_).mergeFrom(value).buildPartial();
} else {
debugOptions_ = value;
}
onChanged();
} else {
debugOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public Builder clearDebugOptions() {
if (debugOptionsBuilder_ == null) {
debugOptions_ = null;
onChanged();
} else {
debugOptions_ = null;
debugOptionsBuilder_ = null;
}
return this;
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public xla.Xla.DebugOptions.Builder getDebugOptionsBuilder() {
onChanged();
return getDebugOptionsFieldBuilder().getBuilder();
}
/**
* .xla.DebugOptions debug_options = 4;
*/
public xla.Xla.DebugOptionsOrBuilder getDebugOptionsOrBuilder() {
if (debugOptionsBuilder_ != null) {
return debugOptionsBuilder_.getMessageOrBuilder();
} else {
return debugOptions_ == null ?
xla.Xla.DebugOptions.getDefaultInstance() : debugOptions_;
}
}
/**
* .xla.DebugOptions debug_options = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.DebugOptions, xla.Xla.DebugOptions.Builder, xla.Xla.DebugOptionsOrBuilder>
getDebugOptionsFieldBuilder() {
if (debugOptionsBuilder_ == null) {
debugOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.DebugOptions, xla.Xla.DebugOptions.Builder, xla.Xla.DebugOptionsOrBuilder>(
getDebugOptions(),
getParentForChildren(),
isClean());
debugOptions_ = null;
}
return debugOptionsBuilder_;
}
private java.util.List deviceHandles_ =
java.util.Collections.emptyList();
private void ensureDeviceHandlesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
deviceHandles_ = new java.util.ArrayList(deviceHandles_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder> deviceHandlesBuilder_;
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public java.util.List getDeviceHandlesList() {
if (deviceHandlesBuilder_ == null) {
return java.util.Collections.unmodifiableList(deviceHandles_);
} else {
return deviceHandlesBuilder_.getMessageList();
}
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public int getDeviceHandlesCount() {
if (deviceHandlesBuilder_ == null) {
return deviceHandles_.size();
} else {
return deviceHandlesBuilder_.getCount();
}
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandle getDeviceHandles(int index) {
if (deviceHandlesBuilder_ == null) {
return deviceHandles_.get(index);
} else {
return deviceHandlesBuilder_.getMessage(index);
}
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder setDeviceHandles(
int index, xla.XlaData.DeviceHandle value) {
if (deviceHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceHandlesIsMutable();
deviceHandles_.set(index, value);
onChanged();
} else {
deviceHandlesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder setDeviceHandles(
int index, xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.set(index, builderForValue.build());
onChanged();
} else {
deviceHandlesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder addDeviceHandles(xla.XlaData.DeviceHandle value) {
if (deviceHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceHandlesIsMutable();
deviceHandles_.add(value);
onChanged();
} else {
deviceHandlesBuilder_.addMessage(value);
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder addDeviceHandles(
int index, xla.XlaData.DeviceHandle value) {
if (deviceHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceHandlesIsMutable();
deviceHandles_.add(index, value);
onChanged();
} else {
deviceHandlesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder addDeviceHandles(
xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.add(builderForValue.build());
onChanged();
} else {
deviceHandlesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder addDeviceHandles(
int index, xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.add(index, builderForValue.build());
onChanged();
} else {
deviceHandlesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder addAllDeviceHandles(
java.lang.Iterable extends xla.XlaData.DeviceHandle> values) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceHandles_);
onChanged();
} else {
deviceHandlesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder clearDeviceHandles() {
if (deviceHandlesBuilder_ == null) {
deviceHandles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
deviceHandlesBuilder_.clear();
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public Builder removeDeviceHandles(int index) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.remove(index);
onChanged();
} else {
deviceHandlesBuilder_.remove(index);
}
return this;
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandle.Builder getDeviceHandlesBuilder(
int index) {
return getDeviceHandlesFieldBuilder().getBuilder(index);
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandlesOrBuilder(
int index) {
if (deviceHandlesBuilder_ == null) {
return deviceHandles_.get(index); } else {
return deviceHandlesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public java.util.List extends xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesOrBuilderList() {
if (deviceHandlesBuilder_ != null) {
return deviceHandlesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deviceHandles_);
}
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandle.Builder addDeviceHandlesBuilder() {
return getDeviceHandlesFieldBuilder().addBuilder(
xla.XlaData.DeviceHandle.getDefaultInstance());
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public xla.XlaData.DeviceHandle.Builder addDeviceHandlesBuilder(
int index) {
return getDeviceHandlesFieldBuilder().addBuilder(
index, xla.XlaData.DeviceHandle.getDefaultInstance());
}
/**
*
* This optional field specifies a particular set of devices to run the
* computation on. The computation will be partitioned across these devices.
* If not provided, the default device will be chosen.
*
*
* repeated .xla.DeviceHandle device_handles = 5;
*/
public java.util.List
getDeviceHandlesBuilderList() {
return getDeviceHandlesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesFieldBuilder() {
if (deviceHandlesBuilder_ == null) {
deviceHandlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>(
deviceHandles_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
deviceHandles_ = null;
}
return deviceHandlesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ExecutionOptions)
}
// @@protoc_insertion_point(class_scope:xla.ExecutionOptions)
private static final xla.Xla.ExecutionOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ExecutionOptions();
}
public static xla.Xla.ExecutionOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecutionOptions(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 xla.Xla.ExecutionOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDeviceHandlesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.GetDeviceHandlesRequest)
com.google.protobuf.MessageOrBuilder {
/**
* int64 device_count = 1;
*/
long getDeviceCount();
}
/**
* Protobuf type {@code xla.GetDeviceHandlesRequest}
*/
public static final class GetDeviceHandlesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.GetDeviceHandlesRequest)
GetDeviceHandlesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDeviceHandlesRequest.newBuilder() to construct.
private GetDeviceHandlesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDeviceHandlesRequest() {
deviceCount_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDeviceHandlesRequest(
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: {
deviceCount_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_GetDeviceHandlesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_GetDeviceHandlesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.GetDeviceHandlesRequest.class, xla.Xla.GetDeviceHandlesRequest.Builder.class);
}
public static final int DEVICE_COUNT_FIELD_NUMBER = 1;
private long deviceCount_;
/**
* int64 device_count = 1;
*/
public long getDeviceCount() {
return deviceCount_;
}
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 (deviceCount_ != 0L) {
output.writeInt64(1, deviceCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (deviceCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, deviceCount_);
}
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 xla.Xla.GetDeviceHandlesRequest)) {
return super.equals(obj);
}
xla.Xla.GetDeviceHandlesRequest other = (xla.Xla.GetDeviceHandlesRequest) obj;
boolean result = true;
result = result && (getDeviceCount()
== other.getDeviceCount());
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) + DEVICE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDeviceCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.GetDeviceHandlesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.GetDeviceHandlesRequest 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 xla.Xla.GetDeviceHandlesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.GetDeviceHandlesRequest 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 xla.Xla.GetDeviceHandlesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.GetDeviceHandlesRequest 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(xla.Xla.GetDeviceHandlesRequest 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 xla.GetDeviceHandlesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.GetDeviceHandlesRequest)
xla.Xla.GetDeviceHandlesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_GetDeviceHandlesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_GetDeviceHandlesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.GetDeviceHandlesRequest.class, xla.Xla.GetDeviceHandlesRequest.Builder.class);
}
// Construct using xla.Xla.GetDeviceHandlesRequest.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();
deviceCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_GetDeviceHandlesRequest_descriptor;
}
@java.lang.Override
public xla.Xla.GetDeviceHandlesRequest getDefaultInstanceForType() {
return xla.Xla.GetDeviceHandlesRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.GetDeviceHandlesRequest build() {
xla.Xla.GetDeviceHandlesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.GetDeviceHandlesRequest buildPartial() {
xla.Xla.GetDeviceHandlesRequest result = new xla.Xla.GetDeviceHandlesRequest(this);
result.deviceCount_ = deviceCount_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.GetDeviceHandlesRequest) {
return mergeFrom((xla.Xla.GetDeviceHandlesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.GetDeviceHandlesRequest other) {
if (other == xla.Xla.GetDeviceHandlesRequest.getDefaultInstance()) return this;
if (other.getDeviceCount() != 0L) {
setDeviceCount(other.getDeviceCount());
}
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 {
xla.Xla.GetDeviceHandlesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.GetDeviceHandlesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long deviceCount_ ;
/**
* int64 device_count = 1;
*/
public long getDeviceCount() {
return deviceCount_;
}
/**
* int64 device_count = 1;
*/
public Builder setDeviceCount(long value) {
deviceCount_ = value;
onChanged();
return this;
}
/**
* int64 device_count = 1;
*/
public Builder clearDeviceCount() {
deviceCount_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.GetDeviceHandlesRequest)
}
// @@protoc_insertion_point(class_scope:xla.GetDeviceHandlesRequest)
private static final xla.Xla.GetDeviceHandlesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.GetDeviceHandlesRequest();
}
public static xla.Xla.GetDeviceHandlesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDeviceHandlesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDeviceHandlesRequest(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 xla.Xla.GetDeviceHandlesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDeviceHandlesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.GetDeviceHandlesResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
java.util.List
getDeviceHandlesList();
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
xla.XlaData.DeviceHandle getDeviceHandles(int index);
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
int getDeviceHandlesCount();
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
java.util.List extends xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesOrBuilderList();
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
xla.XlaData.DeviceHandleOrBuilder getDeviceHandlesOrBuilder(
int index);
}
/**
* Protobuf type {@code xla.GetDeviceHandlesResponse}
*/
public static final class GetDeviceHandlesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.GetDeviceHandlesResponse)
GetDeviceHandlesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDeviceHandlesResponse.newBuilder() to construct.
private GetDeviceHandlesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDeviceHandlesResponse() {
deviceHandles_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDeviceHandlesResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
deviceHandles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deviceHandles_.add(
input.readMessage(xla.XlaData.DeviceHandle.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
deviceHandles_ = java.util.Collections.unmodifiableList(deviceHandles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_GetDeviceHandlesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_GetDeviceHandlesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.GetDeviceHandlesResponse.class, xla.Xla.GetDeviceHandlesResponse.Builder.class);
}
public static final int DEVICE_HANDLES_FIELD_NUMBER = 1;
private java.util.List deviceHandles_;
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public java.util.List getDeviceHandlesList() {
return deviceHandles_;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public java.util.List extends xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesOrBuilderList() {
return deviceHandles_;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public int getDeviceHandlesCount() {
return deviceHandles_.size();
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandle getDeviceHandles(int index) {
return deviceHandles_.get(index);
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandlesOrBuilder(
int index) {
return deviceHandles_.get(index);
}
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 {
for (int i = 0; i < deviceHandles_.size(); i++) {
output.writeMessage(1, deviceHandles_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < deviceHandles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, deviceHandles_.get(i));
}
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 xla.Xla.GetDeviceHandlesResponse)) {
return super.equals(obj);
}
xla.Xla.GetDeviceHandlesResponse other = (xla.Xla.GetDeviceHandlesResponse) obj;
boolean result = true;
result = result && getDeviceHandlesList()
.equals(other.getDeviceHandlesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDeviceHandlesCount() > 0) {
hash = (37 * hash) + DEVICE_HANDLES_FIELD_NUMBER;
hash = (53 * hash) + getDeviceHandlesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.GetDeviceHandlesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.GetDeviceHandlesResponse 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 xla.Xla.GetDeviceHandlesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.GetDeviceHandlesResponse 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 xla.Xla.GetDeviceHandlesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.GetDeviceHandlesResponse 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(xla.Xla.GetDeviceHandlesResponse 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 xla.GetDeviceHandlesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.GetDeviceHandlesResponse)
xla.Xla.GetDeviceHandlesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_GetDeviceHandlesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_GetDeviceHandlesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.GetDeviceHandlesResponse.class, xla.Xla.GetDeviceHandlesResponse.Builder.class);
}
// Construct using xla.Xla.GetDeviceHandlesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeviceHandlesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (deviceHandlesBuilder_ == null) {
deviceHandles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deviceHandlesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_GetDeviceHandlesResponse_descriptor;
}
@java.lang.Override
public xla.Xla.GetDeviceHandlesResponse getDefaultInstanceForType() {
return xla.Xla.GetDeviceHandlesResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.GetDeviceHandlesResponse build() {
xla.Xla.GetDeviceHandlesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.GetDeviceHandlesResponse buildPartial() {
xla.Xla.GetDeviceHandlesResponse result = new xla.Xla.GetDeviceHandlesResponse(this);
int from_bitField0_ = bitField0_;
if (deviceHandlesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
deviceHandles_ = java.util.Collections.unmodifiableList(deviceHandles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceHandles_ = deviceHandles_;
} else {
result.deviceHandles_ = deviceHandlesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.GetDeviceHandlesResponse) {
return mergeFrom((xla.Xla.GetDeviceHandlesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.GetDeviceHandlesResponse other) {
if (other == xla.Xla.GetDeviceHandlesResponse.getDefaultInstance()) return this;
if (deviceHandlesBuilder_ == null) {
if (!other.deviceHandles_.isEmpty()) {
if (deviceHandles_.isEmpty()) {
deviceHandles_ = other.deviceHandles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceHandlesIsMutable();
deviceHandles_.addAll(other.deviceHandles_);
}
onChanged();
}
} else {
if (!other.deviceHandles_.isEmpty()) {
if (deviceHandlesBuilder_.isEmpty()) {
deviceHandlesBuilder_.dispose();
deviceHandlesBuilder_ = null;
deviceHandles_ = other.deviceHandles_;
bitField0_ = (bitField0_ & ~0x00000001);
deviceHandlesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceHandlesFieldBuilder() : null;
} else {
deviceHandlesBuilder_.addAllMessages(other.deviceHandles_);
}
}
}
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 {
xla.Xla.GetDeviceHandlesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.GetDeviceHandlesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List deviceHandles_ =
java.util.Collections.emptyList();
private void ensureDeviceHandlesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
deviceHandles_ = new java.util.ArrayList(deviceHandles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder> deviceHandlesBuilder_;
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public java.util.List getDeviceHandlesList() {
if (deviceHandlesBuilder_ == null) {
return java.util.Collections.unmodifiableList(deviceHandles_);
} else {
return deviceHandlesBuilder_.getMessageList();
}
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public int getDeviceHandlesCount() {
if (deviceHandlesBuilder_ == null) {
return deviceHandles_.size();
} else {
return deviceHandlesBuilder_.getCount();
}
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandle getDeviceHandles(int index) {
if (deviceHandlesBuilder_ == null) {
return deviceHandles_.get(index);
} else {
return deviceHandlesBuilder_.getMessage(index);
}
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder setDeviceHandles(
int index, xla.XlaData.DeviceHandle value) {
if (deviceHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceHandlesIsMutable();
deviceHandles_.set(index, value);
onChanged();
} else {
deviceHandlesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder setDeviceHandles(
int index, xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.set(index, builderForValue.build());
onChanged();
} else {
deviceHandlesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder addDeviceHandles(xla.XlaData.DeviceHandle value) {
if (deviceHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceHandlesIsMutable();
deviceHandles_.add(value);
onChanged();
} else {
deviceHandlesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder addDeviceHandles(
int index, xla.XlaData.DeviceHandle value) {
if (deviceHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceHandlesIsMutable();
deviceHandles_.add(index, value);
onChanged();
} else {
deviceHandlesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder addDeviceHandles(
xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.add(builderForValue.build());
onChanged();
} else {
deviceHandlesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder addDeviceHandles(
int index, xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.add(index, builderForValue.build());
onChanged();
} else {
deviceHandlesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder addAllDeviceHandles(
java.lang.Iterable extends xla.XlaData.DeviceHandle> values) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceHandles_);
onChanged();
} else {
deviceHandlesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder clearDeviceHandles() {
if (deviceHandlesBuilder_ == null) {
deviceHandles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
deviceHandlesBuilder_.clear();
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public Builder removeDeviceHandles(int index) {
if (deviceHandlesBuilder_ == null) {
ensureDeviceHandlesIsMutable();
deviceHandles_.remove(index);
onChanged();
} else {
deviceHandlesBuilder_.remove(index);
}
return this;
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandle.Builder getDeviceHandlesBuilder(
int index) {
return getDeviceHandlesFieldBuilder().getBuilder(index);
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandlesOrBuilder(
int index) {
if (deviceHandlesBuilder_ == null) {
return deviceHandles_.get(index); } else {
return deviceHandlesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public java.util.List extends xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesOrBuilderList() {
if (deviceHandlesBuilder_ != null) {
return deviceHandlesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deviceHandles_);
}
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandle.Builder addDeviceHandlesBuilder() {
return getDeviceHandlesFieldBuilder().addBuilder(
xla.XlaData.DeviceHandle.getDefaultInstance());
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public xla.XlaData.DeviceHandle.Builder addDeviceHandlesBuilder(
int index) {
return getDeviceHandlesFieldBuilder().addBuilder(
index, xla.XlaData.DeviceHandle.getDefaultInstance());
}
/**
* repeated .xla.DeviceHandle device_handles = 1;
*/
public java.util.List
getDeviceHandlesBuilderList() {
return getDeviceHandlesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandlesFieldBuilder() {
if (deviceHandlesBuilder_ == null) {
deviceHandlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>(
deviceHandles_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
deviceHandles_ = null;
}
return deviceHandlesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.GetDeviceHandlesResponse)
}
// @@protoc_insertion_point(class_scope:xla.GetDeviceHandlesResponse)
private static final xla.Xla.GetDeviceHandlesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.GetDeviceHandlesResponse();
}
public static xla.Xla.GetDeviceHandlesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDeviceHandlesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDeviceHandlesResponse(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 xla.Xla.GetDeviceHandlesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferToClientRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferToClientRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle data = 1;
*/
boolean hasData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandle getData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder();
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
boolean hasShapeWithLayout();
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
xla.XlaData.Shape getShapeWithLayout();
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
xla.XlaData.ShapeOrBuilder getShapeWithLayoutOrBuilder();
}
/**
* Protobuf type {@code xla.TransferToClientRequest}
*/
public static final class TransferToClientRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferToClientRequest)
TransferToClientRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferToClientRequest.newBuilder() to construct.
private TransferToClientRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferToClientRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferToClientRequest(
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: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.XlaData.Shape.Builder subBuilder = null;
if (shapeWithLayout_ != null) {
subBuilder = shapeWithLayout_.toBuilder();
}
shapeWithLayout_ = input.readMessage(xla.XlaData.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shapeWithLayout_);
shapeWithLayout_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferToClientRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToClientRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToClientRequest.class, xla.Xla.TransferToClientRequest.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private xla.XlaData.GlobalDataHandle data_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
return getData();
}
public static final int SHAPE_WITH_LAYOUT_FIELD_NUMBER = 2;
private xla.XlaData.Shape shapeWithLayout_;
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public boolean hasShapeWithLayout() {
return shapeWithLayout_ != null;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public xla.XlaData.Shape getShapeWithLayout() {
return shapeWithLayout_ == null ? xla.XlaData.Shape.getDefaultInstance() : shapeWithLayout_;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public xla.XlaData.ShapeOrBuilder getShapeWithLayoutOrBuilder() {
return getShapeWithLayout();
}
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 (data_ != null) {
output.writeMessage(1, getData());
}
if (shapeWithLayout_ != null) {
output.writeMessage(2, getShapeWithLayout());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getData());
}
if (shapeWithLayout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getShapeWithLayout());
}
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 xla.Xla.TransferToClientRequest)) {
return super.equals(obj);
}
xla.Xla.TransferToClientRequest other = (xla.Xla.TransferToClientRequest) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && (hasShapeWithLayout() == other.hasShapeWithLayout());
if (hasShapeWithLayout()) {
result = result && getShapeWithLayout()
.equals(other.getShapeWithLayout());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasShapeWithLayout()) {
hash = (37 * hash) + SHAPE_WITH_LAYOUT_FIELD_NUMBER;
hash = (53 * hash) + getShapeWithLayout().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferToClientRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToClientRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToClientRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToClientRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToClientRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToClientRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToClientRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToClientRequest 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 xla.Xla.TransferToClientRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferToClientRequest 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 xla.Xla.TransferToClientRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToClientRequest 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(xla.Xla.TransferToClientRequest 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 xla.TransferToClientRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferToClientRequest)
xla.Xla.TransferToClientRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferToClientRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToClientRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToClientRequest.class, xla.Xla.TransferToClientRequest.Builder.class);
}
// Construct using xla.Xla.TransferToClientRequest.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 (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayout_ = null;
} else {
shapeWithLayout_ = null;
shapeWithLayoutBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferToClientRequest_descriptor;
}
@java.lang.Override
public xla.Xla.TransferToClientRequest getDefaultInstanceForType() {
return xla.Xla.TransferToClientRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferToClientRequest build() {
xla.Xla.TransferToClientRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferToClientRequest buildPartial() {
xla.Xla.TransferToClientRequest result = new xla.Xla.TransferToClientRequest(this);
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (shapeWithLayoutBuilder_ == null) {
result.shapeWithLayout_ = shapeWithLayout_;
} else {
result.shapeWithLayout_ = shapeWithLayoutBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferToClientRequest) {
return mergeFrom((xla.Xla.TransferToClientRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferToClientRequest other) {
if (other == xla.Xla.TransferToClientRequest.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasShapeWithLayout()) {
mergeShapeWithLayout(other.getShapeWithLayout());
}
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 {
xla.Xla.TransferToClientRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferToClientRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle data_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> dataBuilder_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
if (dataBuilder_ == null) {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder setData(xla.XlaData.GlobalDataHandle value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder setData(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder mergeData(xla.XlaData.GlobalDataHandle value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
xla.XlaData.GlobalDataHandle.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
}
/**
* .xla.GlobalDataHandle data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private xla.XlaData.Shape shapeWithLayout_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder> shapeWithLayoutBuilder_;
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public boolean hasShapeWithLayout() {
return shapeWithLayoutBuilder_ != null || shapeWithLayout_ != null;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public xla.XlaData.Shape getShapeWithLayout() {
if (shapeWithLayoutBuilder_ == null) {
return shapeWithLayout_ == null ? xla.XlaData.Shape.getDefaultInstance() : shapeWithLayout_;
} else {
return shapeWithLayoutBuilder_.getMessage();
}
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public Builder setShapeWithLayout(xla.XlaData.Shape value) {
if (shapeWithLayoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shapeWithLayout_ = value;
onChanged();
} else {
shapeWithLayoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public Builder setShapeWithLayout(
xla.XlaData.Shape.Builder builderForValue) {
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayout_ = builderForValue.build();
onChanged();
} else {
shapeWithLayoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public Builder mergeShapeWithLayout(xla.XlaData.Shape value) {
if (shapeWithLayoutBuilder_ == null) {
if (shapeWithLayout_ != null) {
shapeWithLayout_ =
xla.XlaData.Shape.newBuilder(shapeWithLayout_).mergeFrom(value).buildPartial();
} else {
shapeWithLayout_ = value;
}
onChanged();
} else {
shapeWithLayoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public Builder clearShapeWithLayout() {
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayout_ = null;
onChanged();
} else {
shapeWithLayout_ = null;
shapeWithLayoutBuilder_ = null;
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public xla.XlaData.Shape.Builder getShapeWithLayoutBuilder() {
onChanged();
return getShapeWithLayoutFieldBuilder().getBuilder();
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
public xla.XlaData.ShapeOrBuilder getShapeWithLayoutOrBuilder() {
if (shapeWithLayoutBuilder_ != null) {
return shapeWithLayoutBuilder_.getMessageOrBuilder();
} else {
return shapeWithLayout_ == null ?
xla.XlaData.Shape.getDefaultInstance() : shapeWithLayout_;
}
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>
getShapeWithLayoutFieldBuilder() {
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>(
getShapeWithLayout(),
getParentForChildren(),
isClean());
shapeWithLayout_ = null;
}
return shapeWithLayoutBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferToClientRequest)
}
// @@protoc_insertion_point(class_scope:xla.TransferToClientRequest)
private static final xla.Xla.TransferToClientRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferToClientRequest();
}
public static xla.Xla.TransferToClientRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferToClientRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferToClientRequest(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 xla.Xla.TransferToClientRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferToClientResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferToClientResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.LiteralProto literal = 1;
*/
boolean hasLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProto getLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder();
}
/**
* Protobuf type {@code xla.TransferToClientResponse}
*/
public static final class TransferToClientResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferToClientResponse)
TransferToClientResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferToClientResponse.newBuilder() to construct.
private TransferToClientResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferToClientResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferToClientResponse(
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: {
xla.XlaData.LiteralProto.Builder subBuilder = null;
if (literal_ != null) {
subBuilder = literal_.toBuilder();
}
literal_ = input.readMessage(xla.XlaData.LiteralProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(literal_);
literal_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferToClientResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToClientResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToClientResponse.class, xla.Xla.TransferToClientResponse.Builder.class);
}
public static final int LITERAL_FIELD_NUMBER = 1;
private xla.XlaData.LiteralProto literal_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
return getLiteral();
}
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 (literal_ != null) {
output.writeMessage(1, getLiteral());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (literal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLiteral());
}
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 xla.Xla.TransferToClientResponse)) {
return super.equals(obj);
}
xla.Xla.TransferToClientResponse other = (xla.Xla.TransferToClientResponse) obj;
boolean result = true;
result = result && (hasLiteral() == other.hasLiteral());
if (hasLiteral()) {
result = result && getLiteral()
.equals(other.getLiteral());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLiteral()) {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferToClientResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToClientResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToClientResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToClientResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToClientResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToClientResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToClientResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToClientResponse 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 xla.Xla.TransferToClientResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferToClientResponse 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 xla.Xla.TransferToClientResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToClientResponse 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(xla.Xla.TransferToClientResponse 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 xla.TransferToClientResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferToClientResponse)
xla.Xla.TransferToClientResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferToClientResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToClientResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToClientResponse.class, xla.Xla.TransferToClientResponse.Builder.class);
}
// Construct using xla.Xla.TransferToClientResponse.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 (literalBuilder_ == null) {
literal_ = null;
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferToClientResponse_descriptor;
}
@java.lang.Override
public xla.Xla.TransferToClientResponse getDefaultInstanceForType() {
return xla.Xla.TransferToClientResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferToClientResponse build() {
xla.Xla.TransferToClientResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferToClientResponse buildPartial() {
xla.Xla.TransferToClientResponse result = new xla.Xla.TransferToClientResponse(this);
if (literalBuilder_ == null) {
result.literal_ = literal_;
} else {
result.literal_ = literalBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferToClientResponse) {
return mergeFrom((xla.Xla.TransferToClientResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferToClientResponse other) {
if (other == xla.Xla.TransferToClientResponse.getDefaultInstance()) return this;
if (other.hasLiteral()) {
mergeLiteral(other.getLiteral());
}
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 {
xla.Xla.TransferToClientResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferToClientResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.LiteralProto literal_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> literalBuilder_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literalBuilder_ != null || literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
if (literalBuilder_ == null) {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
} else {
return literalBuilder_.getMessage();
}
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literal_ = value;
onChanged();
} else {
literalBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(
xla.XlaData.LiteralProto.Builder builderForValue) {
if (literalBuilder_ == null) {
literal_ = builderForValue.build();
onChanged();
} else {
literalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder mergeLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (literal_ != null) {
literal_ =
xla.XlaData.LiteralProto.newBuilder(literal_).mergeFrom(value).buildPartial();
} else {
literal_ = value;
}
onChanged();
} else {
literalBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder clearLiteral() {
if (literalBuilder_ == null) {
literal_ = null;
onChanged();
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto.Builder getLiteralBuilder() {
onChanged();
return getLiteralFieldBuilder().getBuilder();
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
if (literalBuilder_ != null) {
return literalBuilder_.getMessageOrBuilder();
} else {
return literal_ == null ?
xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
}
/**
* .xla.LiteralProto literal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>
getLiteralFieldBuilder() {
if (literalBuilder_ == null) {
literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>(
getLiteral(),
getParentForChildren(),
isClean());
literal_ = null;
}
return literalBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferToClientResponse)
}
// @@protoc_insertion_point(class_scope:xla.TransferToClientResponse)
private static final xla.Xla.TransferToClientResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferToClientResponse();
}
public static xla.Xla.TransferToClientResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferToClientResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferToClientResponse(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 xla.Xla.TransferToClientResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferToServerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferToServerRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.LiteralProto literal = 1;
*/
boolean hasLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProto getLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder();
/**
* .xla.DeviceHandle device_handle = 2;
*/
boolean hasDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 2;
*/
xla.XlaData.DeviceHandle getDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 2;
*/
xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder();
}
/**
* Protobuf type {@code xla.TransferToServerRequest}
*/
public static final class TransferToServerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferToServerRequest)
TransferToServerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferToServerRequest.newBuilder() to construct.
private TransferToServerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferToServerRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferToServerRequest(
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: {
xla.XlaData.LiteralProto.Builder subBuilder = null;
if (literal_ != null) {
subBuilder = literal_.toBuilder();
}
literal_ = input.readMessage(xla.XlaData.LiteralProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(literal_);
literal_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.XlaData.DeviceHandle.Builder subBuilder = null;
if (deviceHandle_ != null) {
subBuilder = deviceHandle_.toBuilder();
}
deviceHandle_ = input.readMessage(xla.XlaData.DeviceHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceHandle_);
deviceHandle_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferToServerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToServerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToServerRequest.class, xla.Xla.TransferToServerRequest.Builder.class);
}
public static final int LITERAL_FIELD_NUMBER = 1;
private xla.XlaData.LiteralProto literal_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
return getLiteral();
}
public static final int DEVICE_HANDLE_FIELD_NUMBER = 2;
private xla.XlaData.DeviceHandle deviceHandle_;
/**
* .xla.DeviceHandle device_handle = 2;
*/
public boolean hasDeviceHandle() {
return deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
return getDeviceHandle();
}
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 (literal_ != null) {
output.writeMessage(1, getLiteral());
}
if (deviceHandle_ != null) {
output.writeMessage(2, getDeviceHandle());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (literal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLiteral());
}
if (deviceHandle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDeviceHandle());
}
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 xla.Xla.TransferToServerRequest)) {
return super.equals(obj);
}
xla.Xla.TransferToServerRequest other = (xla.Xla.TransferToServerRequest) obj;
boolean result = true;
result = result && (hasLiteral() == other.hasLiteral());
if (hasLiteral()) {
result = result && getLiteral()
.equals(other.getLiteral());
}
result = result && (hasDeviceHandle() == other.hasDeviceHandle());
if (hasDeviceHandle()) {
result = result && getDeviceHandle()
.equals(other.getDeviceHandle());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLiteral()) {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
}
if (hasDeviceHandle()) {
hash = (37 * hash) + DEVICE_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceHandle().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferToServerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToServerRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToServerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToServerRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToServerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToServerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToServerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToServerRequest 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 xla.Xla.TransferToServerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferToServerRequest 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 xla.Xla.TransferToServerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToServerRequest 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(xla.Xla.TransferToServerRequest 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 xla.TransferToServerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferToServerRequest)
xla.Xla.TransferToServerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferToServerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToServerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToServerRequest.class, xla.Xla.TransferToServerRequest.Builder.class);
}
// Construct using xla.Xla.TransferToServerRequest.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 (literalBuilder_ == null) {
literal_ = null;
} else {
literal_ = null;
literalBuilder_ = null;
}
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferToServerRequest_descriptor;
}
@java.lang.Override
public xla.Xla.TransferToServerRequest getDefaultInstanceForType() {
return xla.Xla.TransferToServerRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferToServerRequest build() {
xla.Xla.TransferToServerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferToServerRequest buildPartial() {
xla.Xla.TransferToServerRequest result = new xla.Xla.TransferToServerRequest(this);
if (literalBuilder_ == null) {
result.literal_ = literal_;
} else {
result.literal_ = literalBuilder_.build();
}
if (deviceHandleBuilder_ == null) {
result.deviceHandle_ = deviceHandle_;
} else {
result.deviceHandle_ = deviceHandleBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferToServerRequest) {
return mergeFrom((xla.Xla.TransferToServerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferToServerRequest other) {
if (other == xla.Xla.TransferToServerRequest.getDefaultInstance()) return this;
if (other.hasLiteral()) {
mergeLiteral(other.getLiteral());
}
if (other.hasDeviceHandle()) {
mergeDeviceHandle(other.getDeviceHandle());
}
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 {
xla.Xla.TransferToServerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferToServerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.LiteralProto literal_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> literalBuilder_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literalBuilder_ != null || literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
if (literalBuilder_ == null) {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
} else {
return literalBuilder_.getMessage();
}
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literal_ = value;
onChanged();
} else {
literalBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(
xla.XlaData.LiteralProto.Builder builderForValue) {
if (literalBuilder_ == null) {
literal_ = builderForValue.build();
onChanged();
} else {
literalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder mergeLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (literal_ != null) {
literal_ =
xla.XlaData.LiteralProto.newBuilder(literal_).mergeFrom(value).buildPartial();
} else {
literal_ = value;
}
onChanged();
} else {
literalBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder clearLiteral() {
if (literalBuilder_ == null) {
literal_ = null;
onChanged();
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto.Builder getLiteralBuilder() {
onChanged();
return getLiteralFieldBuilder().getBuilder();
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
if (literalBuilder_ != null) {
return literalBuilder_.getMessageOrBuilder();
} else {
return literal_ == null ?
xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
}
/**
* .xla.LiteralProto literal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>
getLiteralFieldBuilder() {
if (literalBuilder_ == null) {
literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>(
getLiteral(),
getParentForChildren(),
isClean());
literal_ = null;
}
return literalBuilder_;
}
private xla.XlaData.DeviceHandle deviceHandle_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder> deviceHandleBuilder_;
/**
* .xla.DeviceHandle device_handle = 2;
*/
public boolean hasDeviceHandle() {
return deviceHandleBuilder_ != null || deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
if (deviceHandleBuilder_ == null) {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
} else {
return deviceHandleBuilder_.getMessage();
}
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public Builder setDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceHandle_ = value;
onChanged();
} else {
deviceHandleBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public Builder setDeviceHandle(
xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = builderForValue.build();
onChanged();
} else {
deviceHandleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public Builder mergeDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (deviceHandle_ != null) {
deviceHandle_ =
xla.XlaData.DeviceHandle.newBuilder(deviceHandle_).mergeFrom(value).buildPartial();
} else {
deviceHandle_ = value;
}
onChanged();
} else {
deviceHandleBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public Builder clearDeviceHandle() {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
onChanged();
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public xla.XlaData.DeviceHandle.Builder getDeviceHandleBuilder() {
onChanged();
return getDeviceHandleFieldBuilder().getBuilder();
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
if (deviceHandleBuilder_ != null) {
return deviceHandleBuilder_.getMessageOrBuilder();
} else {
return deviceHandle_ == null ?
xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
}
/**
* .xla.DeviceHandle device_handle = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandleFieldBuilder() {
if (deviceHandleBuilder_ == null) {
deviceHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>(
getDeviceHandle(),
getParentForChildren(),
isClean());
deviceHandle_ = null;
}
return deviceHandleBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferToServerRequest)
}
// @@protoc_insertion_point(class_scope:xla.TransferToServerRequest)
private static final xla.Xla.TransferToServerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferToServerRequest();
}
public static xla.Xla.TransferToServerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferToServerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferToServerRequest(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 xla.Xla.TransferToServerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferToServerResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferToServerResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle data = 1;
*/
boolean hasData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandle getData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder();
}
/**
* Protobuf type {@code xla.TransferToServerResponse}
*/
public static final class TransferToServerResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferToServerResponse)
TransferToServerResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferToServerResponse.newBuilder() to construct.
private TransferToServerResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferToServerResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferToServerResponse(
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: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferToServerResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToServerResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToServerResponse.class, xla.Xla.TransferToServerResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private xla.XlaData.GlobalDataHandle data_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
return getData();
}
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 (data_ != null) {
output.writeMessage(1, getData());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getData());
}
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 xla.Xla.TransferToServerResponse)) {
return super.equals(obj);
}
xla.Xla.TransferToServerResponse other = (xla.Xla.TransferToServerResponse) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferToServerResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToServerResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToServerResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToServerResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToServerResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToServerResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToServerResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToServerResponse 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 xla.Xla.TransferToServerResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferToServerResponse 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 xla.Xla.TransferToServerResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToServerResponse 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(xla.Xla.TransferToServerResponse 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 xla.TransferToServerResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferToServerResponse)
xla.Xla.TransferToServerResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferToServerResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToServerResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToServerResponse.class, xla.Xla.TransferToServerResponse.Builder.class);
}
// Construct using xla.Xla.TransferToServerResponse.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 (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferToServerResponse_descriptor;
}
@java.lang.Override
public xla.Xla.TransferToServerResponse getDefaultInstanceForType() {
return xla.Xla.TransferToServerResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferToServerResponse build() {
xla.Xla.TransferToServerResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferToServerResponse buildPartial() {
xla.Xla.TransferToServerResponse result = new xla.Xla.TransferToServerResponse(this);
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferToServerResponse) {
return mergeFrom((xla.Xla.TransferToServerResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferToServerResponse other) {
if (other == xla.Xla.TransferToServerResponse.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
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 {
xla.Xla.TransferToServerResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferToServerResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle data_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> dataBuilder_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
if (dataBuilder_ == null) {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder setData(xla.XlaData.GlobalDataHandle value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder setData(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder mergeData(xla.XlaData.GlobalDataHandle value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
xla.XlaData.GlobalDataHandle.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
}
/**
* .xla.GlobalDataHandle data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferToServerResponse)
}
// @@protoc_insertion_point(class_scope:xla.TransferToServerResponse)
private static final xla.Xla.TransferToServerResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferToServerResponse();
}
public static xla.Xla.TransferToServerResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferToServerResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferToServerResponse(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 xla.Xla.TransferToServerResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferToInfeedRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferToInfeedRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.LiteralProto literal = 1;
*/
boolean hasLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProto getLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder();
/**
* int64 replica_id = 2;
*/
long getReplicaId();
/**
* .xla.DeviceHandle device_handle = 3;
*/
boolean hasDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 3;
*/
xla.XlaData.DeviceHandle getDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 3;
*/
xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder();
}
/**
* Protobuf type {@code xla.TransferToInfeedRequest}
*/
public static final class TransferToInfeedRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferToInfeedRequest)
TransferToInfeedRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferToInfeedRequest.newBuilder() to construct.
private TransferToInfeedRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferToInfeedRequest() {
replicaId_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferToInfeedRequest(
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: {
xla.XlaData.LiteralProto.Builder subBuilder = null;
if (literal_ != null) {
subBuilder = literal_.toBuilder();
}
literal_ = input.readMessage(xla.XlaData.LiteralProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(literal_);
literal_ = subBuilder.buildPartial();
}
break;
}
case 16: {
replicaId_ = input.readInt64();
break;
}
case 26: {
xla.XlaData.DeviceHandle.Builder subBuilder = null;
if (deviceHandle_ != null) {
subBuilder = deviceHandle_.toBuilder();
}
deviceHandle_ = input.readMessage(xla.XlaData.DeviceHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceHandle_);
deviceHandle_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferToInfeedRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToInfeedRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToInfeedRequest.class, xla.Xla.TransferToInfeedRequest.Builder.class);
}
public static final int LITERAL_FIELD_NUMBER = 1;
private xla.XlaData.LiteralProto literal_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
return getLiteral();
}
public static final int REPLICA_ID_FIELD_NUMBER = 2;
private long replicaId_;
/**
* int64 replica_id = 2;
*/
public long getReplicaId() {
return replicaId_;
}
public static final int DEVICE_HANDLE_FIELD_NUMBER = 3;
private xla.XlaData.DeviceHandle deviceHandle_;
/**
* .xla.DeviceHandle device_handle = 3;
*/
public boolean hasDeviceHandle() {
return deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
return getDeviceHandle();
}
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 (literal_ != null) {
output.writeMessage(1, getLiteral());
}
if (replicaId_ != 0L) {
output.writeInt64(2, replicaId_);
}
if (deviceHandle_ != null) {
output.writeMessage(3, getDeviceHandle());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (literal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLiteral());
}
if (replicaId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, replicaId_);
}
if (deviceHandle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDeviceHandle());
}
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 xla.Xla.TransferToInfeedRequest)) {
return super.equals(obj);
}
xla.Xla.TransferToInfeedRequest other = (xla.Xla.TransferToInfeedRequest) obj;
boolean result = true;
result = result && (hasLiteral() == other.hasLiteral());
if (hasLiteral()) {
result = result && getLiteral()
.equals(other.getLiteral());
}
result = result && (getReplicaId()
== other.getReplicaId());
result = result && (hasDeviceHandle() == other.hasDeviceHandle());
if (hasDeviceHandle()) {
result = result && getDeviceHandle()
.equals(other.getDeviceHandle());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLiteral()) {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
}
hash = (37 * hash) + REPLICA_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReplicaId());
if (hasDeviceHandle()) {
hash = (37 * hash) + DEVICE_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceHandle().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferToInfeedRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToInfeedRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToInfeedRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToInfeedRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToInfeedRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToInfeedRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToInfeedRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToInfeedRequest 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 xla.Xla.TransferToInfeedRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferToInfeedRequest 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 xla.Xla.TransferToInfeedRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToInfeedRequest 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(xla.Xla.TransferToInfeedRequest 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 xla.TransferToInfeedRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferToInfeedRequest)
xla.Xla.TransferToInfeedRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferToInfeedRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToInfeedRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToInfeedRequest.class, xla.Xla.TransferToInfeedRequest.Builder.class);
}
// Construct using xla.Xla.TransferToInfeedRequest.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 (literalBuilder_ == null) {
literal_ = null;
} else {
literal_ = null;
literalBuilder_ = null;
}
replicaId_ = 0L;
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferToInfeedRequest_descriptor;
}
@java.lang.Override
public xla.Xla.TransferToInfeedRequest getDefaultInstanceForType() {
return xla.Xla.TransferToInfeedRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferToInfeedRequest build() {
xla.Xla.TransferToInfeedRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferToInfeedRequest buildPartial() {
xla.Xla.TransferToInfeedRequest result = new xla.Xla.TransferToInfeedRequest(this);
if (literalBuilder_ == null) {
result.literal_ = literal_;
} else {
result.literal_ = literalBuilder_.build();
}
result.replicaId_ = replicaId_;
if (deviceHandleBuilder_ == null) {
result.deviceHandle_ = deviceHandle_;
} else {
result.deviceHandle_ = deviceHandleBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferToInfeedRequest) {
return mergeFrom((xla.Xla.TransferToInfeedRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferToInfeedRequest other) {
if (other == xla.Xla.TransferToInfeedRequest.getDefaultInstance()) return this;
if (other.hasLiteral()) {
mergeLiteral(other.getLiteral());
}
if (other.getReplicaId() != 0L) {
setReplicaId(other.getReplicaId());
}
if (other.hasDeviceHandle()) {
mergeDeviceHandle(other.getDeviceHandle());
}
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 {
xla.Xla.TransferToInfeedRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferToInfeedRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.LiteralProto literal_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> literalBuilder_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literalBuilder_ != null || literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
if (literalBuilder_ == null) {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
} else {
return literalBuilder_.getMessage();
}
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literal_ = value;
onChanged();
} else {
literalBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(
xla.XlaData.LiteralProto.Builder builderForValue) {
if (literalBuilder_ == null) {
literal_ = builderForValue.build();
onChanged();
} else {
literalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder mergeLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (literal_ != null) {
literal_ =
xla.XlaData.LiteralProto.newBuilder(literal_).mergeFrom(value).buildPartial();
} else {
literal_ = value;
}
onChanged();
} else {
literalBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder clearLiteral() {
if (literalBuilder_ == null) {
literal_ = null;
onChanged();
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto.Builder getLiteralBuilder() {
onChanged();
return getLiteralFieldBuilder().getBuilder();
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
if (literalBuilder_ != null) {
return literalBuilder_.getMessageOrBuilder();
} else {
return literal_ == null ?
xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
}
/**
* .xla.LiteralProto literal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>
getLiteralFieldBuilder() {
if (literalBuilder_ == null) {
literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>(
getLiteral(),
getParentForChildren(),
isClean());
literal_ = null;
}
return literalBuilder_;
}
private long replicaId_ ;
/**
* int64 replica_id = 2;
*/
public long getReplicaId() {
return replicaId_;
}
/**
* int64 replica_id = 2;
*/
public Builder setReplicaId(long value) {
replicaId_ = value;
onChanged();
return this;
}
/**
* int64 replica_id = 2;
*/
public Builder clearReplicaId() {
replicaId_ = 0L;
onChanged();
return this;
}
private xla.XlaData.DeviceHandle deviceHandle_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder> deviceHandleBuilder_;
/**
* .xla.DeviceHandle device_handle = 3;
*/
public boolean hasDeviceHandle() {
return deviceHandleBuilder_ != null || deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
if (deviceHandleBuilder_ == null) {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
} else {
return deviceHandleBuilder_.getMessage();
}
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder setDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceHandle_ = value;
onChanged();
} else {
deviceHandleBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder setDeviceHandle(
xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = builderForValue.build();
onChanged();
} else {
deviceHandleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder mergeDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (deviceHandle_ != null) {
deviceHandle_ =
xla.XlaData.DeviceHandle.newBuilder(deviceHandle_).mergeFrom(value).buildPartial();
} else {
deviceHandle_ = value;
}
onChanged();
} else {
deviceHandleBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder clearDeviceHandle() {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
onChanged();
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandle.Builder getDeviceHandleBuilder() {
onChanged();
return getDeviceHandleFieldBuilder().getBuilder();
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
if (deviceHandleBuilder_ != null) {
return deviceHandleBuilder_.getMessageOrBuilder();
} else {
return deviceHandle_ == null ?
xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandleFieldBuilder() {
if (deviceHandleBuilder_ == null) {
deviceHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>(
getDeviceHandle(),
getParentForChildren(),
isClean());
deviceHandle_ = null;
}
return deviceHandleBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferToInfeedRequest)
}
// @@protoc_insertion_point(class_scope:xla.TransferToInfeedRequest)
private static final xla.Xla.TransferToInfeedRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferToInfeedRequest();
}
public static xla.Xla.TransferToInfeedRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferToInfeedRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferToInfeedRequest(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 xla.Xla.TransferToInfeedRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferToInfeedResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferToInfeedResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code xla.TransferToInfeedResponse}
*/
public static final class TransferToInfeedResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferToInfeedResponse)
TransferToInfeedResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferToInfeedResponse.newBuilder() to construct.
private TransferToInfeedResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferToInfeedResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferToInfeedResponse(
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;
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferToInfeedResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToInfeedResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToInfeedResponse.class, xla.Xla.TransferToInfeedResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 xla.Xla.TransferToInfeedResponse)) {
return super.equals(obj);
}
xla.Xla.TransferToInfeedResponse other = (xla.Xla.TransferToInfeedResponse) obj;
boolean result = true;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferToInfeedResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToInfeedResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToInfeedResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToInfeedResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToInfeedResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferToInfeedResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferToInfeedResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToInfeedResponse 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 xla.Xla.TransferToInfeedResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferToInfeedResponse 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 xla.Xla.TransferToInfeedResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferToInfeedResponse 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(xla.Xla.TransferToInfeedResponse 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 xla.TransferToInfeedResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferToInfeedResponse)
xla.Xla.TransferToInfeedResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferToInfeedResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferToInfeedResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferToInfeedResponse.class, xla.Xla.TransferToInfeedResponse.Builder.class);
}
// Construct using xla.Xla.TransferToInfeedResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferToInfeedResponse_descriptor;
}
@java.lang.Override
public xla.Xla.TransferToInfeedResponse getDefaultInstanceForType() {
return xla.Xla.TransferToInfeedResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferToInfeedResponse build() {
xla.Xla.TransferToInfeedResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferToInfeedResponse buildPartial() {
xla.Xla.TransferToInfeedResponse result = new xla.Xla.TransferToInfeedResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferToInfeedResponse) {
return mergeFrom((xla.Xla.TransferToInfeedResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferToInfeedResponse other) {
if (other == xla.Xla.TransferToInfeedResponse.getDefaultInstance()) return this;
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 {
xla.Xla.TransferToInfeedResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferToInfeedResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferToInfeedResponse)
}
// @@protoc_insertion_point(class_scope:xla.TransferToInfeedResponse)
private static final xla.Xla.TransferToInfeedResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferToInfeedResponse();
}
public static xla.Xla.TransferToInfeedResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferToInfeedResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferToInfeedResponse(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 xla.Xla.TransferToInfeedResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferFromOutfeedRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferFromOutfeedRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
boolean hasShapeWithLayout();
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
xla.XlaData.Shape getShapeWithLayout();
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
xla.XlaData.ShapeOrBuilder getShapeWithLayoutOrBuilder();
/**
* int64 replica_id = 2;
*/
long getReplicaId();
/**
* .xla.DeviceHandle device_handle = 3;
*/
boolean hasDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 3;
*/
xla.XlaData.DeviceHandle getDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 3;
*/
xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder();
}
/**
* Protobuf type {@code xla.TransferFromOutfeedRequest}
*/
public static final class TransferFromOutfeedRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferFromOutfeedRequest)
TransferFromOutfeedRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferFromOutfeedRequest.newBuilder() to construct.
private TransferFromOutfeedRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferFromOutfeedRequest() {
replicaId_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferFromOutfeedRequest(
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: {
xla.XlaData.Shape.Builder subBuilder = null;
if (shapeWithLayout_ != null) {
subBuilder = shapeWithLayout_.toBuilder();
}
shapeWithLayout_ = input.readMessage(xla.XlaData.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shapeWithLayout_);
shapeWithLayout_ = subBuilder.buildPartial();
}
break;
}
case 16: {
replicaId_ = input.readInt64();
break;
}
case 26: {
xla.XlaData.DeviceHandle.Builder subBuilder = null;
if (deviceHandle_ != null) {
subBuilder = deviceHandle_.toBuilder();
}
deviceHandle_ = input.readMessage(xla.XlaData.DeviceHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceHandle_);
deviceHandle_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferFromOutfeedRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferFromOutfeedRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferFromOutfeedRequest.class, xla.Xla.TransferFromOutfeedRequest.Builder.class);
}
public static final int SHAPE_WITH_LAYOUT_FIELD_NUMBER = 1;
private xla.XlaData.Shape shapeWithLayout_;
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public boolean hasShapeWithLayout() {
return shapeWithLayout_ != null;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public xla.XlaData.Shape getShapeWithLayout() {
return shapeWithLayout_ == null ? xla.XlaData.Shape.getDefaultInstance() : shapeWithLayout_;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public xla.XlaData.ShapeOrBuilder getShapeWithLayoutOrBuilder() {
return getShapeWithLayout();
}
public static final int REPLICA_ID_FIELD_NUMBER = 2;
private long replicaId_;
/**
* int64 replica_id = 2;
*/
public long getReplicaId() {
return replicaId_;
}
public static final int DEVICE_HANDLE_FIELD_NUMBER = 3;
private xla.XlaData.DeviceHandle deviceHandle_;
/**
* .xla.DeviceHandle device_handle = 3;
*/
public boolean hasDeviceHandle() {
return deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
return getDeviceHandle();
}
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 (shapeWithLayout_ != null) {
output.writeMessage(1, getShapeWithLayout());
}
if (replicaId_ != 0L) {
output.writeInt64(2, replicaId_);
}
if (deviceHandle_ != null) {
output.writeMessage(3, getDeviceHandle());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (shapeWithLayout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getShapeWithLayout());
}
if (replicaId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, replicaId_);
}
if (deviceHandle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDeviceHandle());
}
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 xla.Xla.TransferFromOutfeedRequest)) {
return super.equals(obj);
}
xla.Xla.TransferFromOutfeedRequest other = (xla.Xla.TransferFromOutfeedRequest) obj;
boolean result = true;
result = result && (hasShapeWithLayout() == other.hasShapeWithLayout());
if (hasShapeWithLayout()) {
result = result && getShapeWithLayout()
.equals(other.getShapeWithLayout());
}
result = result && (getReplicaId()
== other.getReplicaId());
result = result && (hasDeviceHandle() == other.hasDeviceHandle());
if (hasDeviceHandle()) {
result = result && getDeviceHandle()
.equals(other.getDeviceHandle());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasShapeWithLayout()) {
hash = (37 * hash) + SHAPE_WITH_LAYOUT_FIELD_NUMBER;
hash = (53 * hash) + getShapeWithLayout().hashCode();
}
hash = (37 * hash) + REPLICA_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReplicaId());
if (hasDeviceHandle()) {
hash = (37 * hash) + DEVICE_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceHandle().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferFromOutfeedRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferFromOutfeedRequest 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 xla.Xla.TransferFromOutfeedRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferFromOutfeedRequest 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 xla.Xla.TransferFromOutfeedRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferFromOutfeedRequest 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(xla.Xla.TransferFromOutfeedRequest 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 xla.TransferFromOutfeedRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferFromOutfeedRequest)
xla.Xla.TransferFromOutfeedRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferFromOutfeedRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferFromOutfeedRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferFromOutfeedRequest.class, xla.Xla.TransferFromOutfeedRequest.Builder.class);
}
// Construct using xla.Xla.TransferFromOutfeedRequest.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 (shapeWithLayoutBuilder_ == null) {
shapeWithLayout_ = null;
} else {
shapeWithLayout_ = null;
shapeWithLayoutBuilder_ = null;
}
replicaId_ = 0L;
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferFromOutfeedRequest_descriptor;
}
@java.lang.Override
public xla.Xla.TransferFromOutfeedRequest getDefaultInstanceForType() {
return xla.Xla.TransferFromOutfeedRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferFromOutfeedRequest build() {
xla.Xla.TransferFromOutfeedRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferFromOutfeedRequest buildPartial() {
xla.Xla.TransferFromOutfeedRequest result = new xla.Xla.TransferFromOutfeedRequest(this);
if (shapeWithLayoutBuilder_ == null) {
result.shapeWithLayout_ = shapeWithLayout_;
} else {
result.shapeWithLayout_ = shapeWithLayoutBuilder_.build();
}
result.replicaId_ = replicaId_;
if (deviceHandleBuilder_ == null) {
result.deviceHandle_ = deviceHandle_;
} else {
result.deviceHandle_ = deviceHandleBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferFromOutfeedRequest) {
return mergeFrom((xla.Xla.TransferFromOutfeedRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferFromOutfeedRequest other) {
if (other == xla.Xla.TransferFromOutfeedRequest.getDefaultInstance()) return this;
if (other.hasShapeWithLayout()) {
mergeShapeWithLayout(other.getShapeWithLayout());
}
if (other.getReplicaId() != 0L) {
setReplicaId(other.getReplicaId());
}
if (other.hasDeviceHandle()) {
mergeDeviceHandle(other.getDeviceHandle());
}
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 {
xla.Xla.TransferFromOutfeedRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferFromOutfeedRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.Shape shapeWithLayout_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder> shapeWithLayoutBuilder_;
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public boolean hasShapeWithLayout() {
return shapeWithLayoutBuilder_ != null || shapeWithLayout_ != null;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public xla.XlaData.Shape getShapeWithLayout() {
if (shapeWithLayoutBuilder_ == null) {
return shapeWithLayout_ == null ? xla.XlaData.Shape.getDefaultInstance() : shapeWithLayout_;
} else {
return shapeWithLayoutBuilder_.getMessage();
}
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public Builder setShapeWithLayout(xla.XlaData.Shape value) {
if (shapeWithLayoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shapeWithLayout_ = value;
onChanged();
} else {
shapeWithLayoutBuilder_.setMessage(value);
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public Builder setShapeWithLayout(
xla.XlaData.Shape.Builder builderForValue) {
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayout_ = builderForValue.build();
onChanged();
} else {
shapeWithLayoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public Builder mergeShapeWithLayout(xla.XlaData.Shape value) {
if (shapeWithLayoutBuilder_ == null) {
if (shapeWithLayout_ != null) {
shapeWithLayout_ =
xla.XlaData.Shape.newBuilder(shapeWithLayout_).mergeFrom(value).buildPartial();
} else {
shapeWithLayout_ = value;
}
onChanged();
} else {
shapeWithLayoutBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public Builder clearShapeWithLayout() {
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayout_ = null;
onChanged();
} else {
shapeWithLayout_ = null;
shapeWithLayoutBuilder_ = null;
}
return this;
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public xla.XlaData.Shape.Builder getShapeWithLayoutBuilder() {
onChanged();
return getShapeWithLayoutFieldBuilder().getBuilder();
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
public xla.XlaData.ShapeOrBuilder getShapeWithLayoutOrBuilder() {
if (shapeWithLayoutBuilder_ != null) {
return shapeWithLayoutBuilder_.getMessageOrBuilder();
} else {
return shapeWithLayout_ == null ?
xla.XlaData.Shape.getDefaultInstance() : shapeWithLayout_;
}
}
/**
*
* This optional field directs the service to return the literal in this
* layout. A shape is used to hold the layout to accommodate tuples.
*
*
* .xla.Shape shape_with_layout = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>
getShapeWithLayoutFieldBuilder() {
if (shapeWithLayoutBuilder_ == null) {
shapeWithLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>(
getShapeWithLayout(),
getParentForChildren(),
isClean());
shapeWithLayout_ = null;
}
return shapeWithLayoutBuilder_;
}
private long replicaId_ ;
/**
* int64 replica_id = 2;
*/
public long getReplicaId() {
return replicaId_;
}
/**
* int64 replica_id = 2;
*/
public Builder setReplicaId(long value) {
replicaId_ = value;
onChanged();
return this;
}
/**
* int64 replica_id = 2;
*/
public Builder clearReplicaId() {
replicaId_ = 0L;
onChanged();
return this;
}
private xla.XlaData.DeviceHandle deviceHandle_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder> deviceHandleBuilder_;
/**
* .xla.DeviceHandle device_handle = 3;
*/
public boolean hasDeviceHandle() {
return deviceHandleBuilder_ != null || deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
if (deviceHandleBuilder_ == null) {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
} else {
return deviceHandleBuilder_.getMessage();
}
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder setDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceHandle_ = value;
onChanged();
} else {
deviceHandleBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder setDeviceHandle(
xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = builderForValue.build();
onChanged();
} else {
deviceHandleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder mergeDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (deviceHandle_ != null) {
deviceHandle_ =
xla.XlaData.DeviceHandle.newBuilder(deviceHandle_).mergeFrom(value).buildPartial();
} else {
deviceHandle_ = value;
}
onChanged();
} else {
deviceHandleBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public Builder clearDeviceHandle() {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
onChanged();
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandle.Builder getDeviceHandleBuilder() {
onChanged();
return getDeviceHandleFieldBuilder().getBuilder();
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
if (deviceHandleBuilder_ != null) {
return deviceHandleBuilder_.getMessageOrBuilder();
} else {
return deviceHandle_ == null ?
xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
}
/**
* .xla.DeviceHandle device_handle = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandleFieldBuilder() {
if (deviceHandleBuilder_ == null) {
deviceHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>(
getDeviceHandle(),
getParentForChildren(),
isClean());
deviceHandle_ = null;
}
return deviceHandleBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferFromOutfeedRequest)
}
// @@protoc_insertion_point(class_scope:xla.TransferFromOutfeedRequest)
private static final xla.Xla.TransferFromOutfeedRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferFromOutfeedRequest();
}
public static xla.Xla.TransferFromOutfeedRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferFromOutfeedRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferFromOutfeedRequest(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 xla.Xla.TransferFromOutfeedRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TransferFromOutfeedResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.TransferFromOutfeedResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.LiteralProto literal = 1;
*/
boolean hasLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProto getLiteral();
/**
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder();
}
/**
* Protobuf type {@code xla.TransferFromOutfeedResponse}
*/
public static final class TransferFromOutfeedResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.TransferFromOutfeedResponse)
TransferFromOutfeedResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferFromOutfeedResponse.newBuilder() to construct.
private TransferFromOutfeedResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferFromOutfeedResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferFromOutfeedResponse(
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: {
xla.XlaData.LiteralProto.Builder subBuilder = null;
if (literal_ != null) {
subBuilder = literal_.toBuilder();
}
literal_ = input.readMessage(xla.XlaData.LiteralProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(literal_);
literal_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_TransferFromOutfeedResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferFromOutfeedResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferFromOutfeedResponse.class, xla.Xla.TransferFromOutfeedResponse.Builder.class);
}
public static final int LITERAL_FIELD_NUMBER = 1;
private xla.XlaData.LiteralProto literal_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
return getLiteral();
}
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 (literal_ != null) {
output.writeMessage(1, getLiteral());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (literal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLiteral());
}
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 xla.Xla.TransferFromOutfeedResponse)) {
return super.equals(obj);
}
xla.Xla.TransferFromOutfeedResponse other = (xla.Xla.TransferFromOutfeedResponse) obj;
boolean result = true;
result = result && (hasLiteral() == other.hasLiteral());
if (hasLiteral()) {
result = result && getLiteral()
.equals(other.getLiteral());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLiteral()) {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.TransferFromOutfeedResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferFromOutfeedResponse 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 xla.Xla.TransferFromOutfeedResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.TransferFromOutfeedResponse 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 xla.Xla.TransferFromOutfeedResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.TransferFromOutfeedResponse 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(xla.Xla.TransferFromOutfeedResponse 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 xla.TransferFromOutfeedResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.TransferFromOutfeedResponse)
xla.Xla.TransferFromOutfeedResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_TransferFromOutfeedResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_TransferFromOutfeedResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.TransferFromOutfeedResponse.class, xla.Xla.TransferFromOutfeedResponse.Builder.class);
}
// Construct using xla.Xla.TransferFromOutfeedResponse.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 (literalBuilder_ == null) {
literal_ = null;
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_TransferFromOutfeedResponse_descriptor;
}
@java.lang.Override
public xla.Xla.TransferFromOutfeedResponse getDefaultInstanceForType() {
return xla.Xla.TransferFromOutfeedResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.TransferFromOutfeedResponse build() {
xla.Xla.TransferFromOutfeedResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.TransferFromOutfeedResponse buildPartial() {
xla.Xla.TransferFromOutfeedResponse result = new xla.Xla.TransferFromOutfeedResponse(this);
if (literalBuilder_ == null) {
result.literal_ = literal_;
} else {
result.literal_ = literalBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.TransferFromOutfeedResponse) {
return mergeFrom((xla.Xla.TransferFromOutfeedResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.TransferFromOutfeedResponse other) {
if (other == xla.Xla.TransferFromOutfeedResponse.getDefaultInstance()) return this;
if (other.hasLiteral()) {
mergeLiteral(other.getLiteral());
}
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 {
xla.Xla.TransferFromOutfeedResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.TransferFromOutfeedResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.LiteralProto literal_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> literalBuilder_;
/**
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literalBuilder_ != null || literal_ != null;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
if (literalBuilder_ == null) {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
} else {
return literalBuilder_.getMessage();
}
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literal_ = value;
onChanged();
} else {
literalBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(
xla.XlaData.LiteralProto.Builder builderForValue) {
if (literalBuilder_ == null) {
literal_ = builderForValue.build();
onChanged();
} else {
literalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder mergeLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (literal_ != null) {
literal_ =
xla.XlaData.LiteralProto.newBuilder(literal_).mergeFrom(value).buildPartial();
} else {
literal_ = value;
}
onChanged();
} else {
literalBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public Builder clearLiteral() {
if (literalBuilder_ == null) {
literal_ = null;
onChanged();
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto.Builder getLiteralBuilder() {
onChanged();
return getLiteralFieldBuilder().getBuilder();
}
/**
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
if (literalBuilder_ != null) {
return literalBuilder_.getMessageOrBuilder();
} else {
return literal_ == null ?
xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
}
/**
* .xla.LiteralProto literal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>
getLiteralFieldBuilder() {
if (literalBuilder_ == null) {
literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>(
getLiteral(),
getParentForChildren(),
isClean());
literal_ = null;
}
return literalBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.TransferFromOutfeedResponse)
}
// @@protoc_insertion_point(class_scope:xla.TransferFromOutfeedResponse)
private static final xla.Xla.TransferFromOutfeedResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.TransferFromOutfeedResponse();
}
public static xla.Xla.TransferFromOutfeedResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferFromOutfeedResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferFromOutfeedResponse(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 xla.Xla.TransferFromOutfeedResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResetDeviceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ResetDeviceRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.DeviceHandle device_handle = 1;
*/
boolean hasDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 1;
*/
xla.XlaData.DeviceHandle getDeviceHandle();
/**
* .xla.DeviceHandle device_handle = 1;
*/
xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder();
}
/**
* Protobuf type {@code xla.ResetDeviceRequest}
*/
public static final class ResetDeviceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ResetDeviceRequest)
ResetDeviceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResetDeviceRequest.newBuilder() to construct.
private ResetDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResetDeviceRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResetDeviceRequest(
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: {
xla.XlaData.DeviceHandle.Builder subBuilder = null;
if (deviceHandle_ != null) {
subBuilder = deviceHandle_.toBuilder();
}
deviceHandle_ = input.readMessage(xla.XlaData.DeviceHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceHandle_);
deviceHandle_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ResetDeviceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ResetDeviceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ResetDeviceRequest.class, xla.Xla.ResetDeviceRequest.Builder.class);
}
public static final int DEVICE_HANDLE_FIELD_NUMBER = 1;
private xla.XlaData.DeviceHandle deviceHandle_;
/**
* .xla.DeviceHandle device_handle = 1;
*/
public boolean hasDeviceHandle() {
return deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
return getDeviceHandle();
}
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 (deviceHandle_ != null) {
output.writeMessage(1, getDeviceHandle());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (deviceHandle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDeviceHandle());
}
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 xla.Xla.ResetDeviceRequest)) {
return super.equals(obj);
}
xla.Xla.ResetDeviceRequest other = (xla.Xla.ResetDeviceRequest) obj;
boolean result = true;
result = result && (hasDeviceHandle() == other.hasDeviceHandle());
if (hasDeviceHandle()) {
result = result && getDeviceHandle()
.equals(other.getDeviceHandle());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDeviceHandle()) {
hash = (37 * hash) + DEVICE_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceHandle().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ResetDeviceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ResetDeviceRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ResetDeviceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ResetDeviceRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ResetDeviceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ResetDeviceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ResetDeviceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ResetDeviceRequest 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 xla.Xla.ResetDeviceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ResetDeviceRequest 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 xla.Xla.ResetDeviceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ResetDeviceRequest 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(xla.Xla.ResetDeviceRequest 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 xla.ResetDeviceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ResetDeviceRequest)
xla.Xla.ResetDeviceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ResetDeviceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ResetDeviceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ResetDeviceRequest.class, xla.Xla.ResetDeviceRequest.Builder.class);
}
// Construct using xla.Xla.ResetDeviceRequest.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 (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ResetDeviceRequest_descriptor;
}
@java.lang.Override
public xla.Xla.ResetDeviceRequest getDefaultInstanceForType() {
return xla.Xla.ResetDeviceRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ResetDeviceRequest build() {
xla.Xla.ResetDeviceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ResetDeviceRequest buildPartial() {
xla.Xla.ResetDeviceRequest result = new xla.Xla.ResetDeviceRequest(this);
if (deviceHandleBuilder_ == null) {
result.deviceHandle_ = deviceHandle_;
} else {
result.deviceHandle_ = deviceHandleBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ResetDeviceRequest) {
return mergeFrom((xla.Xla.ResetDeviceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ResetDeviceRequest other) {
if (other == xla.Xla.ResetDeviceRequest.getDefaultInstance()) return this;
if (other.hasDeviceHandle()) {
mergeDeviceHandle(other.getDeviceHandle());
}
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 {
xla.Xla.ResetDeviceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ResetDeviceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.DeviceHandle deviceHandle_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder> deviceHandleBuilder_;
/**
* .xla.DeviceHandle device_handle = 1;
*/
public boolean hasDeviceHandle() {
return deviceHandleBuilder_ != null || deviceHandle_ != null;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public xla.XlaData.DeviceHandle getDeviceHandle() {
if (deviceHandleBuilder_ == null) {
return deviceHandle_ == null ? xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
} else {
return deviceHandleBuilder_.getMessage();
}
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public Builder setDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceHandle_ = value;
onChanged();
} else {
deviceHandleBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public Builder setDeviceHandle(
xla.XlaData.DeviceHandle.Builder builderForValue) {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = builderForValue.build();
onChanged();
} else {
deviceHandleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public Builder mergeDeviceHandle(xla.XlaData.DeviceHandle value) {
if (deviceHandleBuilder_ == null) {
if (deviceHandle_ != null) {
deviceHandle_ =
xla.XlaData.DeviceHandle.newBuilder(deviceHandle_).mergeFrom(value).buildPartial();
} else {
deviceHandle_ = value;
}
onChanged();
} else {
deviceHandleBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public Builder clearDeviceHandle() {
if (deviceHandleBuilder_ == null) {
deviceHandle_ = null;
onChanged();
} else {
deviceHandle_ = null;
deviceHandleBuilder_ = null;
}
return this;
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public xla.XlaData.DeviceHandle.Builder getDeviceHandleBuilder() {
onChanged();
return getDeviceHandleFieldBuilder().getBuilder();
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
public xla.XlaData.DeviceHandleOrBuilder getDeviceHandleOrBuilder() {
if (deviceHandleBuilder_ != null) {
return deviceHandleBuilder_.getMessageOrBuilder();
} else {
return deviceHandle_ == null ?
xla.XlaData.DeviceHandle.getDefaultInstance() : deviceHandle_;
}
}
/**
* .xla.DeviceHandle device_handle = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>
getDeviceHandleFieldBuilder() {
if (deviceHandleBuilder_ == null) {
deviceHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.DeviceHandle, xla.XlaData.DeviceHandle.Builder, xla.XlaData.DeviceHandleOrBuilder>(
getDeviceHandle(),
getParentForChildren(),
isClean());
deviceHandle_ = null;
}
return deviceHandleBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ResetDeviceRequest)
}
// @@protoc_insertion_point(class_scope:xla.ResetDeviceRequest)
private static final xla.Xla.ResetDeviceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ResetDeviceRequest();
}
public static xla.Xla.ResetDeviceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResetDeviceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResetDeviceRequest(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 xla.Xla.ResetDeviceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResetDeviceResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ResetDeviceResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code xla.ResetDeviceResponse}
*/
public static final class ResetDeviceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ResetDeviceResponse)
ResetDeviceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResetDeviceResponse.newBuilder() to construct.
private ResetDeviceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResetDeviceResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResetDeviceResponse(
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;
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ResetDeviceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ResetDeviceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ResetDeviceResponse.class, xla.Xla.ResetDeviceResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 xla.Xla.ResetDeviceResponse)) {
return super.equals(obj);
}
xla.Xla.ResetDeviceResponse other = (xla.Xla.ResetDeviceResponse) obj;
boolean result = true;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ResetDeviceResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ResetDeviceResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ResetDeviceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ResetDeviceResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ResetDeviceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ResetDeviceResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ResetDeviceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ResetDeviceResponse 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 xla.Xla.ResetDeviceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ResetDeviceResponse 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 xla.Xla.ResetDeviceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ResetDeviceResponse 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(xla.Xla.ResetDeviceResponse 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 xla.ResetDeviceResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ResetDeviceResponse)
xla.Xla.ResetDeviceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ResetDeviceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ResetDeviceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ResetDeviceResponse.class, xla.Xla.ResetDeviceResponse.Builder.class);
}
// Construct using xla.Xla.ResetDeviceResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ResetDeviceResponse_descriptor;
}
@java.lang.Override
public xla.Xla.ResetDeviceResponse getDefaultInstanceForType() {
return xla.Xla.ResetDeviceResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ResetDeviceResponse build() {
xla.Xla.ResetDeviceResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ResetDeviceResponse buildPartial() {
xla.Xla.ResetDeviceResponse result = new xla.Xla.ResetDeviceResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ResetDeviceResponse) {
return mergeFrom((xla.Xla.ResetDeviceResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ResetDeviceResponse other) {
if (other == xla.Xla.ResetDeviceResponse.getDefaultInstance()) return this;
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 {
xla.Xla.ResetDeviceResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ResetDeviceResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ResetDeviceResponse)
}
// @@protoc_insertion_point(class_scope:xla.ResetDeviceResponse)
private static final xla.Xla.ResetDeviceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ResetDeviceResponse();
}
public static xla.Xla.ResetDeviceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResetDeviceResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResetDeviceResponse(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 xla.Xla.ResetDeviceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputationGraphStatsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ComputationGraphStatsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.HloModuleProto computation = 1;
*/
boolean hasComputation();
/**
* .xla.HloModuleProto computation = 1;
*/
xla.Hlo.HloModuleProto getComputation();
/**
* .xla.HloModuleProto computation = 1;
*/
xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder();
/**
* .xla.DebugOptions debug_options = 2;
*/
boolean hasDebugOptions();
/**
* .xla.DebugOptions debug_options = 2;
*/
xla.Xla.DebugOptions getDebugOptions();
/**
* .xla.DebugOptions debug_options = 2;
*/
xla.Xla.DebugOptionsOrBuilder getDebugOptionsOrBuilder();
}
/**
* Protobuf type {@code xla.ComputationGraphStatsRequest}
*/
public static final class ComputationGraphStatsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ComputationGraphStatsRequest)
ComputationGraphStatsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputationGraphStatsRequest.newBuilder() to construct.
private ComputationGraphStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputationGraphStatsRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputationGraphStatsRequest(
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: {
xla.Hlo.HloModuleProto.Builder subBuilder = null;
if (computation_ != null) {
subBuilder = computation_.toBuilder();
}
computation_ = input.readMessage(xla.Hlo.HloModuleProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(computation_);
computation_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.Xla.DebugOptions.Builder subBuilder = null;
if (debugOptions_ != null) {
subBuilder = debugOptions_.toBuilder();
}
debugOptions_ = input.readMessage(xla.Xla.DebugOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(debugOptions_);
debugOptions_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ComputationGraphStatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputationGraphStatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputationGraphStatsRequest.class, xla.Xla.ComputationGraphStatsRequest.Builder.class);
}
public static final int COMPUTATION_FIELD_NUMBER = 1;
private xla.Hlo.HloModuleProto computation_;
/**
* .xla.HloModuleProto computation = 1;
*/
public boolean hasComputation() {
return computation_ != null;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto getComputation() {
return computation_ == null ? xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder() {
return getComputation();
}
public static final int DEBUG_OPTIONS_FIELD_NUMBER = 2;
private xla.Xla.DebugOptions debugOptions_;
/**
* .xla.DebugOptions debug_options = 2;
*/
public boolean hasDebugOptions() {
return debugOptions_ != null;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public xla.Xla.DebugOptions getDebugOptions() {
return debugOptions_ == null ? xla.Xla.DebugOptions.getDefaultInstance() : debugOptions_;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public xla.Xla.DebugOptionsOrBuilder getDebugOptionsOrBuilder() {
return getDebugOptions();
}
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 (computation_ != null) {
output.writeMessage(1, getComputation());
}
if (debugOptions_ != null) {
output.writeMessage(2, getDebugOptions());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (computation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getComputation());
}
if (debugOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDebugOptions());
}
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 xla.Xla.ComputationGraphStatsRequest)) {
return super.equals(obj);
}
xla.Xla.ComputationGraphStatsRequest other = (xla.Xla.ComputationGraphStatsRequest) obj;
boolean result = true;
result = result && (hasComputation() == other.hasComputation());
if (hasComputation()) {
result = result && getComputation()
.equals(other.getComputation());
}
result = result && (hasDebugOptions() == other.hasDebugOptions());
if (hasDebugOptions()) {
result = result && getDebugOptions()
.equals(other.getDebugOptions());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasComputation()) {
hash = (37 * hash) + COMPUTATION_FIELD_NUMBER;
hash = (53 * hash) + getComputation().hashCode();
}
if (hasDebugOptions()) {
hash = (37 * hash) + DEBUG_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getDebugOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputationGraphStatsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputationGraphStatsRequest 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 xla.Xla.ComputationGraphStatsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ComputationGraphStatsRequest 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 xla.Xla.ComputationGraphStatsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputationGraphStatsRequest 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(xla.Xla.ComputationGraphStatsRequest 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 xla.ComputationGraphStatsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ComputationGraphStatsRequest)
xla.Xla.ComputationGraphStatsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ComputationGraphStatsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputationGraphStatsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputationGraphStatsRequest.class, xla.Xla.ComputationGraphStatsRequest.Builder.class);
}
// Construct using xla.Xla.ComputationGraphStatsRequest.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 (computationBuilder_ == null) {
computation_ = null;
} else {
computation_ = null;
computationBuilder_ = null;
}
if (debugOptionsBuilder_ == null) {
debugOptions_ = null;
} else {
debugOptions_ = null;
debugOptionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ComputationGraphStatsRequest_descriptor;
}
@java.lang.Override
public xla.Xla.ComputationGraphStatsRequest getDefaultInstanceForType() {
return xla.Xla.ComputationGraphStatsRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ComputationGraphStatsRequest build() {
xla.Xla.ComputationGraphStatsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ComputationGraphStatsRequest buildPartial() {
xla.Xla.ComputationGraphStatsRequest result = new xla.Xla.ComputationGraphStatsRequest(this);
if (computationBuilder_ == null) {
result.computation_ = computation_;
} else {
result.computation_ = computationBuilder_.build();
}
if (debugOptionsBuilder_ == null) {
result.debugOptions_ = debugOptions_;
} else {
result.debugOptions_ = debugOptionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ComputationGraphStatsRequest) {
return mergeFrom((xla.Xla.ComputationGraphStatsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ComputationGraphStatsRequest other) {
if (other == xla.Xla.ComputationGraphStatsRequest.getDefaultInstance()) return this;
if (other.hasComputation()) {
mergeComputation(other.getComputation());
}
if (other.hasDebugOptions()) {
mergeDebugOptions(other.getDebugOptions());
}
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 {
xla.Xla.ComputationGraphStatsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ComputationGraphStatsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.Hlo.HloModuleProto computation_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder> computationBuilder_;
/**
* .xla.HloModuleProto computation = 1;
*/
public boolean hasComputation() {
return computationBuilder_ != null || computation_ != null;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto getComputation() {
if (computationBuilder_ == null) {
return computation_ == null ? xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
} else {
return computationBuilder_.getMessage();
}
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder setComputation(xla.Hlo.HloModuleProto value) {
if (computationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
computation_ = value;
onChanged();
} else {
computationBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder setComputation(
xla.Hlo.HloModuleProto.Builder builderForValue) {
if (computationBuilder_ == null) {
computation_ = builderForValue.build();
onChanged();
} else {
computationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder mergeComputation(xla.Hlo.HloModuleProto value) {
if (computationBuilder_ == null) {
if (computation_ != null) {
computation_ =
xla.Hlo.HloModuleProto.newBuilder(computation_).mergeFrom(value).buildPartial();
} else {
computation_ = value;
}
onChanged();
} else {
computationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder clearComputation() {
if (computationBuilder_ == null) {
computation_ = null;
onChanged();
} else {
computation_ = null;
computationBuilder_ = null;
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto.Builder getComputationBuilder() {
onChanged();
return getComputationFieldBuilder().getBuilder();
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder() {
if (computationBuilder_ != null) {
return computationBuilder_.getMessageOrBuilder();
} else {
return computation_ == null ?
xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
}
}
/**
* .xla.HloModuleProto computation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder>
getComputationFieldBuilder() {
if (computationBuilder_ == null) {
computationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder>(
getComputation(),
getParentForChildren(),
isClean());
computation_ = null;
}
return computationBuilder_;
}
private xla.Xla.DebugOptions debugOptions_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.DebugOptions, xla.Xla.DebugOptions.Builder, xla.Xla.DebugOptionsOrBuilder> debugOptionsBuilder_;
/**
* .xla.DebugOptions debug_options = 2;
*/
public boolean hasDebugOptions() {
return debugOptionsBuilder_ != null || debugOptions_ != null;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public xla.Xla.DebugOptions getDebugOptions() {
if (debugOptionsBuilder_ == null) {
return debugOptions_ == null ? xla.Xla.DebugOptions.getDefaultInstance() : debugOptions_;
} else {
return debugOptionsBuilder_.getMessage();
}
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public Builder setDebugOptions(xla.Xla.DebugOptions value) {
if (debugOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
debugOptions_ = value;
onChanged();
} else {
debugOptionsBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public Builder setDebugOptions(
xla.Xla.DebugOptions.Builder builderForValue) {
if (debugOptionsBuilder_ == null) {
debugOptions_ = builderForValue.build();
onChanged();
} else {
debugOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public Builder mergeDebugOptions(xla.Xla.DebugOptions value) {
if (debugOptionsBuilder_ == null) {
if (debugOptions_ != null) {
debugOptions_ =
xla.Xla.DebugOptions.newBuilder(debugOptions_).mergeFrom(value).buildPartial();
} else {
debugOptions_ = value;
}
onChanged();
} else {
debugOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public Builder clearDebugOptions() {
if (debugOptionsBuilder_ == null) {
debugOptions_ = null;
onChanged();
} else {
debugOptions_ = null;
debugOptionsBuilder_ = null;
}
return this;
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public xla.Xla.DebugOptions.Builder getDebugOptionsBuilder() {
onChanged();
return getDebugOptionsFieldBuilder().getBuilder();
}
/**
* .xla.DebugOptions debug_options = 2;
*/
public xla.Xla.DebugOptionsOrBuilder getDebugOptionsOrBuilder() {
if (debugOptionsBuilder_ != null) {
return debugOptionsBuilder_.getMessageOrBuilder();
} else {
return debugOptions_ == null ?
xla.Xla.DebugOptions.getDefaultInstance() : debugOptions_;
}
}
/**
* .xla.DebugOptions debug_options = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.DebugOptions, xla.Xla.DebugOptions.Builder, xla.Xla.DebugOptionsOrBuilder>
getDebugOptionsFieldBuilder() {
if (debugOptionsBuilder_ == null) {
debugOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.DebugOptions, xla.Xla.DebugOptions.Builder, xla.Xla.DebugOptionsOrBuilder>(
getDebugOptions(),
getParentForChildren(),
isClean());
debugOptions_ = null;
}
return debugOptionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ComputationGraphStatsRequest)
}
// @@protoc_insertion_point(class_scope:xla.ComputationGraphStatsRequest)
private static final xla.Xla.ComputationGraphStatsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ComputationGraphStatsRequest();
}
public static xla.Xla.ComputationGraphStatsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputationGraphStatsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputationGraphStatsRequest(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 xla.Xla.ComputationGraphStatsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputationStatsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ComputationStatsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.ComputationStats stats = 1;
*/
boolean hasStats();
/**
* .xla.ComputationStats stats = 1;
*/
xla.XlaData.ComputationStats getStats();
/**
* .xla.ComputationStats stats = 1;
*/
xla.XlaData.ComputationStatsOrBuilder getStatsOrBuilder();
}
/**
* Protobuf type {@code xla.ComputationStatsResponse}
*/
public static final class ComputationStatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ComputationStatsResponse)
ComputationStatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputationStatsResponse.newBuilder() to construct.
private ComputationStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputationStatsResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputationStatsResponse(
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: {
xla.XlaData.ComputationStats.Builder subBuilder = null;
if (stats_ != null) {
subBuilder = stats_.toBuilder();
}
stats_ = input.readMessage(xla.XlaData.ComputationStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stats_);
stats_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ComputationStatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputationStatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputationStatsResponse.class, xla.Xla.ComputationStatsResponse.Builder.class);
}
public static final int STATS_FIELD_NUMBER = 1;
private xla.XlaData.ComputationStats stats_;
/**
* .xla.ComputationStats stats = 1;
*/
public boolean hasStats() {
return stats_ != null;
}
/**
* .xla.ComputationStats stats = 1;
*/
public xla.XlaData.ComputationStats getStats() {
return stats_ == null ? xla.XlaData.ComputationStats.getDefaultInstance() : stats_;
}
/**
* .xla.ComputationStats stats = 1;
*/
public xla.XlaData.ComputationStatsOrBuilder getStatsOrBuilder() {
return getStats();
}
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 (stats_ != null) {
output.writeMessage(1, getStats());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (stats_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStats());
}
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 xla.Xla.ComputationStatsResponse)) {
return super.equals(obj);
}
xla.Xla.ComputationStatsResponse other = (xla.Xla.ComputationStatsResponse) obj;
boolean result = true;
result = result && (hasStats() == other.hasStats());
if (hasStats()) {
result = result && getStats()
.equals(other.getStats());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStats()) {
hash = (37 * hash) + STATS_FIELD_NUMBER;
hash = (53 * hash) + getStats().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ComputationStatsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputationStatsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputationStatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputationStatsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputationStatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputationStatsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputationStatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputationStatsResponse 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 xla.Xla.ComputationStatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ComputationStatsResponse 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 xla.Xla.ComputationStatsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputationStatsResponse 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(xla.Xla.ComputationStatsResponse 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 xla.ComputationStatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ComputationStatsResponse)
xla.Xla.ComputationStatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ComputationStatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputationStatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputationStatsResponse.class, xla.Xla.ComputationStatsResponse.Builder.class);
}
// Construct using xla.Xla.ComputationStatsResponse.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 (statsBuilder_ == null) {
stats_ = null;
} else {
stats_ = null;
statsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ComputationStatsResponse_descriptor;
}
@java.lang.Override
public xla.Xla.ComputationStatsResponse getDefaultInstanceForType() {
return xla.Xla.ComputationStatsResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ComputationStatsResponse build() {
xla.Xla.ComputationStatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ComputationStatsResponse buildPartial() {
xla.Xla.ComputationStatsResponse result = new xla.Xla.ComputationStatsResponse(this);
if (statsBuilder_ == null) {
result.stats_ = stats_;
} else {
result.stats_ = statsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ComputationStatsResponse) {
return mergeFrom((xla.Xla.ComputationStatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ComputationStatsResponse other) {
if (other == xla.Xla.ComputationStatsResponse.getDefaultInstance()) return this;
if (other.hasStats()) {
mergeStats(other.getStats());
}
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 {
xla.Xla.ComputationStatsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ComputationStatsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.ComputationStats stats_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ComputationStats, xla.XlaData.ComputationStats.Builder, xla.XlaData.ComputationStatsOrBuilder> statsBuilder_;
/**
* .xla.ComputationStats stats = 1;
*/
public boolean hasStats() {
return statsBuilder_ != null || stats_ != null;
}
/**
* .xla.ComputationStats stats = 1;
*/
public xla.XlaData.ComputationStats getStats() {
if (statsBuilder_ == null) {
return stats_ == null ? xla.XlaData.ComputationStats.getDefaultInstance() : stats_;
} else {
return statsBuilder_.getMessage();
}
}
/**
* .xla.ComputationStats stats = 1;
*/
public Builder setStats(xla.XlaData.ComputationStats value) {
if (statsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stats_ = value;
onChanged();
} else {
statsBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.ComputationStats stats = 1;
*/
public Builder setStats(
xla.XlaData.ComputationStats.Builder builderForValue) {
if (statsBuilder_ == null) {
stats_ = builderForValue.build();
onChanged();
} else {
statsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.ComputationStats stats = 1;
*/
public Builder mergeStats(xla.XlaData.ComputationStats value) {
if (statsBuilder_ == null) {
if (stats_ != null) {
stats_ =
xla.XlaData.ComputationStats.newBuilder(stats_).mergeFrom(value).buildPartial();
} else {
stats_ = value;
}
onChanged();
} else {
statsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.ComputationStats stats = 1;
*/
public Builder clearStats() {
if (statsBuilder_ == null) {
stats_ = null;
onChanged();
} else {
stats_ = null;
statsBuilder_ = null;
}
return this;
}
/**
* .xla.ComputationStats stats = 1;
*/
public xla.XlaData.ComputationStats.Builder getStatsBuilder() {
onChanged();
return getStatsFieldBuilder().getBuilder();
}
/**
* .xla.ComputationStats stats = 1;
*/
public xla.XlaData.ComputationStatsOrBuilder getStatsOrBuilder() {
if (statsBuilder_ != null) {
return statsBuilder_.getMessageOrBuilder();
} else {
return stats_ == null ?
xla.XlaData.ComputationStats.getDefaultInstance() : stats_;
}
}
/**
* .xla.ComputationStats stats = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ComputationStats, xla.XlaData.ComputationStats.Builder, xla.XlaData.ComputationStatsOrBuilder>
getStatsFieldBuilder() {
if (statsBuilder_ == null) {
statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ComputationStats, xla.XlaData.ComputationStats.Builder, xla.XlaData.ComputationStatsOrBuilder>(
getStats(),
getParentForChildren(),
isClean());
stats_ = null;
}
return statsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ComputationStatsResponse)
}
// @@protoc_insertion_point(class_scope:xla.ComputationStatsResponse)
private static final xla.Xla.ComputationStatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ComputationStatsResponse();
}
public static xla.Xla.ComputationStatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputationStatsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputationStatsResponse(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 xla.Xla.ComputationStatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateChannelHandleRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.CreateChannelHandleRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
int getChannelTypeValue();
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
xla.XlaData.ChannelHandle.ChannelType getChannelType();
}
/**
* Protobuf type {@code xla.CreateChannelHandleRequest}
*/
public static final class CreateChannelHandleRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.CreateChannelHandleRequest)
CreateChannelHandleRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateChannelHandleRequest.newBuilder() to construct.
private CreateChannelHandleRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateChannelHandleRequest() {
channelType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateChannelHandleRequest(
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: {
int rawValue = input.readEnum();
channelType_ = rawValue;
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_CreateChannelHandleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_CreateChannelHandleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.CreateChannelHandleRequest.class, xla.Xla.CreateChannelHandleRequest.Builder.class);
}
public static final int CHANNEL_TYPE_FIELD_NUMBER = 1;
private int channelType_;
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public int getChannelTypeValue() {
return channelType_;
}
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public xla.XlaData.ChannelHandle.ChannelType getChannelType() {
@SuppressWarnings("deprecation")
xla.XlaData.ChannelHandle.ChannelType result = xla.XlaData.ChannelHandle.ChannelType.valueOf(channelType_);
return result == null ? xla.XlaData.ChannelHandle.ChannelType.UNRECOGNIZED : result;
}
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 (channelType_ != xla.XlaData.ChannelHandle.ChannelType.CHANNEL_TYPE_INVALID.getNumber()) {
output.writeEnum(1, channelType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (channelType_ != xla.XlaData.ChannelHandle.ChannelType.CHANNEL_TYPE_INVALID.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, channelType_);
}
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 xla.Xla.CreateChannelHandleRequest)) {
return super.equals(obj);
}
xla.Xla.CreateChannelHandleRequest other = (xla.Xla.CreateChannelHandleRequest) obj;
boolean result = true;
result = result && channelType_ == other.channelType_;
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) + CHANNEL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + channelType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.CreateChannelHandleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.CreateChannelHandleRequest 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 xla.Xla.CreateChannelHandleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.CreateChannelHandleRequest 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 xla.Xla.CreateChannelHandleRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.CreateChannelHandleRequest 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(xla.Xla.CreateChannelHandleRequest 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 xla.CreateChannelHandleRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.CreateChannelHandleRequest)
xla.Xla.CreateChannelHandleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_CreateChannelHandleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_CreateChannelHandleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.CreateChannelHandleRequest.class, xla.Xla.CreateChannelHandleRequest.Builder.class);
}
// Construct using xla.Xla.CreateChannelHandleRequest.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();
channelType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_CreateChannelHandleRequest_descriptor;
}
@java.lang.Override
public xla.Xla.CreateChannelHandleRequest getDefaultInstanceForType() {
return xla.Xla.CreateChannelHandleRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.CreateChannelHandleRequest build() {
xla.Xla.CreateChannelHandleRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.CreateChannelHandleRequest buildPartial() {
xla.Xla.CreateChannelHandleRequest result = new xla.Xla.CreateChannelHandleRequest(this);
result.channelType_ = channelType_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.CreateChannelHandleRequest) {
return mergeFrom((xla.Xla.CreateChannelHandleRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.CreateChannelHandleRequest other) {
if (other == xla.Xla.CreateChannelHandleRequest.getDefaultInstance()) return this;
if (other.channelType_ != 0) {
setChannelTypeValue(other.getChannelTypeValue());
}
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 {
xla.Xla.CreateChannelHandleRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.CreateChannelHandleRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int channelType_ = 0;
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public int getChannelTypeValue() {
return channelType_;
}
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public Builder setChannelTypeValue(int value) {
channelType_ = value;
onChanged();
return this;
}
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public xla.XlaData.ChannelHandle.ChannelType getChannelType() {
@SuppressWarnings("deprecation")
xla.XlaData.ChannelHandle.ChannelType result = xla.XlaData.ChannelHandle.ChannelType.valueOf(channelType_);
return result == null ? xla.XlaData.ChannelHandle.ChannelType.UNRECOGNIZED : result;
}
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public Builder setChannelType(xla.XlaData.ChannelHandle.ChannelType value) {
if (value == null) {
throw new NullPointerException();
}
channelType_ = value.getNumber();
onChanged();
return this;
}
/**
* .xla.ChannelHandle.ChannelType channel_type = 1;
*/
public Builder clearChannelType() {
channelType_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.CreateChannelHandleRequest)
}
// @@protoc_insertion_point(class_scope:xla.CreateChannelHandleRequest)
private static final xla.Xla.CreateChannelHandleRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.CreateChannelHandleRequest();
}
public static xla.Xla.CreateChannelHandleRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateChannelHandleRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateChannelHandleRequest(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 xla.Xla.CreateChannelHandleRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateChannelHandleResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.CreateChannelHandleResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.ChannelHandle channel = 1;
*/
boolean hasChannel();
/**
* .xla.ChannelHandle channel = 1;
*/
xla.XlaData.ChannelHandle getChannel();
/**
* .xla.ChannelHandle channel = 1;
*/
xla.XlaData.ChannelHandleOrBuilder getChannelOrBuilder();
}
/**
* Protobuf type {@code xla.CreateChannelHandleResponse}
*/
public static final class CreateChannelHandleResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.CreateChannelHandleResponse)
CreateChannelHandleResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateChannelHandleResponse.newBuilder() to construct.
private CreateChannelHandleResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateChannelHandleResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateChannelHandleResponse(
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: {
xla.XlaData.ChannelHandle.Builder subBuilder = null;
if (channel_ != null) {
subBuilder = channel_.toBuilder();
}
channel_ = input.readMessage(xla.XlaData.ChannelHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(channel_);
channel_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_CreateChannelHandleResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_CreateChannelHandleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.CreateChannelHandleResponse.class, xla.Xla.CreateChannelHandleResponse.Builder.class);
}
public static final int CHANNEL_FIELD_NUMBER = 1;
private xla.XlaData.ChannelHandle channel_;
/**
* .xla.ChannelHandle channel = 1;
*/
public boolean hasChannel() {
return channel_ != null;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public xla.XlaData.ChannelHandle getChannel() {
return channel_ == null ? xla.XlaData.ChannelHandle.getDefaultInstance() : channel_;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public xla.XlaData.ChannelHandleOrBuilder getChannelOrBuilder() {
return getChannel();
}
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 (channel_ != null) {
output.writeMessage(1, getChannel());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (channel_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getChannel());
}
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 xla.Xla.CreateChannelHandleResponse)) {
return super.equals(obj);
}
xla.Xla.CreateChannelHandleResponse other = (xla.Xla.CreateChannelHandleResponse) obj;
boolean result = true;
result = result && (hasChannel() == other.hasChannel());
if (hasChannel()) {
result = result && getChannel()
.equals(other.getChannel());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasChannel()) {
hash = (37 * hash) + CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + getChannel().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.CreateChannelHandleResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.CreateChannelHandleResponse 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 xla.Xla.CreateChannelHandleResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.CreateChannelHandleResponse 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 xla.Xla.CreateChannelHandleResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.CreateChannelHandleResponse 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(xla.Xla.CreateChannelHandleResponse 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 xla.CreateChannelHandleResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.CreateChannelHandleResponse)
xla.Xla.CreateChannelHandleResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_CreateChannelHandleResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_CreateChannelHandleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.CreateChannelHandleResponse.class, xla.Xla.CreateChannelHandleResponse.Builder.class);
}
// Construct using xla.Xla.CreateChannelHandleResponse.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 (channelBuilder_ == null) {
channel_ = null;
} else {
channel_ = null;
channelBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_CreateChannelHandleResponse_descriptor;
}
@java.lang.Override
public xla.Xla.CreateChannelHandleResponse getDefaultInstanceForType() {
return xla.Xla.CreateChannelHandleResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.CreateChannelHandleResponse build() {
xla.Xla.CreateChannelHandleResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.CreateChannelHandleResponse buildPartial() {
xla.Xla.CreateChannelHandleResponse result = new xla.Xla.CreateChannelHandleResponse(this);
if (channelBuilder_ == null) {
result.channel_ = channel_;
} else {
result.channel_ = channelBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.CreateChannelHandleResponse) {
return mergeFrom((xla.Xla.CreateChannelHandleResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.CreateChannelHandleResponse other) {
if (other == xla.Xla.CreateChannelHandleResponse.getDefaultInstance()) return this;
if (other.hasChannel()) {
mergeChannel(other.getChannel());
}
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 {
xla.Xla.CreateChannelHandleResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.CreateChannelHandleResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.ChannelHandle channel_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ChannelHandle, xla.XlaData.ChannelHandle.Builder, xla.XlaData.ChannelHandleOrBuilder> channelBuilder_;
/**
* .xla.ChannelHandle channel = 1;
*/
public boolean hasChannel() {
return channelBuilder_ != null || channel_ != null;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public xla.XlaData.ChannelHandle getChannel() {
if (channelBuilder_ == null) {
return channel_ == null ? xla.XlaData.ChannelHandle.getDefaultInstance() : channel_;
} else {
return channelBuilder_.getMessage();
}
}
/**
* .xla.ChannelHandle channel = 1;
*/
public Builder setChannel(xla.XlaData.ChannelHandle value) {
if (channelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
channel_ = value;
onChanged();
} else {
channelBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public Builder setChannel(
xla.XlaData.ChannelHandle.Builder builderForValue) {
if (channelBuilder_ == null) {
channel_ = builderForValue.build();
onChanged();
} else {
channelBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public Builder mergeChannel(xla.XlaData.ChannelHandle value) {
if (channelBuilder_ == null) {
if (channel_ != null) {
channel_ =
xla.XlaData.ChannelHandle.newBuilder(channel_).mergeFrom(value).buildPartial();
} else {
channel_ = value;
}
onChanged();
} else {
channelBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public Builder clearChannel() {
if (channelBuilder_ == null) {
channel_ = null;
onChanged();
} else {
channel_ = null;
channelBuilder_ = null;
}
return this;
}
/**
* .xla.ChannelHandle channel = 1;
*/
public xla.XlaData.ChannelHandle.Builder getChannelBuilder() {
onChanged();
return getChannelFieldBuilder().getBuilder();
}
/**
* .xla.ChannelHandle channel = 1;
*/
public xla.XlaData.ChannelHandleOrBuilder getChannelOrBuilder() {
if (channelBuilder_ != null) {
return channelBuilder_.getMessageOrBuilder();
} else {
return channel_ == null ?
xla.XlaData.ChannelHandle.getDefaultInstance() : channel_;
}
}
/**
* .xla.ChannelHandle channel = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ChannelHandle, xla.XlaData.ChannelHandle.Builder, xla.XlaData.ChannelHandleOrBuilder>
getChannelFieldBuilder() {
if (channelBuilder_ == null) {
channelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ChannelHandle, xla.XlaData.ChannelHandle.Builder, xla.XlaData.ChannelHandleOrBuilder>(
getChannel(),
getParentForChildren(),
isClean());
channel_ = null;
}
return channelBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.CreateChannelHandleResponse)
}
// @@protoc_insertion_point(class_scope:xla.CreateChannelHandleResponse)
private static final xla.Xla.CreateChannelHandleResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.CreateChannelHandleResponse();
}
public static xla.Xla.CreateChannelHandleResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateChannelHandleResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateChannelHandleResponse(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 xla.Xla.CreateChannelHandleResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnregisterRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.UnregisterRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle data = 1;
*/
boolean hasData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandle getData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder();
}
/**
* Protobuf type {@code xla.UnregisterRequest}
*/
public static final class UnregisterRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.UnregisterRequest)
UnregisterRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnregisterRequest.newBuilder() to construct.
private UnregisterRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnregisterRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UnregisterRequest(
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: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_UnregisterRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_UnregisterRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.UnregisterRequest.class, xla.Xla.UnregisterRequest.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private xla.XlaData.GlobalDataHandle data_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
return getData();
}
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 (data_ != null) {
output.writeMessage(1, getData());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getData());
}
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 xla.Xla.UnregisterRequest)) {
return super.equals(obj);
}
xla.Xla.UnregisterRequest other = (xla.Xla.UnregisterRequest) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.UnregisterRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.UnregisterRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.UnregisterRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.UnregisterRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.UnregisterRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.UnregisterRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.UnregisterRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.UnregisterRequest 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 xla.Xla.UnregisterRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.UnregisterRequest 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 xla.Xla.UnregisterRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.UnregisterRequest 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(xla.Xla.UnregisterRequest 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 xla.UnregisterRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.UnregisterRequest)
xla.Xla.UnregisterRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_UnregisterRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_UnregisterRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.UnregisterRequest.class, xla.Xla.UnregisterRequest.Builder.class);
}
// Construct using xla.Xla.UnregisterRequest.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 (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_UnregisterRequest_descriptor;
}
@java.lang.Override
public xla.Xla.UnregisterRequest getDefaultInstanceForType() {
return xla.Xla.UnregisterRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.UnregisterRequest build() {
xla.Xla.UnregisterRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.UnregisterRequest buildPartial() {
xla.Xla.UnregisterRequest result = new xla.Xla.UnregisterRequest(this);
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.UnregisterRequest) {
return mergeFrom((xla.Xla.UnregisterRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.UnregisterRequest other) {
if (other == xla.Xla.UnregisterRequest.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
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 {
xla.Xla.UnregisterRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.UnregisterRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle data_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> dataBuilder_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
if (dataBuilder_ == null) {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder setData(xla.XlaData.GlobalDataHandle value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder setData(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder mergeData(xla.XlaData.GlobalDataHandle value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
xla.XlaData.GlobalDataHandle.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
}
/**
* .xla.GlobalDataHandle data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.UnregisterRequest)
}
// @@protoc_insertion_point(class_scope:xla.UnregisterRequest)
private static final xla.Xla.UnregisterRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.UnregisterRequest();
}
public static xla.Xla.UnregisterRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnregisterRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UnregisterRequest(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 xla.Xla.UnregisterRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnregisterResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.UnregisterResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code xla.UnregisterResponse}
*/
public static final class UnregisterResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.UnregisterResponse)
UnregisterResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnregisterResponse.newBuilder() to construct.
private UnregisterResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnregisterResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UnregisterResponse(
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;
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_UnregisterResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_UnregisterResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.UnregisterResponse.class, xla.Xla.UnregisterResponse.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 xla.Xla.UnregisterResponse)) {
return super.equals(obj);
}
xla.Xla.UnregisterResponse other = (xla.Xla.UnregisterResponse) obj;
boolean result = true;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.UnregisterResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.UnregisterResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.UnregisterResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.UnregisterResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.UnregisterResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.UnregisterResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.UnregisterResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.UnregisterResponse 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 xla.Xla.UnregisterResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.UnregisterResponse 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 xla.Xla.UnregisterResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.UnregisterResponse 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(xla.Xla.UnregisterResponse 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 xla.UnregisterResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.UnregisterResponse)
xla.Xla.UnregisterResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_UnregisterResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_UnregisterResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.UnregisterResponse.class, xla.Xla.UnregisterResponse.Builder.class);
}
// Construct using xla.Xla.UnregisterResponse.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_UnregisterResponse_descriptor;
}
@java.lang.Override
public xla.Xla.UnregisterResponse getDefaultInstanceForType() {
return xla.Xla.UnregisterResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.UnregisterResponse build() {
xla.Xla.UnregisterResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.UnregisterResponse buildPartial() {
xla.Xla.UnregisterResponse result = new xla.Xla.UnregisterResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.UnregisterResponse) {
return mergeFrom((xla.Xla.UnregisterResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.UnregisterResponse other) {
if (other == xla.Xla.UnregisterResponse.getDefaultInstance()) return this;
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 {
xla.Xla.UnregisterResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.UnregisterResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.UnregisterResponse)
}
// @@protoc_insertion_point(class_scope:xla.UnregisterResponse)
private static final xla.Xla.UnregisterResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.UnregisterResponse();
}
public static xla.Xla.UnregisterResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnregisterResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UnregisterResponse(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 xla.Xla.UnregisterResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteGraphRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ExecuteGraphRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.HloModuleProto computation = 1;
*/
boolean hasComputation();
/**
* .xla.HloModuleProto computation = 1;
*/
xla.Hlo.HloModuleProto getComputation();
/**
* .xla.HloModuleProto computation = 1;
*/
xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder();
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
java.util.List
getArgumentsList();
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
xla.XlaData.GlobalDataHandle getArguments(int index);
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
int getArgumentsCount();
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
java.util.List extends xla.XlaData.GlobalDataHandleOrBuilder>
getArgumentsOrBuilderList();
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
xla.XlaData.GlobalDataHandleOrBuilder getArgumentsOrBuilder(
int index);
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
boolean hasExecutionOptions();
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
xla.Xla.ExecutionOptions getExecutionOptions();
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
xla.Xla.ExecutionOptionsOrBuilder getExecutionOptionsOrBuilder();
}
/**
* Protobuf type {@code xla.ExecuteGraphRequest}
*/
public static final class ExecuteGraphRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ExecuteGraphRequest)
ExecuteGraphRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteGraphRequest.newBuilder() to construct.
private ExecuteGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteGraphRequest() {
arguments_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteGraphRequest(
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: {
xla.Hlo.HloModuleProto.Builder subBuilder = null;
if (computation_ != null) {
subBuilder = computation_.toBuilder();
}
computation_ = input.readMessage(xla.Hlo.HloModuleProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(computation_);
computation_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
arguments_.add(
input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry));
break;
}
case 26: {
xla.Xla.ExecutionOptions.Builder subBuilder = null;
if (executionOptions_ != null) {
subBuilder = executionOptions_.toBuilder();
}
executionOptions_ = input.readMessage(xla.Xla.ExecutionOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executionOptions_);
executionOptions_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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_ & 0x00000002) == 0x00000002)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteGraphRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteGraphRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteGraphRequest.class, xla.Xla.ExecuteGraphRequest.Builder.class);
}
private int bitField0_;
public static final int COMPUTATION_FIELD_NUMBER = 1;
private xla.Hlo.HloModuleProto computation_;
/**
* .xla.HloModuleProto computation = 1;
*/
public boolean hasComputation() {
return computation_ != null;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto getComputation() {
return computation_ == null ? xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder() {
return getComputation();
}
public static final int ARGUMENTS_FIELD_NUMBER = 2;
private java.util.List arguments_;
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public java.util.List getArgumentsList() {
return arguments_;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public java.util.List extends xla.XlaData.GlobalDataHandleOrBuilder>
getArgumentsOrBuilderList() {
return arguments_;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public int getArgumentsCount() {
return arguments_.size();
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandle getArguments(int index) {
return arguments_.get(index);
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getArgumentsOrBuilder(
int index) {
return arguments_.get(index);
}
public static final int EXECUTION_OPTIONS_FIELD_NUMBER = 3;
private xla.Xla.ExecutionOptions executionOptions_;
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public boolean hasExecutionOptions() {
return executionOptions_ != null;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public xla.Xla.ExecutionOptions getExecutionOptions() {
return executionOptions_ == null ? xla.Xla.ExecutionOptions.getDefaultInstance() : executionOptions_;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public xla.Xla.ExecutionOptionsOrBuilder getExecutionOptionsOrBuilder() {
return getExecutionOptions();
}
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 (computation_ != null) {
output.writeMessage(1, getComputation());
}
for (int i = 0; i < arguments_.size(); i++) {
output.writeMessage(2, arguments_.get(i));
}
if (executionOptions_ != null) {
output.writeMessage(3, getExecutionOptions());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (computation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getComputation());
}
for (int i = 0; i < arguments_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, arguments_.get(i));
}
if (executionOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExecutionOptions());
}
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 xla.Xla.ExecuteGraphRequest)) {
return super.equals(obj);
}
xla.Xla.ExecuteGraphRequest other = (xla.Xla.ExecuteGraphRequest) obj;
boolean result = true;
result = result && (hasComputation() == other.hasComputation());
if (hasComputation()) {
result = result && getComputation()
.equals(other.getComputation());
}
result = result && getArgumentsList()
.equals(other.getArgumentsList());
result = result && (hasExecutionOptions() == other.hasExecutionOptions());
if (hasExecutionOptions()) {
result = result && getExecutionOptions()
.equals(other.getExecutionOptions());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasComputation()) {
hash = (37 * hash) + COMPUTATION_FIELD_NUMBER;
hash = (53 * hash) + getComputation().hashCode();
}
if (getArgumentsCount() > 0) {
hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
hash = (53 * hash) + getArgumentsList().hashCode();
}
if (hasExecutionOptions()) {
hash = (37 * hash) + EXECUTION_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getExecutionOptions().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ExecuteGraphRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteGraphRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteGraphRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteGraphRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteGraphRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteGraphRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteGraphRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteGraphRequest 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 xla.Xla.ExecuteGraphRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteGraphRequest 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 xla.Xla.ExecuteGraphRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteGraphRequest 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(xla.Xla.ExecuteGraphRequest 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 xla.ExecuteGraphRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ExecuteGraphRequest)
xla.Xla.ExecuteGraphRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteGraphRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteGraphRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteGraphRequest.class, xla.Xla.ExecuteGraphRequest.Builder.class);
}
// Construct using xla.Xla.ExecuteGraphRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgumentsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (computationBuilder_ == null) {
computation_ = null;
} else {
computation_ = null;
computationBuilder_ = null;
}
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
argumentsBuilder_.clear();
}
if (executionOptionsBuilder_ == null) {
executionOptions_ = null;
} else {
executionOptions_ = null;
executionOptionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ExecuteGraphRequest_descriptor;
}
@java.lang.Override
public xla.Xla.ExecuteGraphRequest getDefaultInstanceForType() {
return xla.Xla.ExecuteGraphRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ExecuteGraphRequest build() {
xla.Xla.ExecuteGraphRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ExecuteGraphRequest buildPartial() {
xla.Xla.ExecuteGraphRequest result = new xla.Xla.ExecuteGraphRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (computationBuilder_ == null) {
result.computation_ = computation_;
} else {
result.computation_ = computationBuilder_.build();
}
if (argumentsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = java.util.Collections.unmodifiableList(arguments_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.arguments_ = arguments_;
} else {
result.arguments_ = argumentsBuilder_.build();
}
if (executionOptionsBuilder_ == null) {
result.executionOptions_ = executionOptions_;
} else {
result.executionOptions_ = executionOptionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ExecuteGraphRequest) {
return mergeFrom((xla.Xla.ExecuteGraphRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ExecuteGraphRequest other) {
if (other == xla.Xla.ExecuteGraphRequest.getDefaultInstance()) return this;
if (other.hasComputation()) {
mergeComputation(other.getComputation());
}
if (argumentsBuilder_ == null) {
if (!other.arguments_.isEmpty()) {
if (arguments_.isEmpty()) {
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureArgumentsIsMutable();
arguments_.addAll(other.arguments_);
}
onChanged();
}
} else {
if (!other.arguments_.isEmpty()) {
if (argumentsBuilder_.isEmpty()) {
argumentsBuilder_.dispose();
argumentsBuilder_ = null;
arguments_ = other.arguments_;
bitField0_ = (bitField0_ & ~0x00000002);
argumentsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getArgumentsFieldBuilder() : null;
} else {
argumentsBuilder_.addAllMessages(other.arguments_);
}
}
}
if (other.hasExecutionOptions()) {
mergeExecutionOptions(other.getExecutionOptions());
}
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 {
xla.Xla.ExecuteGraphRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ExecuteGraphRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private xla.Hlo.HloModuleProto computation_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder> computationBuilder_;
/**
* .xla.HloModuleProto computation = 1;
*/
public boolean hasComputation() {
return computationBuilder_ != null || computation_ != null;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto getComputation() {
if (computationBuilder_ == null) {
return computation_ == null ? xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
} else {
return computationBuilder_.getMessage();
}
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder setComputation(xla.Hlo.HloModuleProto value) {
if (computationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
computation_ = value;
onChanged();
} else {
computationBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder setComputation(
xla.Hlo.HloModuleProto.Builder builderForValue) {
if (computationBuilder_ == null) {
computation_ = builderForValue.build();
onChanged();
} else {
computationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder mergeComputation(xla.Hlo.HloModuleProto value) {
if (computationBuilder_ == null) {
if (computation_ != null) {
computation_ =
xla.Hlo.HloModuleProto.newBuilder(computation_).mergeFrom(value).buildPartial();
} else {
computation_ = value;
}
onChanged();
} else {
computationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder clearComputation() {
if (computationBuilder_ == null) {
computation_ = null;
onChanged();
} else {
computation_ = null;
computationBuilder_ = null;
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto.Builder getComputationBuilder() {
onChanged();
return getComputationFieldBuilder().getBuilder();
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder() {
if (computationBuilder_ != null) {
return computationBuilder_.getMessageOrBuilder();
} else {
return computation_ == null ?
xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
}
}
/**
* .xla.HloModuleProto computation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder>
getComputationFieldBuilder() {
if (computationBuilder_ == null) {
computationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder>(
getComputation(),
getParentForChildren(),
isClean());
computation_ = null;
}
return computationBuilder_;
}
private java.util.List arguments_ =
java.util.Collections.emptyList();
private void ensureArgumentsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
arguments_ = new java.util.ArrayList(arguments_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> argumentsBuilder_;
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public java.util.List getArgumentsList() {
if (argumentsBuilder_ == null) {
return java.util.Collections.unmodifiableList(arguments_);
} else {
return argumentsBuilder_.getMessageList();
}
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public int getArgumentsCount() {
if (argumentsBuilder_ == null) {
return arguments_.size();
} else {
return argumentsBuilder_.getCount();
}
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandle getArguments(int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index);
} else {
return argumentsBuilder_.getMessage(index);
}
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder setArguments(
int index, xla.XlaData.GlobalDataHandle value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.set(index, value);
onChanged();
} else {
argumentsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder setArguments(
int index, xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.set(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder addArguments(xla.XlaData.GlobalDataHandle value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(value);
onChanged();
} else {
argumentsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder addArguments(
int index, xla.XlaData.GlobalDataHandle value) {
if (argumentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentsIsMutable();
arguments_.add(index, value);
onChanged();
} else {
argumentsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder addArguments(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder addArguments(
int index, xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.add(index, builderForValue.build());
onChanged();
} else {
argumentsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder addAllArguments(
java.lang.Iterable extends xla.XlaData.GlobalDataHandle> values) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, arguments_);
onChanged();
} else {
argumentsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder clearArguments() {
if (argumentsBuilder_ == null) {
arguments_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
argumentsBuilder_.clear();
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public Builder removeArguments(int index) {
if (argumentsBuilder_ == null) {
ensureArgumentsIsMutable();
arguments_.remove(index);
onChanged();
} else {
argumentsBuilder_.remove(index);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandle.Builder getArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().getBuilder(index);
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getArgumentsOrBuilder(
int index) {
if (argumentsBuilder_ == null) {
return arguments_.get(index); } else {
return argumentsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public java.util.List extends xla.XlaData.GlobalDataHandleOrBuilder>
getArgumentsOrBuilderList() {
if (argumentsBuilder_ != null) {
return argumentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(arguments_);
}
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandle.Builder addArgumentsBuilder() {
return getArgumentsFieldBuilder().addBuilder(
xla.XlaData.GlobalDataHandle.getDefaultInstance());
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public xla.XlaData.GlobalDataHandle.Builder addArgumentsBuilder(
int index) {
return getArgumentsFieldBuilder().addBuilder(
index, xla.XlaData.GlobalDataHandle.getDefaultInstance());
}
/**
* repeated .xla.GlobalDataHandle arguments = 2;
*/
public java.util.List
getArgumentsBuilderList() {
return getArgumentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getArgumentsFieldBuilder() {
if (argumentsBuilder_ == null) {
argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
arguments_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
arguments_ = null;
}
return argumentsBuilder_;
}
private xla.Xla.ExecutionOptions executionOptions_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.ExecutionOptions, xla.Xla.ExecutionOptions.Builder, xla.Xla.ExecutionOptionsOrBuilder> executionOptionsBuilder_;
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public boolean hasExecutionOptions() {
return executionOptionsBuilder_ != null || executionOptions_ != null;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public xla.Xla.ExecutionOptions getExecutionOptions() {
if (executionOptionsBuilder_ == null) {
return executionOptions_ == null ? xla.Xla.ExecutionOptions.getDefaultInstance() : executionOptions_;
} else {
return executionOptionsBuilder_.getMessage();
}
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public Builder setExecutionOptions(xla.Xla.ExecutionOptions value) {
if (executionOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executionOptions_ = value;
onChanged();
} else {
executionOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public Builder setExecutionOptions(
xla.Xla.ExecutionOptions.Builder builderForValue) {
if (executionOptionsBuilder_ == null) {
executionOptions_ = builderForValue.build();
onChanged();
} else {
executionOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public Builder mergeExecutionOptions(xla.Xla.ExecutionOptions value) {
if (executionOptionsBuilder_ == null) {
if (executionOptions_ != null) {
executionOptions_ =
xla.Xla.ExecutionOptions.newBuilder(executionOptions_).mergeFrom(value).buildPartial();
} else {
executionOptions_ = value;
}
onChanged();
} else {
executionOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public Builder clearExecutionOptions() {
if (executionOptionsBuilder_ == null) {
executionOptions_ = null;
onChanged();
} else {
executionOptions_ = null;
executionOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public xla.Xla.ExecutionOptions.Builder getExecutionOptionsBuilder() {
onChanged();
return getExecutionOptionsFieldBuilder().getBuilder();
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
public xla.Xla.ExecutionOptionsOrBuilder getExecutionOptionsOrBuilder() {
if (executionOptionsBuilder_ != null) {
return executionOptionsBuilder_.getMessageOrBuilder();
} else {
return executionOptions_ == null ?
xla.Xla.ExecutionOptions.getDefaultInstance() : executionOptions_;
}
}
/**
*
* Options that affect how XLA compiles and runs code to service this request.
*
*
* .xla.ExecutionOptions execution_options = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.ExecutionOptions, xla.Xla.ExecutionOptions.Builder, xla.Xla.ExecutionOptionsOrBuilder>
getExecutionOptionsFieldBuilder() {
if (executionOptionsBuilder_ == null) {
executionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.Xla.ExecutionOptions, xla.Xla.ExecutionOptions.Builder, xla.Xla.ExecutionOptionsOrBuilder>(
getExecutionOptions(),
getParentForChildren(),
isClean());
executionOptions_ = null;
}
return executionOptionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ExecuteGraphRequest)
}
// @@protoc_insertion_point(class_scope:xla.ExecuteGraphRequest)
private static final xla.Xla.ExecuteGraphRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ExecuteGraphRequest();
}
public static xla.Xla.ExecuteGraphRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteGraphRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteGraphRequest(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 xla.Xla.ExecuteGraphRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteGraphParallelRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ExecuteGraphParallelRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
java.util.List
getRequestsList();
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
xla.Xla.ExecuteGraphRequest getRequests(int index);
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
int getRequestsCount();
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
java.util.List extends xla.Xla.ExecuteGraphRequestOrBuilder>
getRequestsOrBuilderList();
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
xla.Xla.ExecuteGraphRequestOrBuilder getRequestsOrBuilder(
int index);
}
/**
* Protobuf type {@code xla.ExecuteGraphParallelRequest}
*/
public static final class ExecuteGraphParallelRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ExecuteGraphParallelRequest)
ExecuteGraphParallelRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteGraphParallelRequest.newBuilder() to construct.
private ExecuteGraphParallelRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteGraphParallelRequest() {
requests_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteGraphParallelRequest(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
requests_.add(
input.readMessage(xla.Xla.ExecuteGraphRequest.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteGraphParallelRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteGraphParallelRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteGraphParallelRequest.class, xla.Xla.ExecuteGraphParallelRequest.Builder.class);
}
public static final int REQUESTS_FIELD_NUMBER = 1;
private java.util.List requests_;
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public java.util.List getRequestsList() {
return requests_;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public java.util.List extends xla.Xla.ExecuteGraphRequestOrBuilder>
getRequestsOrBuilderList() {
return requests_;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public int getRequestsCount() {
return requests_.size();
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequest getRequests(int index) {
return requests_.get(index);
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequestOrBuilder getRequestsOrBuilder(
int index) {
return requests_.get(index);
}
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 {
for (int i = 0; i < requests_.size(); i++) {
output.writeMessage(1, requests_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < requests_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, requests_.get(i));
}
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 xla.Xla.ExecuteGraphParallelRequest)) {
return super.equals(obj);
}
xla.Xla.ExecuteGraphParallelRequest other = (xla.Xla.ExecuteGraphParallelRequest) obj;
boolean result = true;
result = result && getRequestsList()
.equals(other.getRequestsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRequestsCount() > 0) {
hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getRequestsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteGraphParallelRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteGraphParallelRequest 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 xla.Xla.ExecuteGraphParallelRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteGraphParallelRequest 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 xla.Xla.ExecuteGraphParallelRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteGraphParallelRequest 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(xla.Xla.ExecuteGraphParallelRequest 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 xla.ExecuteGraphParallelRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ExecuteGraphParallelRequest)
xla.Xla.ExecuteGraphParallelRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteGraphParallelRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteGraphParallelRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteGraphParallelRequest.class, xla.Xla.ExecuteGraphParallelRequest.Builder.class);
}
// Construct using xla.Xla.ExecuteGraphParallelRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRequestsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
requestsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ExecuteGraphParallelRequest_descriptor;
}
@java.lang.Override
public xla.Xla.ExecuteGraphParallelRequest getDefaultInstanceForType() {
return xla.Xla.ExecuteGraphParallelRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ExecuteGraphParallelRequest build() {
xla.Xla.ExecuteGraphParallelRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ExecuteGraphParallelRequest buildPartial() {
xla.Xla.ExecuteGraphParallelRequest result = new xla.Xla.ExecuteGraphParallelRequest(this);
int from_bitField0_ = bitField0_;
if (requestsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = java.util.Collections.unmodifiableList(requests_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requests_ = requests_;
} else {
result.requests_ = requestsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ExecuteGraphParallelRequest) {
return mergeFrom((xla.Xla.ExecuteGraphParallelRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ExecuteGraphParallelRequest other) {
if (other == xla.Xla.ExecuteGraphParallelRequest.getDefaultInstance()) return this;
if (requestsBuilder_ == null) {
if (!other.requests_.isEmpty()) {
if (requests_.isEmpty()) {
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestsIsMutable();
requests_.addAll(other.requests_);
}
onChanged();
}
} else {
if (!other.requests_.isEmpty()) {
if (requestsBuilder_.isEmpty()) {
requestsBuilder_.dispose();
requestsBuilder_ = null;
requests_ = other.requests_;
bitField0_ = (bitField0_ & ~0x00000001);
requestsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRequestsFieldBuilder() : null;
} else {
requestsBuilder_.addAllMessages(other.requests_);
}
}
}
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 {
xla.Xla.ExecuteGraphParallelRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ExecuteGraphParallelRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List requests_ =
java.util.Collections.emptyList();
private void ensureRequestsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
requests_ = new java.util.ArrayList(requests_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.ExecuteGraphRequest, xla.Xla.ExecuteGraphRequest.Builder, xla.Xla.ExecuteGraphRequestOrBuilder> requestsBuilder_;
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public java.util.List getRequestsList() {
if (requestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(requests_);
} else {
return requestsBuilder_.getMessageList();
}
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public int getRequestsCount() {
if (requestsBuilder_ == null) {
return requests_.size();
} else {
return requestsBuilder_.getCount();
}
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequest getRequests(int index) {
if (requestsBuilder_ == null) {
return requests_.get(index);
} else {
return requestsBuilder_.getMessage(index);
}
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder setRequests(
int index, xla.Xla.ExecuteGraphRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.set(index, value);
onChanged();
} else {
requestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder setRequests(
int index, xla.Xla.ExecuteGraphRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.set(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder addRequests(xla.Xla.ExecuteGraphRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(value);
onChanged();
} else {
requestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder addRequests(
int index, xla.Xla.ExecuteGraphRequest value) {
if (requestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestsIsMutable();
requests_.add(index, value);
onChanged();
} else {
requestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder addRequests(
xla.Xla.ExecuteGraphRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder addRequests(
int index, xla.Xla.ExecuteGraphRequest.Builder builderForValue) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.add(index, builderForValue.build());
onChanged();
} else {
requestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder addAllRequests(
java.lang.Iterable extends xla.Xla.ExecuteGraphRequest> values) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requests_);
onChanged();
} else {
requestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder clearRequests() {
if (requestsBuilder_ == null) {
requests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestsBuilder_.clear();
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public Builder removeRequests(int index) {
if (requestsBuilder_ == null) {
ensureRequestsIsMutable();
requests_.remove(index);
onChanged();
} else {
requestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequest.Builder getRequestsBuilder(
int index) {
return getRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequestOrBuilder getRequestsOrBuilder(
int index) {
if (requestsBuilder_ == null) {
return requests_.get(index); } else {
return requestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public java.util.List extends xla.Xla.ExecuteGraphRequestOrBuilder>
getRequestsOrBuilderList() {
if (requestsBuilder_ != null) {
return requestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requests_);
}
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequest.Builder addRequestsBuilder() {
return getRequestsFieldBuilder().addBuilder(
xla.Xla.ExecuteGraphRequest.getDefaultInstance());
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public xla.Xla.ExecuteGraphRequest.Builder addRequestsBuilder(
int index) {
return getRequestsFieldBuilder().addBuilder(
index, xla.Xla.ExecuteGraphRequest.getDefaultInstance());
}
/**
* repeated .xla.ExecuteGraphRequest requests = 1;
*/
public java.util.List
getRequestsBuilderList() {
return getRequestsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.ExecuteGraphRequest, xla.Xla.ExecuteGraphRequest.Builder, xla.Xla.ExecuteGraphRequestOrBuilder>
getRequestsFieldBuilder() {
if (requestsBuilder_ == null) {
requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.ExecuteGraphRequest, xla.Xla.ExecuteGraphRequest.Builder, xla.Xla.ExecuteGraphRequestOrBuilder>(
requests_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
requests_ = null;
}
return requestsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ExecuteGraphParallelRequest)
}
// @@protoc_insertion_point(class_scope:xla.ExecuteGraphParallelRequest)
private static final xla.Xla.ExecuteGraphParallelRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ExecuteGraphParallelRequest();
}
public static xla.Xla.ExecuteGraphParallelRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteGraphParallelRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteGraphParallelRequest(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 xla.Xla.ExecuteGraphParallelRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ExecuteResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle output = 1;
*/
boolean hasOutput();
/**
* .xla.GlobalDataHandle output = 1;
*/
xla.XlaData.GlobalDataHandle getOutput();
/**
* .xla.GlobalDataHandle output = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getOutputOrBuilder();
/**
* .xla.ExecutionProfile profile = 2;
*/
boolean hasProfile();
/**
* .xla.ExecutionProfile profile = 2;
*/
xla.XlaData.ExecutionProfile getProfile();
/**
* .xla.ExecutionProfile profile = 2;
*/
xla.XlaData.ExecutionProfileOrBuilder getProfileOrBuilder();
}
/**
* Protobuf type {@code xla.ExecuteResponse}
*/
public static final class ExecuteResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ExecuteResponse)
ExecuteResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteResponse.newBuilder() to construct.
private ExecuteResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteResponse(
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: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (output_ != null) {
subBuilder = output_.toBuilder();
}
output_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(output_);
output_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.XlaData.ExecutionProfile.Builder subBuilder = null;
if (profile_ != null) {
subBuilder = profile_.toBuilder();
}
profile_ = input.readMessage(xla.XlaData.ExecutionProfile.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(profile_);
profile_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ExecuteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteResponse.class, xla.Xla.ExecuteResponse.Builder.class);
}
public static final int OUTPUT_FIELD_NUMBER = 1;
private xla.XlaData.GlobalDataHandle output_;
/**
* .xla.GlobalDataHandle output = 1;
*/
public boolean hasOutput() {
return output_ != null;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandle getOutput() {
return output_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : output_;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getOutputOrBuilder() {
return getOutput();
}
public static final int PROFILE_FIELD_NUMBER = 2;
private xla.XlaData.ExecutionProfile profile_;
/**
* .xla.ExecutionProfile profile = 2;
*/
public boolean hasProfile() {
return profile_ != null;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfile getProfile() {
return profile_ == null ? xla.XlaData.ExecutionProfile.getDefaultInstance() : profile_;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfileOrBuilder getProfileOrBuilder() {
return getProfile();
}
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 (output_ != null) {
output.writeMessage(1, getOutput());
}
if (profile_ != null) {
output.writeMessage(2, getProfile());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (output_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOutput());
}
if (profile_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getProfile());
}
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 xla.Xla.ExecuteResponse)) {
return super.equals(obj);
}
xla.Xla.ExecuteResponse other = (xla.Xla.ExecuteResponse) obj;
boolean result = true;
result = result && (hasOutput() == other.hasOutput());
if (hasOutput()) {
result = result && getOutput()
.equals(other.getOutput());
}
result = result && (hasProfile() == other.hasProfile());
if (hasProfile()) {
result = result && getProfile()
.equals(other.getProfile());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOutput()) {
hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getOutput().hashCode();
}
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ExecuteResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteResponse 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 xla.Xla.ExecuteResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteResponse 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 xla.Xla.ExecuteResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteResponse 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(xla.Xla.ExecuteResponse 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 xla.ExecuteResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ExecuteResponse)
xla.Xla.ExecuteResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteResponse.class, xla.Xla.ExecuteResponse.Builder.class);
}
// Construct using xla.Xla.ExecuteResponse.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 (outputBuilder_ == null) {
output_ = null;
} else {
output_ = null;
outputBuilder_ = null;
}
if (profileBuilder_ == null) {
profile_ = null;
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ExecuteResponse_descriptor;
}
@java.lang.Override
public xla.Xla.ExecuteResponse getDefaultInstanceForType() {
return xla.Xla.ExecuteResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ExecuteResponse build() {
xla.Xla.ExecuteResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ExecuteResponse buildPartial() {
xla.Xla.ExecuteResponse result = new xla.Xla.ExecuteResponse(this);
if (outputBuilder_ == null) {
result.output_ = output_;
} else {
result.output_ = outputBuilder_.build();
}
if (profileBuilder_ == null) {
result.profile_ = profile_;
} else {
result.profile_ = profileBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ExecuteResponse) {
return mergeFrom((xla.Xla.ExecuteResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ExecuteResponse other) {
if (other == xla.Xla.ExecuteResponse.getDefaultInstance()) return this;
if (other.hasOutput()) {
mergeOutput(other.getOutput());
}
if (other.hasProfile()) {
mergeProfile(other.getProfile());
}
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 {
xla.Xla.ExecuteResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ExecuteResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle output_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> outputBuilder_;
/**
* .xla.GlobalDataHandle output = 1;
*/
public boolean hasOutput() {
return outputBuilder_ != null || output_ != null;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandle getOutput() {
if (outputBuilder_ == null) {
return output_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : output_;
} else {
return outputBuilder_.getMessage();
}
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder setOutput(xla.XlaData.GlobalDataHandle value) {
if (outputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
output_ = value;
onChanged();
} else {
outputBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder setOutput(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (outputBuilder_ == null) {
output_ = builderForValue.build();
onChanged();
} else {
outputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder mergeOutput(xla.XlaData.GlobalDataHandle value) {
if (outputBuilder_ == null) {
if (output_ != null) {
output_ =
xla.XlaData.GlobalDataHandle.newBuilder(output_).mergeFrom(value).buildPartial();
} else {
output_ = value;
}
onChanged();
} else {
outputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder clearOutput() {
if (outputBuilder_ == null) {
output_ = null;
onChanged();
} else {
output_ = null;
outputBuilder_ = null;
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder getOutputBuilder() {
onChanged();
return getOutputFieldBuilder().getBuilder();
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getOutputOrBuilder() {
if (outputBuilder_ != null) {
return outputBuilder_.getMessageOrBuilder();
} else {
return output_ == null ?
xla.XlaData.GlobalDataHandle.getDefaultInstance() : output_;
}
}
/**
* .xla.GlobalDataHandle output = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getOutputFieldBuilder() {
if (outputBuilder_ == null) {
outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
getOutput(),
getParentForChildren(),
isClean());
output_ = null;
}
return outputBuilder_;
}
private xla.XlaData.ExecutionProfile profile_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionProfile, xla.XlaData.ExecutionProfile.Builder, xla.XlaData.ExecutionProfileOrBuilder> profileBuilder_;
/**
* .xla.ExecutionProfile profile = 2;
*/
public boolean hasProfile() {
return profileBuilder_ != null || profile_ != null;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfile getProfile() {
if (profileBuilder_ == null) {
return profile_ == null ? xla.XlaData.ExecutionProfile.getDefaultInstance() : profile_;
} else {
return profileBuilder_.getMessage();
}
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder setProfile(xla.XlaData.ExecutionProfile value) {
if (profileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profile_ = value;
onChanged();
} else {
profileBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder setProfile(
xla.XlaData.ExecutionProfile.Builder builderForValue) {
if (profileBuilder_ == null) {
profile_ = builderForValue.build();
onChanged();
} else {
profileBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder mergeProfile(xla.XlaData.ExecutionProfile value) {
if (profileBuilder_ == null) {
if (profile_ != null) {
profile_ =
xla.XlaData.ExecutionProfile.newBuilder(profile_).mergeFrom(value).buildPartial();
} else {
profile_ = value;
}
onChanged();
} else {
profileBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
profile_ = null;
onChanged();
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfile.Builder getProfileBuilder() {
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfileOrBuilder getProfileOrBuilder() {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
return profile_ == null ?
xla.XlaData.ExecutionProfile.getDefaultInstance() : profile_;
}
}
/**
* .xla.ExecutionProfile profile = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionProfile, xla.XlaData.ExecutionProfile.Builder, xla.XlaData.ExecutionProfileOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionProfile, xla.XlaData.ExecutionProfile.Builder, xla.XlaData.ExecutionProfileOrBuilder>(
getProfile(),
getParentForChildren(),
isClean());
profile_ = null;
}
return profileBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ExecuteResponse)
}
// @@protoc_insertion_point(class_scope:xla.ExecuteResponse)
private static final xla.Xla.ExecuteResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ExecuteResponse();
}
public static xla.Xla.ExecuteResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteResponse(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 xla.Xla.ExecuteResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecuteParallelResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ExecuteParallelResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
java.util.List
getResponsesList();
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
xla.Xla.ExecuteResponse getResponses(int index);
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
int getResponsesCount();
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
java.util.List extends xla.Xla.ExecuteResponseOrBuilder>
getResponsesOrBuilderList();
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
xla.Xla.ExecuteResponseOrBuilder getResponsesOrBuilder(
int index);
}
/**
* Protobuf type {@code xla.ExecuteParallelResponse}
*/
public static final class ExecuteParallelResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ExecuteParallelResponse)
ExecuteParallelResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteParallelResponse.newBuilder() to construct.
private ExecuteParallelResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecuteParallelResponse() {
responses_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteParallelResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
responses_.add(
input.readMessage(xla.Xla.ExecuteResponse.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteParallelResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteParallelResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteParallelResponse.class, xla.Xla.ExecuteParallelResponse.Builder.class);
}
public static final int RESPONSES_FIELD_NUMBER = 1;
private java.util.List responses_;
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public java.util.List getResponsesList() {
return responses_;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public java.util.List extends xla.Xla.ExecuteResponseOrBuilder>
getResponsesOrBuilderList() {
return responses_;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public int getResponsesCount() {
return responses_.size();
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponse getResponses(int index) {
return responses_.get(index);
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponseOrBuilder getResponsesOrBuilder(
int index) {
return responses_.get(index);
}
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 {
for (int i = 0; i < responses_.size(); i++) {
output.writeMessage(1, responses_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < responses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, responses_.get(i));
}
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 xla.Xla.ExecuteParallelResponse)) {
return super.equals(obj);
}
xla.Xla.ExecuteParallelResponse other = (xla.Xla.ExecuteParallelResponse) obj;
boolean result = true;
result = result && getResponsesList()
.equals(other.getResponsesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResponsesCount() > 0) {
hash = (37 * hash) + RESPONSES_FIELD_NUMBER;
hash = (53 * hash) + getResponsesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ExecuteParallelResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteParallelResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteParallelResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteParallelResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteParallelResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ExecuteParallelResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ExecuteParallelResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteParallelResponse 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 xla.Xla.ExecuteParallelResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteParallelResponse 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 xla.Xla.ExecuteParallelResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ExecuteParallelResponse 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(xla.Xla.ExecuteParallelResponse 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 xla.ExecuteParallelResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ExecuteParallelResponse)
xla.Xla.ExecuteParallelResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ExecuteParallelResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ExecuteParallelResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ExecuteParallelResponse.class, xla.Xla.ExecuteParallelResponse.Builder.class);
}
// Construct using xla.Xla.ExecuteParallelResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResponsesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (responsesBuilder_ == null) {
responses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
responsesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ExecuteParallelResponse_descriptor;
}
@java.lang.Override
public xla.Xla.ExecuteParallelResponse getDefaultInstanceForType() {
return xla.Xla.ExecuteParallelResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ExecuteParallelResponse build() {
xla.Xla.ExecuteParallelResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ExecuteParallelResponse buildPartial() {
xla.Xla.ExecuteParallelResponse result = new xla.Xla.ExecuteParallelResponse(this);
int from_bitField0_ = bitField0_;
if (responsesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = java.util.Collections.unmodifiableList(responses_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.responses_ = responses_;
} else {
result.responses_ = responsesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ExecuteParallelResponse) {
return mergeFrom((xla.Xla.ExecuteParallelResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ExecuteParallelResponse other) {
if (other == xla.Xla.ExecuteParallelResponse.getDefaultInstance()) return this;
if (responsesBuilder_ == null) {
if (!other.responses_.isEmpty()) {
if (responses_.isEmpty()) {
responses_ = other.responses_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponsesIsMutable();
responses_.addAll(other.responses_);
}
onChanged();
}
} else {
if (!other.responses_.isEmpty()) {
if (responsesBuilder_.isEmpty()) {
responsesBuilder_.dispose();
responsesBuilder_ = null;
responses_ = other.responses_;
bitField0_ = (bitField0_ & ~0x00000001);
responsesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponsesFieldBuilder() : null;
} else {
responsesBuilder_.addAllMessages(other.responses_);
}
}
}
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 {
xla.Xla.ExecuteParallelResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ExecuteParallelResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List responses_ =
java.util.Collections.emptyList();
private void ensureResponsesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
responses_ = new java.util.ArrayList(responses_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.ExecuteResponse, xla.Xla.ExecuteResponse.Builder, xla.Xla.ExecuteResponseOrBuilder> responsesBuilder_;
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public java.util.List getResponsesList() {
if (responsesBuilder_ == null) {
return java.util.Collections.unmodifiableList(responses_);
} else {
return responsesBuilder_.getMessageList();
}
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public int getResponsesCount() {
if (responsesBuilder_ == null) {
return responses_.size();
} else {
return responsesBuilder_.getCount();
}
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponse getResponses(int index) {
if (responsesBuilder_ == null) {
return responses_.get(index);
} else {
return responsesBuilder_.getMessage(index);
}
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder setResponses(
int index, xla.Xla.ExecuteResponse value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.set(index, value);
onChanged();
} else {
responsesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder setResponses(
int index, xla.Xla.ExecuteResponse.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.set(index, builderForValue.build());
onChanged();
} else {
responsesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder addResponses(xla.Xla.ExecuteResponse value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.add(value);
onChanged();
} else {
responsesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder addResponses(
int index, xla.Xla.ExecuteResponse value) {
if (responsesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsesIsMutable();
responses_.add(index, value);
onChanged();
} else {
responsesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder addResponses(
xla.Xla.ExecuteResponse.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(builderForValue.build());
onChanged();
} else {
responsesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder addResponses(
int index, xla.Xla.ExecuteResponse.Builder builderForValue) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.add(index, builderForValue.build());
onChanged();
} else {
responsesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder addAllResponses(
java.lang.Iterable extends xla.Xla.ExecuteResponse> values) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, responses_);
onChanged();
} else {
responsesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder clearResponses() {
if (responsesBuilder_ == null) {
responses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
responsesBuilder_.clear();
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public Builder removeResponses(int index) {
if (responsesBuilder_ == null) {
ensureResponsesIsMutable();
responses_.remove(index);
onChanged();
} else {
responsesBuilder_.remove(index);
}
return this;
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponse.Builder getResponsesBuilder(
int index) {
return getResponsesFieldBuilder().getBuilder(index);
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponseOrBuilder getResponsesOrBuilder(
int index) {
if (responsesBuilder_ == null) {
return responses_.get(index); } else {
return responsesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public java.util.List extends xla.Xla.ExecuteResponseOrBuilder>
getResponsesOrBuilderList() {
if (responsesBuilder_ != null) {
return responsesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(responses_);
}
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponse.Builder addResponsesBuilder() {
return getResponsesFieldBuilder().addBuilder(
xla.Xla.ExecuteResponse.getDefaultInstance());
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public xla.Xla.ExecuteResponse.Builder addResponsesBuilder(
int index) {
return getResponsesFieldBuilder().addBuilder(
index, xla.Xla.ExecuteResponse.getDefaultInstance());
}
/**
* repeated .xla.ExecuteResponse responses = 1;
*/
public java.util.List
getResponsesBuilderList() {
return getResponsesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.ExecuteResponse, xla.Xla.ExecuteResponse.Builder, xla.Xla.ExecuteResponseOrBuilder>
getResponsesFieldBuilder() {
if (responsesBuilder_ == null) {
responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.Xla.ExecuteResponse, xla.Xla.ExecuteResponse.Builder, xla.Xla.ExecuteResponseOrBuilder>(
responses_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
responses_ = null;
}
return responsesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ExecuteParallelResponse)
}
// @@protoc_insertion_point(class_scope:xla.ExecuteParallelResponse)
private static final xla.Xla.ExecuteParallelResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ExecuteParallelResponse();
}
public static xla.Xla.ExecuteParallelResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecuteParallelResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteParallelResponse(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 xla.Xla.ExecuteParallelResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WaitForExecutionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.WaitForExecutionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.ExecutionHandle execution = 1;
*/
boolean hasExecution();
/**
* .xla.ExecutionHandle execution = 1;
*/
xla.XlaData.ExecutionHandle getExecution();
/**
* .xla.ExecutionHandle execution = 1;
*/
xla.XlaData.ExecutionHandleOrBuilder getExecutionOrBuilder();
}
/**
* Protobuf type {@code xla.WaitForExecutionRequest}
*/
public static final class WaitForExecutionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.WaitForExecutionRequest)
WaitForExecutionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use WaitForExecutionRequest.newBuilder() to construct.
private WaitForExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WaitForExecutionRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WaitForExecutionRequest(
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: {
xla.XlaData.ExecutionHandle.Builder subBuilder = null;
if (execution_ != null) {
subBuilder = execution_.toBuilder();
}
execution_ = input.readMessage(xla.XlaData.ExecutionHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(execution_);
execution_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_WaitForExecutionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_WaitForExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.WaitForExecutionRequest.class, xla.Xla.WaitForExecutionRequest.Builder.class);
}
public static final int EXECUTION_FIELD_NUMBER = 1;
private xla.XlaData.ExecutionHandle execution_;
/**
* .xla.ExecutionHandle execution = 1;
*/
public boolean hasExecution() {
return execution_ != null;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public xla.XlaData.ExecutionHandle getExecution() {
return execution_ == null ? xla.XlaData.ExecutionHandle.getDefaultInstance() : execution_;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public xla.XlaData.ExecutionHandleOrBuilder getExecutionOrBuilder() {
return getExecution();
}
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 (execution_ != null) {
output.writeMessage(1, getExecution());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (execution_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExecution());
}
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 xla.Xla.WaitForExecutionRequest)) {
return super.equals(obj);
}
xla.Xla.WaitForExecutionRequest other = (xla.Xla.WaitForExecutionRequest) obj;
boolean result = true;
result = result && (hasExecution() == other.hasExecution());
if (hasExecution()) {
result = result && getExecution()
.equals(other.getExecution());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExecution()) {
hash = (37 * hash) + EXECUTION_FIELD_NUMBER;
hash = (53 * hash) + getExecution().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.WaitForExecutionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.WaitForExecutionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.WaitForExecutionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.WaitForExecutionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.WaitForExecutionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.WaitForExecutionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.WaitForExecutionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.WaitForExecutionRequest 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 xla.Xla.WaitForExecutionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.WaitForExecutionRequest 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 xla.Xla.WaitForExecutionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.WaitForExecutionRequest 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(xla.Xla.WaitForExecutionRequest 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 xla.WaitForExecutionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.WaitForExecutionRequest)
xla.Xla.WaitForExecutionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_WaitForExecutionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_WaitForExecutionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.WaitForExecutionRequest.class, xla.Xla.WaitForExecutionRequest.Builder.class);
}
// Construct using xla.Xla.WaitForExecutionRequest.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 (executionBuilder_ == null) {
execution_ = null;
} else {
execution_ = null;
executionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_WaitForExecutionRequest_descriptor;
}
@java.lang.Override
public xla.Xla.WaitForExecutionRequest getDefaultInstanceForType() {
return xla.Xla.WaitForExecutionRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.WaitForExecutionRequest build() {
xla.Xla.WaitForExecutionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.WaitForExecutionRequest buildPartial() {
xla.Xla.WaitForExecutionRequest result = new xla.Xla.WaitForExecutionRequest(this);
if (executionBuilder_ == null) {
result.execution_ = execution_;
} else {
result.execution_ = executionBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.WaitForExecutionRequest) {
return mergeFrom((xla.Xla.WaitForExecutionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.WaitForExecutionRequest other) {
if (other == xla.Xla.WaitForExecutionRequest.getDefaultInstance()) return this;
if (other.hasExecution()) {
mergeExecution(other.getExecution());
}
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 {
xla.Xla.WaitForExecutionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.WaitForExecutionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.ExecutionHandle execution_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionHandle, xla.XlaData.ExecutionHandle.Builder, xla.XlaData.ExecutionHandleOrBuilder> executionBuilder_;
/**
* .xla.ExecutionHandle execution = 1;
*/
public boolean hasExecution() {
return executionBuilder_ != null || execution_ != null;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public xla.XlaData.ExecutionHandle getExecution() {
if (executionBuilder_ == null) {
return execution_ == null ? xla.XlaData.ExecutionHandle.getDefaultInstance() : execution_;
} else {
return executionBuilder_.getMessage();
}
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public Builder setExecution(xla.XlaData.ExecutionHandle value) {
if (executionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
execution_ = value;
onChanged();
} else {
executionBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public Builder setExecution(
xla.XlaData.ExecutionHandle.Builder builderForValue) {
if (executionBuilder_ == null) {
execution_ = builderForValue.build();
onChanged();
} else {
executionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public Builder mergeExecution(xla.XlaData.ExecutionHandle value) {
if (executionBuilder_ == null) {
if (execution_ != null) {
execution_ =
xla.XlaData.ExecutionHandle.newBuilder(execution_).mergeFrom(value).buildPartial();
} else {
execution_ = value;
}
onChanged();
} else {
executionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public Builder clearExecution() {
if (executionBuilder_ == null) {
execution_ = null;
onChanged();
} else {
execution_ = null;
executionBuilder_ = null;
}
return this;
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public xla.XlaData.ExecutionHandle.Builder getExecutionBuilder() {
onChanged();
return getExecutionFieldBuilder().getBuilder();
}
/**
* .xla.ExecutionHandle execution = 1;
*/
public xla.XlaData.ExecutionHandleOrBuilder getExecutionOrBuilder() {
if (executionBuilder_ != null) {
return executionBuilder_.getMessageOrBuilder();
} else {
return execution_ == null ?
xla.XlaData.ExecutionHandle.getDefaultInstance() : execution_;
}
}
/**
* .xla.ExecutionHandle execution = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionHandle, xla.XlaData.ExecutionHandle.Builder, xla.XlaData.ExecutionHandleOrBuilder>
getExecutionFieldBuilder() {
if (executionBuilder_ == null) {
executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionHandle, xla.XlaData.ExecutionHandle.Builder, xla.XlaData.ExecutionHandleOrBuilder>(
getExecution(),
getParentForChildren(),
isClean());
execution_ = null;
}
return executionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.WaitForExecutionRequest)
}
// @@protoc_insertion_point(class_scope:xla.WaitForExecutionRequest)
private static final xla.Xla.WaitForExecutionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.WaitForExecutionRequest();
}
public static xla.Xla.WaitForExecutionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WaitForExecutionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WaitForExecutionRequest(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 xla.Xla.WaitForExecutionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface WaitForExecutionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.WaitForExecutionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle output = 1;
*/
boolean hasOutput();
/**
* .xla.GlobalDataHandle output = 1;
*/
xla.XlaData.GlobalDataHandle getOutput();
/**
* .xla.GlobalDataHandle output = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getOutputOrBuilder();
/**
* .xla.ExecutionProfile profile = 2;
*/
boolean hasProfile();
/**
* .xla.ExecutionProfile profile = 2;
*/
xla.XlaData.ExecutionProfile getProfile();
/**
* .xla.ExecutionProfile profile = 2;
*/
xla.XlaData.ExecutionProfileOrBuilder getProfileOrBuilder();
}
/**
* Protobuf type {@code xla.WaitForExecutionResponse}
*/
public static final class WaitForExecutionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.WaitForExecutionResponse)
WaitForExecutionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use WaitForExecutionResponse.newBuilder() to construct.
private WaitForExecutionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WaitForExecutionResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WaitForExecutionResponse(
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: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (output_ != null) {
subBuilder = output_.toBuilder();
}
output_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(output_);
output_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.XlaData.ExecutionProfile.Builder subBuilder = null;
if (profile_ != null) {
subBuilder = profile_.toBuilder();
}
profile_ = input.readMessage(xla.XlaData.ExecutionProfile.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(profile_);
profile_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_WaitForExecutionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_WaitForExecutionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.WaitForExecutionResponse.class, xla.Xla.WaitForExecutionResponse.Builder.class);
}
public static final int OUTPUT_FIELD_NUMBER = 1;
private xla.XlaData.GlobalDataHandle output_;
/**
* .xla.GlobalDataHandle output = 1;
*/
public boolean hasOutput() {
return output_ != null;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandle getOutput() {
return output_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : output_;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getOutputOrBuilder() {
return getOutput();
}
public static final int PROFILE_FIELD_NUMBER = 2;
private xla.XlaData.ExecutionProfile profile_;
/**
* .xla.ExecutionProfile profile = 2;
*/
public boolean hasProfile() {
return profile_ != null;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfile getProfile() {
return profile_ == null ? xla.XlaData.ExecutionProfile.getDefaultInstance() : profile_;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfileOrBuilder getProfileOrBuilder() {
return getProfile();
}
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 (output_ != null) {
output.writeMessage(1, getOutput());
}
if (profile_ != null) {
output.writeMessage(2, getProfile());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (output_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOutput());
}
if (profile_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getProfile());
}
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 xla.Xla.WaitForExecutionResponse)) {
return super.equals(obj);
}
xla.Xla.WaitForExecutionResponse other = (xla.Xla.WaitForExecutionResponse) obj;
boolean result = true;
result = result && (hasOutput() == other.hasOutput());
if (hasOutput()) {
result = result && getOutput()
.equals(other.getOutput());
}
result = result && (hasProfile() == other.hasProfile());
if (hasProfile()) {
result = result && getProfile()
.equals(other.getProfile());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOutput()) {
hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getOutput().hashCode();
}
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.WaitForExecutionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.WaitForExecutionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.WaitForExecutionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.WaitForExecutionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.WaitForExecutionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.WaitForExecutionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.WaitForExecutionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.WaitForExecutionResponse 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 xla.Xla.WaitForExecutionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.WaitForExecutionResponse 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 xla.Xla.WaitForExecutionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.WaitForExecutionResponse 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(xla.Xla.WaitForExecutionResponse 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 xla.WaitForExecutionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.WaitForExecutionResponse)
xla.Xla.WaitForExecutionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_WaitForExecutionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_WaitForExecutionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.WaitForExecutionResponse.class, xla.Xla.WaitForExecutionResponse.Builder.class);
}
// Construct using xla.Xla.WaitForExecutionResponse.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 (outputBuilder_ == null) {
output_ = null;
} else {
output_ = null;
outputBuilder_ = null;
}
if (profileBuilder_ == null) {
profile_ = null;
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_WaitForExecutionResponse_descriptor;
}
@java.lang.Override
public xla.Xla.WaitForExecutionResponse getDefaultInstanceForType() {
return xla.Xla.WaitForExecutionResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.WaitForExecutionResponse build() {
xla.Xla.WaitForExecutionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.WaitForExecutionResponse buildPartial() {
xla.Xla.WaitForExecutionResponse result = new xla.Xla.WaitForExecutionResponse(this);
if (outputBuilder_ == null) {
result.output_ = output_;
} else {
result.output_ = outputBuilder_.build();
}
if (profileBuilder_ == null) {
result.profile_ = profile_;
} else {
result.profile_ = profileBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.WaitForExecutionResponse) {
return mergeFrom((xla.Xla.WaitForExecutionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.WaitForExecutionResponse other) {
if (other == xla.Xla.WaitForExecutionResponse.getDefaultInstance()) return this;
if (other.hasOutput()) {
mergeOutput(other.getOutput());
}
if (other.hasProfile()) {
mergeProfile(other.getProfile());
}
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 {
xla.Xla.WaitForExecutionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.WaitForExecutionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle output_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> outputBuilder_;
/**
* .xla.GlobalDataHandle output = 1;
*/
public boolean hasOutput() {
return outputBuilder_ != null || output_ != null;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandle getOutput() {
if (outputBuilder_ == null) {
return output_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : output_;
} else {
return outputBuilder_.getMessage();
}
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder setOutput(xla.XlaData.GlobalDataHandle value) {
if (outputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
output_ = value;
onChanged();
} else {
outputBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder setOutput(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (outputBuilder_ == null) {
output_ = builderForValue.build();
onChanged();
} else {
outputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder mergeOutput(xla.XlaData.GlobalDataHandle value) {
if (outputBuilder_ == null) {
if (output_ != null) {
output_ =
xla.XlaData.GlobalDataHandle.newBuilder(output_).mergeFrom(value).buildPartial();
} else {
output_ = value;
}
onChanged();
} else {
outputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public Builder clearOutput() {
if (outputBuilder_ == null) {
output_ = null;
onChanged();
} else {
output_ = null;
outputBuilder_ = null;
}
return this;
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder getOutputBuilder() {
onChanged();
return getOutputFieldBuilder().getBuilder();
}
/**
* .xla.GlobalDataHandle output = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getOutputOrBuilder() {
if (outputBuilder_ != null) {
return outputBuilder_.getMessageOrBuilder();
} else {
return output_ == null ?
xla.XlaData.GlobalDataHandle.getDefaultInstance() : output_;
}
}
/**
* .xla.GlobalDataHandle output = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getOutputFieldBuilder() {
if (outputBuilder_ == null) {
outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
getOutput(),
getParentForChildren(),
isClean());
output_ = null;
}
return outputBuilder_;
}
private xla.XlaData.ExecutionProfile profile_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionProfile, xla.XlaData.ExecutionProfile.Builder, xla.XlaData.ExecutionProfileOrBuilder> profileBuilder_;
/**
* .xla.ExecutionProfile profile = 2;
*/
public boolean hasProfile() {
return profileBuilder_ != null || profile_ != null;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfile getProfile() {
if (profileBuilder_ == null) {
return profile_ == null ? xla.XlaData.ExecutionProfile.getDefaultInstance() : profile_;
} else {
return profileBuilder_.getMessage();
}
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder setProfile(xla.XlaData.ExecutionProfile value) {
if (profileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profile_ = value;
onChanged();
} else {
profileBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder setProfile(
xla.XlaData.ExecutionProfile.Builder builderForValue) {
if (profileBuilder_ == null) {
profile_ = builderForValue.build();
onChanged();
} else {
profileBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder mergeProfile(xla.XlaData.ExecutionProfile value) {
if (profileBuilder_ == null) {
if (profile_ != null) {
profile_ =
xla.XlaData.ExecutionProfile.newBuilder(profile_).mergeFrom(value).buildPartial();
} else {
profile_ = value;
}
onChanged();
} else {
profileBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
profile_ = null;
onChanged();
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfile.Builder getProfileBuilder() {
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
* .xla.ExecutionProfile profile = 2;
*/
public xla.XlaData.ExecutionProfileOrBuilder getProfileOrBuilder() {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
return profile_ == null ?
xla.XlaData.ExecutionProfile.getDefaultInstance() : profile_;
}
}
/**
* .xla.ExecutionProfile profile = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionProfile, xla.XlaData.ExecutionProfile.Builder, xla.XlaData.ExecutionProfileOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.ExecutionProfile, xla.XlaData.ExecutionProfile.Builder, xla.XlaData.ExecutionProfileOrBuilder>(
getProfile(),
getParentForChildren(),
isClean());
profile_ = null;
}
return profileBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.WaitForExecutionResponse)
}
// @@protoc_insertion_point(class_scope:xla.WaitForExecutionResponse)
private static final xla.Xla.WaitForExecutionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.WaitForExecutionResponse();
}
public static xla.Xla.WaitForExecutionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WaitForExecutionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WaitForExecutionResponse(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 xla.Xla.WaitForExecutionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputeConstantGraphRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ComputeConstantGraphRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.HloModuleProto computation = 1;
*/
boolean hasComputation();
/**
* .xla.HloModuleProto computation = 1;
*/
xla.Hlo.HloModuleProto getComputation();
/**
* .xla.HloModuleProto computation = 1;
*/
xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder();
/**
* .xla.Layout output_layout = 2;
*/
boolean hasOutputLayout();
/**
* .xla.Layout output_layout = 2;
*/
xla.XlaData.Layout getOutputLayout();
/**
* .xla.Layout output_layout = 2;
*/
xla.XlaData.LayoutOrBuilder getOutputLayoutOrBuilder();
}
/**
* Protobuf type {@code xla.ComputeConstantGraphRequest}
*/
public static final class ComputeConstantGraphRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ComputeConstantGraphRequest)
ComputeConstantGraphRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputeConstantGraphRequest.newBuilder() to construct.
private ComputeConstantGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputeConstantGraphRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputeConstantGraphRequest(
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: {
xla.Hlo.HloModuleProto.Builder subBuilder = null;
if (computation_ != null) {
subBuilder = computation_.toBuilder();
}
computation_ = input.readMessage(xla.Hlo.HloModuleProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(computation_);
computation_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.XlaData.Layout.Builder subBuilder = null;
if (outputLayout_ != null) {
subBuilder = outputLayout_.toBuilder();
}
outputLayout_ = input.readMessage(xla.XlaData.Layout.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(outputLayout_);
outputLayout_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ComputeConstantGraphRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputeConstantGraphRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputeConstantGraphRequest.class, xla.Xla.ComputeConstantGraphRequest.Builder.class);
}
public static final int COMPUTATION_FIELD_NUMBER = 1;
private xla.Hlo.HloModuleProto computation_;
/**
* .xla.HloModuleProto computation = 1;
*/
public boolean hasComputation() {
return computation_ != null;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto getComputation() {
return computation_ == null ? xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder() {
return getComputation();
}
public static final int OUTPUT_LAYOUT_FIELD_NUMBER = 2;
private xla.XlaData.Layout outputLayout_;
/**
* .xla.Layout output_layout = 2;
*/
public boolean hasOutputLayout() {
return outputLayout_ != null;
}
/**
* .xla.Layout output_layout = 2;
*/
public xla.XlaData.Layout getOutputLayout() {
return outputLayout_ == null ? xla.XlaData.Layout.getDefaultInstance() : outputLayout_;
}
/**
* .xla.Layout output_layout = 2;
*/
public xla.XlaData.LayoutOrBuilder getOutputLayoutOrBuilder() {
return getOutputLayout();
}
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 (computation_ != null) {
output.writeMessage(1, getComputation());
}
if (outputLayout_ != null) {
output.writeMessage(2, getOutputLayout());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (computation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getComputation());
}
if (outputLayout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOutputLayout());
}
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 xla.Xla.ComputeConstantGraphRequest)) {
return super.equals(obj);
}
xla.Xla.ComputeConstantGraphRequest other = (xla.Xla.ComputeConstantGraphRequest) obj;
boolean result = true;
result = result && (hasComputation() == other.hasComputation());
if (hasComputation()) {
result = result && getComputation()
.equals(other.getComputation());
}
result = result && (hasOutputLayout() == other.hasOutputLayout());
if (hasOutputLayout()) {
result = result && getOutputLayout()
.equals(other.getOutputLayout());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasComputation()) {
hash = (37 * hash) + COMPUTATION_FIELD_NUMBER;
hash = (53 * hash) + getComputation().hashCode();
}
if (hasOutputLayout()) {
hash = (37 * hash) + OUTPUT_LAYOUT_FIELD_NUMBER;
hash = (53 * hash) + getOutputLayout().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputeConstantGraphRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputeConstantGraphRequest 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 xla.Xla.ComputeConstantGraphRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ComputeConstantGraphRequest 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 xla.Xla.ComputeConstantGraphRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputeConstantGraphRequest 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(xla.Xla.ComputeConstantGraphRequest 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 xla.ComputeConstantGraphRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ComputeConstantGraphRequest)
xla.Xla.ComputeConstantGraphRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ComputeConstantGraphRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputeConstantGraphRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputeConstantGraphRequest.class, xla.Xla.ComputeConstantGraphRequest.Builder.class);
}
// Construct using xla.Xla.ComputeConstantGraphRequest.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 (computationBuilder_ == null) {
computation_ = null;
} else {
computation_ = null;
computationBuilder_ = null;
}
if (outputLayoutBuilder_ == null) {
outputLayout_ = null;
} else {
outputLayout_ = null;
outputLayoutBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ComputeConstantGraphRequest_descriptor;
}
@java.lang.Override
public xla.Xla.ComputeConstantGraphRequest getDefaultInstanceForType() {
return xla.Xla.ComputeConstantGraphRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ComputeConstantGraphRequest build() {
xla.Xla.ComputeConstantGraphRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ComputeConstantGraphRequest buildPartial() {
xla.Xla.ComputeConstantGraphRequest result = new xla.Xla.ComputeConstantGraphRequest(this);
if (computationBuilder_ == null) {
result.computation_ = computation_;
} else {
result.computation_ = computationBuilder_.build();
}
if (outputLayoutBuilder_ == null) {
result.outputLayout_ = outputLayout_;
} else {
result.outputLayout_ = outputLayoutBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ComputeConstantGraphRequest) {
return mergeFrom((xla.Xla.ComputeConstantGraphRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ComputeConstantGraphRequest other) {
if (other == xla.Xla.ComputeConstantGraphRequest.getDefaultInstance()) return this;
if (other.hasComputation()) {
mergeComputation(other.getComputation());
}
if (other.hasOutputLayout()) {
mergeOutputLayout(other.getOutputLayout());
}
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 {
xla.Xla.ComputeConstantGraphRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ComputeConstantGraphRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.Hlo.HloModuleProto computation_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder> computationBuilder_;
/**
* .xla.HloModuleProto computation = 1;
*/
public boolean hasComputation() {
return computationBuilder_ != null || computation_ != null;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto getComputation() {
if (computationBuilder_ == null) {
return computation_ == null ? xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
} else {
return computationBuilder_.getMessage();
}
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder setComputation(xla.Hlo.HloModuleProto value) {
if (computationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
computation_ = value;
onChanged();
} else {
computationBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder setComputation(
xla.Hlo.HloModuleProto.Builder builderForValue) {
if (computationBuilder_ == null) {
computation_ = builderForValue.build();
onChanged();
} else {
computationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder mergeComputation(xla.Hlo.HloModuleProto value) {
if (computationBuilder_ == null) {
if (computation_ != null) {
computation_ =
xla.Hlo.HloModuleProto.newBuilder(computation_).mergeFrom(value).buildPartial();
} else {
computation_ = value;
}
onChanged();
} else {
computationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public Builder clearComputation() {
if (computationBuilder_ == null) {
computation_ = null;
onChanged();
} else {
computation_ = null;
computationBuilder_ = null;
}
return this;
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProto.Builder getComputationBuilder() {
onChanged();
return getComputationFieldBuilder().getBuilder();
}
/**
* .xla.HloModuleProto computation = 1;
*/
public xla.Hlo.HloModuleProtoOrBuilder getComputationOrBuilder() {
if (computationBuilder_ != null) {
return computationBuilder_.getMessageOrBuilder();
} else {
return computation_ == null ?
xla.Hlo.HloModuleProto.getDefaultInstance() : computation_;
}
}
/**
* .xla.HloModuleProto computation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder>
getComputationFieldBuilder() {
if (computationBuilder_ == null) {
computationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.Hlo.HloModuleProto, xla.Hlo.HloModuleProto.Builder, xla.Hlo.HloModuleProtoOrBuilder>(
getComputation(),
getParentForChildren(),
isClean());
computation_ = null;
}
return computationBuilder_;
}
private xla.XlaData.Layout outputLayout_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Layout, xla.XlaData.Layout.Builder, xla.XlaData.LayoutOrBuilder> outputLayoutBuilder_;
/**
* .xla.Layout output_layout = 2;
*/
public boolean hasOutputLayout() {
return outputLayoutBuilder_ != null || outputLayout_ != null;
}
/**
* .xla.Layout output_layout = 2;
*/
public xla.XlaData.Layout getOutputLayout() {
if (outputLayoutBuilder_ == null) {
return outputLayout_ == null ? xla.XlaData.Layout.getDefaultInstance() : outputLayout_;
} else {
return outputLayoutBuilder_.getMessage();
}
}
/**
* .xla.Layout output_layout = 2;
*/
public Builder setOutputLayout(xla.XlaData.Layout value) {
if (outputLayoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
outputLayout_ = value;
onChanged();
} else {
outputLayoutBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.Layout output_layout = 2;
*/
public Builder setOutputLayout(
xla.XlaData.Layout.Builder builderForValue) {
if (outputLayoutBuilder_ == null) {
outputLayout_ = builderForValue.build();
onChanged();
} else {
outputLayoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.Layout output_layout = 2;
*/
public Builder mergeOutputLayout(xla.XlaData.Layout value) {
if (outputLayoutBuilder_ == null) {
if (outputLayout_ != null) {
outputLayout_ =
xla.XlaData.Layout.newBuilder(outputLayout_).mergeFrom(value).buildPartial();
} else {
outputLayout_ = value;
}
onChanged();
} else {
outputLayoutBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.Layout output_layout = 2;
*/
public Builder clearOutputLayout() {
if (outputLayoutBuilder_ == null) {
outputLayout_ = null;
onChanged();
} else {
outputLayout_ = null;
outputLayoutBuilder_ = null;
}
return this;
}
/**
* .xla.Layout output_layout = 2;
*/
public xla.XlaData.Layout.Builder getOutputLayoutBuilder() {
onChanged();
return getOutputLayoutFieldBuilder().getBuilder();
}
/**
* .xla.Layout output_layout = 2;
*/
public xla.XlaData.LayoutOrBuilder getOutputLayoutOrBuilder() {
if (outputLayoutBuilder_ != null) {
return outputLayoutBuilder_.getMessageOrBuilder();
} else {
return outputLayout_ == null ?
xla.XlaData.Layout.getDefaultInstance() : outputLayout_;
}
}
/**
* .xla.Layout output_layout = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Layout, xla.XlaData.Layout.Builder, xla.XlaData.LayoutOrBuilder>
getOutputLayoutFieldBuilder() {
if (outputLayoutBuilder_ == null) {
outputLayoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Layout, xla.XlaData.Layout.Builder, xla.XlaData.LayoutOrBuilder>(
getOutputLayout(),
getParentForChildren(),
isClean());
outputLayout_ = null;
}
return outputLayoutBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ComputeConstantGraphRequest)
}
// @@protoc_insertion_point(class_scope:xla.ComputeConstantGraphRequest)
private static final xla.Xla.ComputeConstantGraphRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ComputeConstantGraphRequest();
}
public static xla.Xla.ComputeConstantGraphRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputeConstantGraphRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputeConstantGraphRequest(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 xla.Xla.ComputeConstantGraphRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputeConstantResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.ComputeConstantResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
boolean hasLiteral();
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProto getLiteral();
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder();
}
/**
* Protobuf type {@code xla.ComputeConstantResponse}
*/
public static final class ComputeConstantResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.ComputeConstantResponse)
ComputeConstantResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputeConstantResponse.newBuilder() to construct.
private ComputeConstantResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputeConstantResponse() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputeConstantResponse(
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: {
xla.XlaData.LiteralProto.Builder subBuilder = null;
if (literal_ != null) {
subBuilder = literal_.toBuilder();
}
literal_ = input.readMessage(xla.XlaData.LiteralProto.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(literal_);
literal_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_ComputeConstantResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputeConstantResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputeConstantResponse.class, xla.Xla.ComputeConstantResponse.Builder.class);
}
public static final int LITERAL_FIELD_NUMBER = 1;
private xla.XlaData.LiteralProto literal_;
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literal_ != null;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
return getLiteral();
}
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 (literal_ != null) {
output.writeMessage(1, getLiteral());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (literal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLiteral());
}
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 xla.Xla.ComputeConstantResponse)) {
return super.equals(obj);
}
xla.Xla.ComputeConstantResponse other = (xla.Xla.ComputeConstantResponse) obj;
boolean result = true;
result = result && (hasLiteral() == other.hasLiteral());
if (hasLiteral()) {
result = result && getLiteral()
.equals(other.getLiteral());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLiteral()) {
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.ComputeConstantResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputeConstantResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputeConstantResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputeConstantResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputeConstantResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.ComputeConstantResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.ComputeConstantResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputeConstantResponse 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 xla.Xla.ComputeConstantResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.ComputeConstantResponse 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 xla.Xla.ComputeConstantResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.ComputeConstantResponse 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(xla.Xla.ComputeConstantResponse 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 xla.ComputeConstantResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.ComputeConstantResponse)
xla.Xla.ComputeConstantResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_ComputeConstantResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_ComputeConstantResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.ComputeConstantResponse.class, xla.Xla.ComputeConstantResponse.Builder.class);
}
// Construct using xla.Xla.ComputeConstantResponse.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 (literalBuilder_ == null) {
literal_ = null;
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_ComputeConstantResponse_descriptor;
}
@java.lang.Override
public xla.Xla.ComputeConstantResponse getDefaultInstanceForType() {
return xla.Xla.ComputeConstantResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.ComputeConstantResponse build() {
xla.Xla.ComputeConstantResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.ComputeConstantResponse buildPartial() {
xla.Xla.ComputeConstantResponse result = new xla.Xla.ComputeConstantResponse(this);
if (literalBuilder_ == null) {
result.literal_ = literal_;
} else {
result.literal_ = literalBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.ComputeConstantResponse) {
return mergeFrom((xla.Xla.ComputeConstantResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.ComputeConstantResponse other) {
if (other == xla.Xla.ComputeConstantResponse.getDefaultInstance()) return this;
if (other.hasLiteral()) {
mergeLiteral(other.getLiteral());
}
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 {
xla.Xla.ComputeConstantResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.ComputeConstantResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.LiteralProto literal_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> literalBuilder_;
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public boolean hasLiteral() {
return literalBuilder_ != null || literal_ != null;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto getLiteral() {
if (literalBuilder_ == null) {
return literal_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
} else {
return literalBuilder_.getMessage();
}
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
literal_ = value;
onChanged();
} else {
literalBuilder_.setMessage(value);
}
return this;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public Builder setLiteral(
xla.XlaData.LiteralProto.Builder builderForValue) {
if (literalBuilder_ == null) {
literal_ = builderForValue.build();
onChanged();
} else {
literalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public Builder mergeLiteral(xla.XlaData.LiteralProto value) {
if (literalBuilder_ == null) {
if (literal_ != null) {
literal_ =
xla.XlaData.LiteralProto.newBuilder(literal_).mergeFrom(value).buildPartial();
} else {
literal_ = value;
}
onChanged();
} else {
literalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public Builder clearLiteral() {
if (literalBuilder_ == null) {
literal_ = null;
onChanged();
} else {
literal_ = null;
literalBuilder_ = null;
}
return this;
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProto.Builder getLiteralBuilder() {
onChanged();
return getLiteralFieldBuilder().getBuilder();
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
public xla.XlaData.LiteralProtoOrBuilder getLiteralOrBuilder() {
if (literalBuilder_ != null) {
return literalBuilder_.getMessageOrBuilder();
} else {
return literal_ == null ?
xla.XlaData.LiteralProto.getDefaultInstance() : literal_;
}
}
/**
*
* A LiteralProto is returned directly for this request.
*
*
* .xla.LiteralProto literal = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>
getLiteralFieldBuilder() {
if (literalBuilder_ == null) {
literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>(
getLiteral(),
getParentForChildren(),
isClean());
literal_ = null;
}
return literalBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.ComputeConstantResponse)
}
// @@protoc_insertion_point(class_scope:xla.ComputeConstantResponse)
private static final xla.Xla.ComputeConstantResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.ComputeConstantResponse();
}
public static xla.Xla.ComputeConstantResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputeConstantResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputeConstantResponse(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 xla.Xla.ComputeConstantResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeconstructTupleRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.DeconstructTupleRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
boolean hasTupleHandle();
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
xla.XlaData.GlobalDataHandle getTupleHandle();
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
xla.XlaData.GlobalDataHandleOrBuilder getTupleHandleOrBuilder();
}
/**
* Protobuf type {@code xla.DeconstructTupleRequest}
*/
public static final class DeconstructTupleRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.DeconstructTupleRequest)
DeconstructTupleRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeconstructTupleRequest.newBuilder() to construct.
private DeconstructTupleRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeconstructTupleRequest() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeconstructTupleRequest(
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 18: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (tupleHandle_ != null) {
subBuilder = tupleHandle_.toBuilder();
}
tupleHandle_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tupleHandle_);
tupleHandle_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_DeconstructTupleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_DeconstructTupleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.DeconstructTupleRequest.class, xla.Xla.DeconstructTupleRequest.Builder.class);
}
public static final int TUPLE_HANDLE_FIELD_NUMBER = 2;
private xla.XlaData.GlobalDataHandle tupleHandle_;
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public boolean hasTupleHandle() {
return tupleHandle_ != null;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public xla.XlaData.GlobalDataHandle getTupleHandle() {
return tupleHandle_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : tupleHandle_;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getTupleHandleOrBuilder() {
return getTupleHandle();
}
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 (tupleHandle_ != null) {
output.writeMessage(2, getTupleHandle());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tupleHandle_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTupleHandle());
}
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 xla.Xla.DeconstructTupleRequest)) {
return super.equals(obj);
}
xla.Xla.DeconstructTupleRequest other = (xla.Xla.DeconstructTupleRequest) obj;
boolean result = true;
result = result && (hasTupleHandle() == other.hasTupleHandle());
if (hasTupleHandle()) {
result = result && getTupleHandle()
.equals(other.getTupleHandle());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTupleHandle()) {
hash = (37 * hash) + TUPLE_HANDLE_FIELD_NUMBER;
hash = (53 * hash) + getTupleHandle().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.DeconstructTupleRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DeconstructTupleRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DeconstructTupleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DeconstructTupleRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DeconstructTupleRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DeconstructTupleRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DeconstructTupleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.DeconstructTupleRequest 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 xla.Xla.DeconstructTupleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.DeconstructTupleRequest 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 xla.Xla.DeconstructTupleRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.DeconstructTupleRequest 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(xla.Xla.DeconstructTupleRequest 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 xla.DeconstructTupleRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.DeconstructTupleRequest)
xla.Xla.DeconstructTupleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_DeconstructTupleRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_DeconstructTupleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.DeconstructTupleRequest.class, xla.Xla.DeconstructTupleRequest.Builder.class);
}
// Construct using xla.Xla.DeconstructTupleRequest.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 (tupleHandleBuilder_ == null) {
tupleHandle_ = null;
} else {
tupleHandle_ = null;
tupleHandleBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_DeconstructTupleRequest_descriptor;
}
@java.lang.Override
public xla.Xla.DeconstructTupleRequest getDefaultInstanceForType() {
return xla.Xla.DeconstructTupleRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.DeconstructTupleRequest build() {
xla.Xla.DeconstructTupleRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.DeconstructTupleRequest buildPartial() {
xla.Xla.DeconstructTupleRequest result = new xla.Xla.DeconstructTupleRequest(this);
if (tupleHandleBuilder_ == null) {
result.tupleHandle_ = tupleHandle_;
} else {
result.tupleHandle_ = tupleHandleBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.DeconstructTupleRequest) {
return mergeFrom((xla.Xla.DeconstructTupleRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.DeconstructTupleRequest other) {
if (other == xla.Xla.DeconstructTupleRequest.getDefaultInstance()) return this;
if (other.hasTupleHandle()) {
mergeTupleHandle(other.getTupleHandle());
}
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 {
xla.Xla.DeconstructTupleRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.DeconstructTupleRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle tupleHandle_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> tupleHandleBuilder_;
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public boolean hasTupleHandle() {
return tupleHandleBuilder_ != null || tupleHandle_ != null;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public xla.XlaData.GlobalDataHandle getTupleHandle() {
if (tupleHandleBuilder_ == null) {
return tupleHandle_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : tupleHandle_;
} else {
return tupleHandleBuilder_.getMessage();
}
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public Builder setTupleHandle(xla.XlaData.GlobalDataHandle value) {
if (tupleHandleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tupleHandle_ = value;
onChanged();
} else {
tupleHandleBuilder_.setMessage(value);
}
return this;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public Builder setTupleHandle(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (tupleHandleBuilder_ == null) {
tupleHandle_ = builderForValue.build();
onChanged();
} else {
tupleHandleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public Builder mergeTupleHandle(xla.XlaData.GlobalDataHandle value) {
if (tupleHandleBuilder_ == null) {
if (tupleHandle_ != null) {
tupleHandle_ =
xla.XlaData.GlobalDataHandle.newBuilder(tupleHandle_).mergeFrom(value).buildPartial();
} else {
tupleHandle_ = value;
}
onChanged();
} else {
tupleHandleBuilder_.mergeFrom(value);
}
return this;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public Builder clearTupleHandle() {
if (tupleHandleBuilder_ == null) {
tupleHandle_ = null;
onChanged();
} else {
tupleHandle_ = null;
tupleHandleBuilder_ = null;
}
return this;
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public xla.XlaData.GlobalDataHandle.Builder getTupleHandleBuilder() {
onChanged();
return getTupleHandleFieldBuilder().getBuilder();
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getTupleHandleOrBuilder() {
if (tupleHandleBuilder_ != null) {
return tupleHandleBuilder_.getMessageOrBuilder();
} else {
return tupleHandle_ == null ?
xla.XlaData.GlobalDataHandle.getDefaultInstance() : tupleHandle_;
}
}
/**
* .xla.GlobalDataHandle tuple_handle = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getTupleHandleFieldBuilder() {
if (tupleHandleBuilder_ == null) {
tupleHandleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
getTupleHandle(),
getParentForChildren(),
isClean());
tupleHandle_ = null;
}
return tupleHandleBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.DeconstructTupleRequest)
}
// @@protoc_insertion_point(class_scope:xla.DeconstructTupleRequest)
private static final xla.Xla.DeconstructTupleRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.DeconstructTupleRequest();
}
public static xla.Xla.DeconstructTupleRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeconstructTupleRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeconstructTupleRequest(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 xla.Xla.DeconstructTupleRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeconstructTupleResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.DeconstructTupleResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
java.util.List
getElementHandlesList();
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
xla.XlaData.GlobalDataHandle getElementHandles(int index);
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
int getElementHandlesCount();
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
java.util.List extends xla.XlaData.GlobalDataHandleOrBuilder>
getElementHandlesOrBuilderList();
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getElementHandlesOrBuilder(
int index);
}
/**
* Protobuf type {@code xla.DeconstructTupleResponse}
*/
public static final class DeconstructTupleResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.DeconstructTupleResponse)
DeconstructTupleResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeconstructTupleResponse.newBuilder() to construct.
private DeconstructTupleResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeconstructTupleResponse() {
elementHandles_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeconstructTupleResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
elementHandles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
elementHandles_.add(
input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownFieldProto3(
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) == 0x00000001)) {
elementHandles_ = java.util.Collections.unmodifiableList(elementHandles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_DeconstructTupleResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_DeconstructTupleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.DeconstructTupleResponse.class, xla.Xla.DeconstructTupleResponse.Builder.class);
}
public static final int ELEMENT_HANDLES_FIELD_NUMBER = 1;
private java.util.List elementHandles_;
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public java.util.List getElementHandlesList() {
return elementHandles_;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public java.util.List extends xla.XlaData.GlobalDataHandleOrBuilder>
getElementHandlesOrBuilderList() {
return elementHandles_;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public int getElementHandlesCount() {
return elementHandles_.size();
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandle getElementHandles(int index) {
return elementHandles_.get(index);
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getElementHandlesOrBuilder(
int index) {
return elementHandles_.get(index);
}
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 {
for (int i = 0; i < elementHandles_.size(); i++) {
output.writeMessage(1, elementHandles_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < elementHandles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, elementHandles_.get(i));
}
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 xla.Xla.DeconstructTupleResponse)) {
return super.equals(obj);
}
xla.Xla.DeconstructTupleResponse other = (xla.Xla.DeconstructTupleResponse) obj;
boolean result = true;
result = result && getElementHandlesList()
.equals(other.getElementHandlesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getElementHandlesCount() > 0) {
hash = (37 * hash) + ELEMENT_HANDLES_FIELD_NUMBER;
hash = (53 * hash) + getElementHandlesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.DeconstructTupleResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DeconstructTupleResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DeconstructTupleResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DeconstructTupleResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DeconstructTupleResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.DeconstructTupleResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.DeconstructTupleResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.DeconstructTupleResponse 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 xla.Xla.DeconstructTupleResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.DeconstructTupleResponse 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 xla.Xla.DeconstructTupleResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.DeconstructTupleResponse 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(xla.Xla.DeconstructTupleResponse 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 xla.DeconstructTupleResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.DeconstructTupleResponse)
xla.Xla.DeconstructTupleResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_DeconstructTupleResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_DeconstructTupleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.DeconstructTupleResponse.class, xla.Xla.DeconstructTupleResponse.Builder.class);
}
// Construct using xla.Xla.DeconstructTupleResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getElementHandlesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (elementHandlesBuilder_ == null) {
elementHandles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
elementHandlesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_DeconstructTupleResponse_descriptor;
}
@java.lang.Override
public xla.Xla.DeconstructTupleResponse getDefaultInstanceForType() {
return xla.Xla.DeconstructTupleResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.DeconstructTupleResponse build() {
xla.Xla.DeconstructTupleResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.DeconstructTupleResponse buildPartial() {
xla.Xla.DeconstructTupleResponse result = new xla.Xla.DeconstructTupleResponse(this);
int from_bitField0_ = bitField0_;
if (elementHandlesBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
elementHandles_ = java.util.Collections.unmodifiableList(elementHandles_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.elementHandles_ = elementHandles_;
} else {
result.elementHandles_ = elementHandlesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.DeconstructTupleResponse) {
return mergeFrom((xla.Xla.DeconstructTupleResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.DeconstructTupleResponse other) {
if (other == xla.Xla.DeconstructTupleResponse.getDefaultInstance()) return this;
if (elementHandlesBuilder_ == null) {
if (!other.elementHandles_.isEmpty()) {
if (elementHandles_.isEmpty()) {
elementHandles_ = other.elementHandles_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureElementHandlesIsMutable();
elementHandles_.addAll(other.elementHandles_);
}
onChanged();
}
} else {
if (!other.elementHandles_.isEmpty()) {
if (elementHandlesBuilder_.isEmpty()) {
elementHandlesBuilder_.dispose();
elementHandlesBuilder_ = null;
elementHandles_ = other.elementHandles_;
bitField0_ = (bitField0_ & ~0x00000001);
elementHandlesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getElementHandlesFieldBuilder() : null;
} else {
elementHandlesBuilder_.addAllMessages(other.elementHandles_);
}
}
}
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 {
xla.Xla.DeconstructTupleResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.DeconstructTupleResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List elementHandles_ =
java.util.Collections.emptyList();
private void ensureElementHandlesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
elementHandles_ = new java.util.ArrayList(elementHandles_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> elementHandlesBuilder_;
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public java.util.List getElementHandlesList() {
if (elementHandlesBuilder_ == null) {
return java.util.Collections.unmodifiableList(elementHandles_);
} else {
return elementHandlesBuilder_.getMessageList();
}
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public int getElementHandlesCount() {
if (elementHandlesBuilder_ == null) {
return elementHandles_.size();
} else {
return elementHandlesBuilder_.getCount();
}
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandle getElementHandles(int index) {
if (elementHandlesBuilder_ == null) {
return elementHandles_.get(index);
} else {
return elementHandlesBuilder_.getMessage(index);
}
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder setElementHandles(
int index, xla.XlaData.GlobalDataHandle value) {
if (elementHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementHandlesIsMutable();
elementHandles_.set(index, value);
onChanged();
} else {
elementHandlesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder setElementHandles(
int index, xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (elementHandlesBuilder_ == null) {
ensureElementHandlesIsMutable();
elementHandles_.set(index, builderForValue.build());
onChanged();
} else {
elementHandlesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder addElementHandles(xla.XlaData.GlobalDataHandle value) {
if (elementHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementHandlesIsMutable();
elementHandles_.add(value);
onChanged();
} else {
elementHandlesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder addElementHandles(
int index, xla.XlaData.GlobalDataHandle value) {
if (elementHandlesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureElementHandlesIsMutable();
elementHandles_.add(index, value);
onChanged();
} else {
elementHandlesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder addElementHandles(
xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (elementHandlesBuilder_ == null) {
ensureElementHandlesIsMutable();
elementHandles_.add(builderForValue.build());
onChanged();
} else {
elementHandlesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder addElementHandles(
int index, xla.XlaData.GlobalDataHandle.Builder builderForValue) {
if (elementHandlesBuilder_ == null) {
ensureElementHandlesIsMutable();
elementHandles_.add(index, builderForValue.build());
onChanged();
} else {
elementHandlesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder addAllElementHandles(
java.lang.Iterable extends xla.XlaData.GlobalDataHandle> values) {
if (elementHandlesBuilder_ == null) {
ensureElementHandlesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, elementHandles_);
onChanged();
} else {
elementHandlesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder clearElementHandles() {
if (elementHandlesBuilder_ == null) {
elementHandles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
elementHandlesBuilder_.clear();
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public Builder removeElementHandles(int index) {
if (elementHandlesBuilder_ == null) {
ensureElementHandlesIsMutable();
elementHandles_.remove(index);
onChanged();
} else {
elementHandlesBuilder_.remove(index);
}
return this;
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder getElementHandlesBuilder(
int index) {
return getElementHandlesFieldBuilder().getBuilder(index);
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getElementHandlesOrBuilder(
int index) {
if (elementHandlesBuilder_ == null) {
return elementHandles_.get(index); } else {
return elementHandlesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public java.util.List extends xla.XlaData.GlobalDataHandleOrBuilder>
getElementHandlesOrBuilderList() {
if (elementHandlesBuilder_ != null) {
return elementHandlesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(elementHandles_);
}
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder addElementHandlesBuilder() {
return getElementHandlesFieldBuilder().addBuilder(
xla.XlaData.GlobalDataHandle.getDefaultInstance());
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public xla.XlaData.GlobalDataHandle.Builder addElementHandlesBuilder(
int index) {
return getElementHandlesFieldBuilder().addBuilder(
index, xla.XlaData.GlobalDataHandle.getDefaultInstance());
}
/**
* repeated .xla.GlobalDataHandle element_handles = 1;
*/
public java.util.List
getElementHandlesBuilderList() {
return getElementHandlesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>
getElementHandlesFieldBuilder() {
if (elementHandlesBuilder_ == null) {
elementHandlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder>(
elementHandles_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
elementHandles_ = null;
}
return elementHandlesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.DeconstructTupleResponse)
}
// @@protoc_insertion_point(class_scope:xla.DeconstructTupleResponse)
private static final xla.Xla.DeconstructTupleResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.DeconstructTupleResponse();
}
public static xla.Xla.DeconstructTupleResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeconstructTupleResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeconstructTupleResponse(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 xla.Xla.DeconstructTupleResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LoadDataRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.LoadDataRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
java.lang.String getColumnioTabletPath();
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
com.google.protobuf.ByteString
getColumnioTabletPathBytes();
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
java.lang.String getColumnioField();
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
com.google.protobuf.ByteString
getColumnioFieldBytes();
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
boolean hasElementShape();
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
xla.XlaData.Shape getElementShape();
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
xla.XlaData.ShapeOrBuilder getElementShapeOrBuilder();
/**
*
* Warning: ColumnIO does not support random-access, so use offset with
* caution in performance-critical scenarios.
*
*
* int64 offset = 4;
*/
long getOffset();
/**
*
* Maximum number of elements (with shape element_shape) to load.
*
*
* int64 limit = 5;
*/
long getLimit();
/**
*
* If more than one item is requested (via limit > 1), then this request
* attribute zips together the produced vectors.
*
*
* bool zip = 6;
*/
boolean getZip();
}
/**
* Protobuf type {@code xla.LoadDataRequest}
*/
public static final class LoadDataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.LoadDataRequest)
LoadDataRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use LoadDataRequest.newBuilder() to construct.
private LoadDataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LoadDataRequest() {
columnioTabletPath_ = "";
columnioField_ = "";
offset_ = 0L;
limit_ = 0L;
zip_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LoadDataRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
columnioTabletPath_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
columnioField_ = s;
break;
}
case 26: {
xla.XlaData.Shape.Builder subBuilder = null;
if (elementShape_ != null) {
subBuilder = elementShape_.toBuilder();
}
elementShape_ = input.readMessage(xla.XlaData.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(elementShape_);
elementShape_ = subBuilder.buildPartial();
}
break;
}
case 32: {
offset_ = input.readInt64();
break;
}
case 40: {
limit_ = input.readInt64();
break;
}
case 48: {
zip_ = input.readBool();
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_LoadDataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_LoadDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.LoadDataRequest.class, xla.Xla.LoadDataRequest.Builder.class);
}
public static final int COLUMNIO_TABLET_PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object columnioTabletPath_;
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public java.lang.String getColumnioTabletPath() {
java.lang.Object ref = columnioTabletPath_;
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();
columnioTabletPath_ = s;
return s;
}
}
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public com.google.protobuf.ByteString
getColumnioTabletPathBytes() {
java.lang.Object ref = columnioTabletPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnioTabletPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMNIO_FIELD_FIELD_NUMBER = 2;
private volatile java.lang.Object columnioField_;
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public java.lang.String getColumnioField() {
java.lang.Object ref = columnioField_;
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();
columnioField_ = s;
return s;
}
}
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public com.google.protobuf.ByteString
getColumnioFieldBytes() {
java.lang.Object ref = columnioField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnioField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ELEMENT_SHAPE_FIELD_NUMBER = 3;
private xla.XlaData.Shape elementShape_;
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public boolean hasElementShape() {
return elementShape_ != null;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public xla.XlaData.Shape getElementShape() {
return elementShape_ == null ? xla.XlaData.Shape.getDefaultInstance() : elementShape_;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public xla.XlaData.ShapeOrBuilder getElementShapeOrBuilder() {
return getElementShape();
}
public static final int OFFSET_FIELD_NUMBER = 4;
private long offset_;
/**
*
* Warning: ColumnIO does not support random-access, so use offset with
* caution in performance-critical scenarios.
*
*
* int64 offset = 4;
*/
public long getOffset() {
return offset_;
}
public static final int LIMIT_FIELD_NUMBER = 5;
private long limit_;
/**
*
* Maximum number of elements (with shape element_shape) to load.
*
*
* int64 limit = 5;
*/
public long getLimit() {
return limit_;
}
public static final int ZIP_FIELD_NUMBER = 6;
private boolean zip_;
/**
*
* If more than one item is requested (via limit > 1), then this request
* attribute zips together the produced vectors.
*
*
* bool zip = 6;
*/
public boolean getZip() {
return zip_;
}
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 (!getColumnioTabletPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnioTabletPath_);
}
if (!getColumnioFieldBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columnioField_);
}
if (elementShape_ != null) {
output.writeMessage(3, getElementShape());
}
if (offset_ != 0L) {
output.writeInt64(4, offset_);
}
if (limit_ != 0L) {
output.writeInt64(5, limit_);
}
if (zip_ != false) {
output.writeBool(6, zip_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getColumnioTabletPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnioTabletPath_);
}
if (!getColumnioFieldBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, columnioField_);
}
if (elementShape_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getElementShape());
}
if (offset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, offset_);
}
if (limit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, limit_);
}
if (zip_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, zip_);
}
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 xla.Xla.LoadDataRequest)) {
return super.equals(obj);
}
xla.Xla.LoadDataRequest other = (xla.Xla.LoadDataRequest) obj;
boolean result = true;
result = result && getColumnioTabletPath()
.equals(other.getColumnioTabletPath());
result = result && getColumnioField()
.equals(other.getColumnioField());
result = result && (hasElementShape() == other.hasElementShape());
if (hasElementShape()) {
result = result && getElementShape()
.equals(other.getElementShape());
}
result = result && (getOffset()
== other.getOffset());
result = result && (getLimit()
== other.getLimit());
result = result && (getZip()
== other.getZip());
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) + COLUMNIO_TABLET_PATH_FIELD_NUMBER;
hash = (53 * hash) + getColumnioTabletPath().hashCode();
hash = (37 * hash) + COLUMNIO_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getColumnioField().hashCode();
if (hasElementShape()) {
hash = (37 * hash) + ELEMENT_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getElementShape().hashCode();
}
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOffset());
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLimit());
hash = (37 * hash) + ZIP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getZip());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.LoadDataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.LoadDataRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.LoadDataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.LoadDataRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.LoadDataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.LoadDataRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.LoadDataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.LoadDataRequest 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 xla.Xla.LoadDataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.LoadDataRequest 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 xla.Xla.LoadDataRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.LoadDataRequest 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(xla.Xla.LoadDataRequest 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 xla.LoadDataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.LoadDataRequest)
xla.Xla.LoadDataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_LoadDataRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_LoadDataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.LoadDataRequest.class, xla.Xla.LoadDataRequest.Builder.class);
}
// Construct using xla.Xla.LoadDataRequest.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();
columnioTabletPath_ = "";
columnioField_ = "";
if (elementShapeBuilder_ == null) {
elementShape_ = null;
} else {
elementShape_ = null;
elementShapeBuilder_ = null;
}
offset_ = 0L;
limit_ = 0L;
zip_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_LoadDataRequest_descriptor;
}
@java.lang.Override
public xla.Xla.LoadDataRequest getDefaultInstanceForType() {
return xla.Xla.LoadDataRequest.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.LoadDataRequest build() {
xla.Xla.LoadDataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.LoadDataRequest buildPartial() {
xla.Xla.LoadDataRequest result = new xla.Xla.LoadDataRequest(this);
result.columnioTabletPath_ = columnioTabletPath_;
result.columnioField_ = columnioField_;
if (elementShapeBuilder_ == null) {
result.elementShape_ = elementShape_;
} else {
result.elementShape_ = elementShapeBuilder_.build();
}
result.offset_ = offset_;
result.limit_ = limit_;
result.zip_ = zip_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.LoadDataRequest) {
return mergeFrom((xla.Xla.LoadDataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.LoadDataRequest other) {
if (other == xla.Xla.LoadDataRequest.getDefaultInstance()) return this;
if (!other.getColumnioTabletPath().isEmpty()) {
columnioTabletPath_ = other.columnioTabletPath_;
onChanged();
}
if (!other.getColumnioField().isEmpty()) {
columnioField_ = other.columnioField_;
onChanged();
}
if (other.hasElementShape()) {
mergeElementShape(other.getElementShape());
}
if (other.getOffset() != 0L) {
setOffset(other.getOffset());
}
if (other.getLimit() != 0L) {
setLimit(other.getLimit());
}
if (other.getZip() != false) {
setZip(other.getZip());
}
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 {
xla.Xla.LoadDataRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.LoadDataRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object columnioTabletPath_ = "";
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public java.lang.String getColumnioTabletPath() {
java.lang.Object ref = columnioTabletPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnioTabletPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public com.google.protobuf.ByteString
getColumnioTabletPathBytes() {
java.lang.Object ref = columnioTabletPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnioTabletPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public Builder setColumnioTabletPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
columnioTabletPath_ = value;
onChanged();
return this;
}
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public Builder clearColumnioTabletPath() {
columnioTabletPath_ = getDefaultInstance().getColumnioTabletPath();
onChanged();
return this;
}
/**
*
* Describes the path of the ColumnIO tablet to load.
*
*
* string columnio_tablet_path = 1;
*/
public Builder setColumnioTabletPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
columnioTabletPath_ = value;
onChanged();
return this;
}
private java.lang.Object columnioField_ = "";
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public java.lang.String getColumnioField() {
java.lang.Object ref = columnioField_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnioField_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public com.google.protobuf.ByteString
getColumnioFieldBytes() {
java.lang.Object ref = columnioField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnioField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public Builder setColumnioField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
columnioField_ = value;
onChanged();
return this;
}
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public Builder clearColumnioField() {
columnioField_ = getDefaultInstance().getColumnioField();
onChanged();
return this;
}
/**
*
* Describes the field to load within the ColumnIO tablet.
*
*
* string columnio_field = 2;
*/
public Builder setColumnioFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
columnioField_ = value;
onChanged();
return this;
}
private xla.XlaData.Shape elementShape_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder> elementShapeBuilder_;
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public boolean hasElementShape() {
return elementShapeBuilder_ != null || elementShape_ != null;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public xla.XlaData.Shape getElementShape() {
if (elementShapeBuilder_ == null) {
return elementShape_ == null ? xla.XlaData.Shape.getDefaultInstance() : elementShape_;
} else {
return elementShapeBuilder_.getMessage();
}
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public Builder setElementShape(xla.XlaData.Shape value) {
if (elementShapeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
elementShape_ = value;
onChanged();
} else {
elementShapeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public Builder setElementShape(
xla.XlaData.Shape.Builder builderForValue) {
if (elementShapeBuilder_ == null) {
elementShape_ = builderForValue.build();
onChanged();
} else {
elementShapeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public Builder mergeElementShape(xla.XlaData.Shape value) {
if (elementShapeBuilder_ == null) {
if (elementShape_ != null) {
elementShape_ =
xla.XlaData.Shape.newBuilder(elementShape_).mergeFrom(value).buildPartial();
} else {
elementShape_ = value;
}
onChanged();
} else {
elementShapeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public Builder clearElementShape() {
if (elementShapeBuilder_ == null) {
elementShape_ = null;
onChanged();
} else {
elementShape_ = null;
elementShapeBuilder_ = null;
}
return this;
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public xla.XlaData.Shape.Builder getElementShapeBuilder() {
onChanged();
return getElementShapeFieldBuilder().getBuilder();
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
public xla.XlaData.ShapeOrBuilder getElementShapeOrBuilder() {
if (elementShapeBuilder_ != null) {
return elementShapeBuilder_.getMessageOrBuilder();
} else {
return elementShape_ == null ?
xla.XlaData.Shape.getDefaultInstance() : elementShape_;
}
}
/**
*
* Individual element shape, excluding rows.
*
*
* .xla.Shape element_shape = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>
getElementShapeFieldBuilder() {
if (elementShapeBuilder_ == null) {
elementShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.Shape, xla.XlaData.Shape.Builder, xla.XlaData.ShapeOrBuilder>(
getElementShape(),
getParentForChildren(),
isClean());
elementShape_ = null;
}
return elementShapeBuilder_;
}
private long offset_ ;
/**
*
* Warning: ColumnIO does not support random-access, so use offset with
* caution in performance-critical scenarios.
*
*
* int64 offset = 4;
*/
public long getOffset() {
return offset_;
}
/**
*
* Warning: ColumnIO does not support random-access, so use offset with
* caution in performance-critical scenarios.
*
*
* int64 offset = 4;
*/
public Builder setOffset(long value) {
offset_ = value;
onChanged();
return this;
}
/**
*
* Warning: ColumnIO does not support random-access, so use offset with
* caution in performance-critical scenarios.
*
*
* int64 offset = 4;
*/
public Builder clearOffset() {
offset_ = 0L;
onChanged();
return this;
}
private long limit_ ;
/**
*
* Maximum number of elements (with shape element_shape) to load.
*
*
* int64 limit = 5;
*/
public long getLimit() {
return limit_;
}
/**
*
* Maximum number of elements (with shape element_shape) to load.
*
*
* int64 limit = 5;
*/
public Builder setLimit(long value) {
limit_ = value;
onChanged();
return this;
}
/**
*
* Maximum number of elements (with shape element_shape) to load.
*
*
* int64 limit = 5;
*/
public Builder clearLimit() {
limit_ = 0L;
onChanged();
return this;
}
private boolean zip_ ;
/**
*
* If more than one item is requested (via limit > 1), then this request
* attribute zips together the produced vectors.
*
*
* bool zip = 6;
*/
public boolean getZip() {
return zip_;
}
/**
*
* If more than one item is requested (via limit > 1), then this request
* attribute zips together the produced vectors.
*
*
* bool zip = 6;
*/
public Builder setZip(boolean value) {
zip_ = value;
onChanged();
return this;
}
/**
*
* If more than one item is requested (via limit > 1), then this request
* attribute zips together the produced vectors.
*
*
* bool zip = 6;
*/
public Builder clearZip() {
zip_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xla.LoadDataRequest)
}
// @@protoc_insertion_point(class_scope:xla.LoadDataRequest)
private static final xla.Xla.LoadDataRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new xla.Xla.LoadDataRequest();
}
public static xla.Xla.LoadDataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LoadDataRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LoadDataRequest(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 xla.Xla.LoadDataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LoadDataResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:xla.LoadDataResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .xla.GlobalDataHandle data = 1;
*/
boolean hasData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandle getData();
/**
* .xla.GlobalDataHandle data = 1;
*/
xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder();
/**
* .xla.Shape data_shape = 2;
*/
boolean hasDataShape();
/**
* .xla.Shape data_shape = 2;
*/
xla.XlaData.Shape getDataShape();
/**
* .xla.Shape data_shape = 2;
*/
xla.XlaData.ShapeOrBuilder getDataShapeOrBuilder();
/**
* int64 available_rows = 3;
*/
long getAvailableRows();
/**
* int64 rows_loaded = 4;
*/
long getRowsLoaded();
/**
* int64 nanoseconds = 5;
*/
long getNanoseconds();
}
/**
* Protobuf type {@code xla.LoadDataResponse}
*/
public static final class LoadDataResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xla.LoadDataResponse)
LoadDataResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use LoadDataResponse.newBuilder() to construct.
private LoadDataResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LoadDataResponse() {
availableRows_ = 0L;
rowsLoaded_ = 0L;
nanoseconds_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LoadDataResponse(
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: {
xla.XlaData.GlobalDataHandle.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(xla.XlaData.GlobalDataHandle.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 18: {
xla.XlaData.Shape.Builder subBuilder = null;
if (dataShape_ != null) {
subBuilder = dataShape_.toBuilder();
}
dataShape_ = input.readMessage(xla.XlaData.Shape.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataShape_);
dataShape_ = subBuilder.buildPartial();
}
break;
}
case 24: {
availableRows_ = input.readInt64();
break;
}
case 32: {
rowsLoaded_ = input.readInt64();
break;
}
case 40: {
nanoseconds_ = input.readInt64();
break;
}
default: {
if (!parseUnknownFieldProto3(
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 xla.Xla.internal_static_xla_LoadDataResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_LoadDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.LoadDataResponse.class, xla.Xla.LoadDataResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private xla.XlaData.GlobalDataHandle data_;
/**
* .xla.GlobalDataHandle data = 1;
*/
public boolean hasData() {
return data_ != null;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandle getData() {
return data_ == null ? xla.XlaData.GlobalDataHandle.getDefaultInstance() : data_;
}
/**
* .xla.GlobalDataHandle data = 1;
*/
public xla.XlaData.GlobalDataHandleOrBuilder getDataOrBuilder() {
return getData();
}
public static final int DATA_SHAPE_FIELD_NUMBER = 2;
private xla.XlaData.Shape dataShape_;
/**
* .xla.Shape data_shape = 2;
*/
public boolean hasDataShape() {
return dataShape_ != null;
}
/**
* .xla.Shape data_shape = 2;
*/
public xla.XlaData.Shape getDataShape() {
return dataShape_ == null ? xla.XlaData.Shape.getDefaultInstance() : dataShape_;
}
/**
* .xla.Shape data_shape = 2;
*/
public xla.XlaData.ShapeOrBuilder getDataShapeOrBuilder() {
return getDataShape();
}
public static final int AVAILABLE_ROWS_FIELD_NUMBER = 3;
private long availableRows_;
/**
* int64 available_rows = 3;
*/
public long getAvailableRows() {
return availableRows_;
}
public static final int ROWS_LOADED_FIELD_NUMBER = 4;
private long rowsLoaded_;
/**
* int64 rows_loaded = 4;
*/
public long getRowsLoaded() {
return rowsLoaded_;
}
public static final int NANOSECONDS_FIELD_NUMBER = 5;
private long nanoseconds_;
/**
* int64 nanoseconds = 5;
*/
public long getNanoseconds() {
return nanoseconds_;
}
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 (data_ != null) {
output.writeMessage(1, getData());
}
if (dataShape_ != null) {
output.writeMessage(2, getDataShape());
}
if (availableRows_ != 0L) {
output.writeInt64(3, availableRows_);
}
if (rowsLoaded_ != 0L) {
output.writeInt64(4, rowsLoaded_);
}
if (nanoseconds_ != 0L) {
output.writeInt64(5, nanoseconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getData());
}
if (dataShape_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDataShape());
}
if (availableRows_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, availableRows_);
}
if (rowsLoaded_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, rowsLoaded_);
}
if (nanoseconds_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, nanoseconds_);
}
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 xla.Xla.LoadDataResponse)) {
return super.equals(obj);
}
xla.Xla.LoadDataResponse other = (xla.Xla.LoadDataResponse) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && (hasDataShape() == other.hasDataShape());
if (hasDataShape()) {
result = result && getDataShape()
.equals(other.getDataShape());
}
result = result && (getAvailableRows()
== other.getAvailableRows());
result = result && (getRowsLoaded()
== other.getRowsLoaded());
result = result && (getNanoseconds()
== other.getNanoseconds());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasDataShape()) {
hash = (37 * hash) + DATA_SHAPE_FIELD_NUMBER;
hash = (53 * hash) + getDataShape().hashCode();
}
hash = (37 * hash) + AVAILABLE_ROWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAvailableRows());
hash = (37 * hash) + ROWS_LOADED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRowsLoaded());
hash = (37 * hash) + NANOSECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNanoseconds());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static xla.Xla.LoadDataResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.LoadDataResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.LoadDataResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.LoadDataResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.LoadDataResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static xla.Xla.LoadDataResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static xla.Xla.LoadDataResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.LoadDataResponse 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 xla.Xla.LoadDataResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static xla.Xla.LoadDataResponse 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 xla.Xla.LoadDataResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static xla.Xla.LoadDataResponse 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(xla.Xla.LoadDataResponse 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 xla.LoadDataResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:xla.LoadDataResponse)
xla.Xla.LoadDataResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return xla.Xla.internal_static_xla_LoadDataResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return xla.Xla.internal_static_xla_LoadDataResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
xla.Xla.LoadDataResponse.class, xla.Xla.LoadDataResponse.Builder.class);
}
// Construct using xla.Xla.LoadDataResponse.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 (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (dataShapeBuilder_ == null) {
dataShape_ = null;
} else {
dataShape_ = null;
dataShapeBuilder_ = null;
}
availableRows_ = 0L;
rowsLoaded_ = 0L;
nanoseconds_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return xla.Xla.internal_static_xla_LoadDataResponse_descriptor;
}
@java.lang.Override
public xla.Xla.LoadDataResponse getDefaultInstanceForType() {
return xla.Xla.LoadDataResponse.getDefaultInstance();
}
@java.lang.Override
public xla.Xla.LoadDataResponse build() {
xla.Xla.LoadDataResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public xla.Xla.LoadDataResponse buildPartial() {
xla.Xla.LoadDataResponse result = new xla.Xla.LoadDataResponse(this);
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (dataShapeBuilder_ == null) {
result.dataShape_ = dataShape_;
} else {
result.dataShape_ = dataShapeBuilder_.build();
}
result.availableRows_ = availableRows_;
result.rowsLoaded_ = rowsLoaded_;
result.nanoseconds_ = nanoseconds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof xla.Xla.LoadDataResponse) {
return mergeFrom((xla.Xla.LoadDataResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(xla.Xla.LoadDataResponse other) {
if (other == xla.Xla.LoadDataResponse.getDefaultInstance()) return this;
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasDataShape()) {
mergeDataShape(other.getDataShape());
}
if (other.getAvailableRows() != 0L) {
setAvailableRows(other.getAvailableRows());
}
if (other.getRowsLoaded() != 0L) {
setRowsLoaded(other.getRowsLoaded());
}
if (other.getNanoseconds() != 0L) {
setNanoseconds(other.getNanoseconds());
}
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 {
xla.Xla.LoadDataResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (xla.Xla.LoadDataResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private xla.XlaData.GlobalDataHandle data_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
xla.XlaData.GlobalDataHandle, xla.XlaData.GlobalDataHandle.Builder, xla.XlaData.GlobalDataHandleOrBuilder> dataBuilder_;
/**
*