Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/control_flow.proto
package org.tensorflow.framework;
/**
*
* Container for any kind of control flow context. Any other control flow
* contexts that are added below should also be added here.
*
*
* Protobuf type {@code tensorflow.ControlFlowContextDef}
*/
public final class ControlFlowContextDef extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.ControlFlowContextDef)
ControlFlowContextDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use ControlFlowContextDef.newBuilder() to construct.
private ControlFlowContextDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ControlFlowContextDef() {
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ControlFlowContextDef(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.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;
}
case 10: {
org.tensorflow.framework.CondContextDef.Builder subBuilder = null;
if (ctxtCase_ == 1) {
subBuilder = ((org.tensorflow.framework.CondContextDef) ctxt_).toBuilder();
}
ctxt_ =
input.readMessage(org.tensorflow.framework.CondContextDef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.CondContextDef) ctxt_);
ctxt_ = subBuilder.buildPartial();
}
ctxtCase_ = 1;
break;
}
case 18: {
org.tensorflow.framework.WhileContextDef.Builder subBuilder = null;
if (ctxtCase_ == 2) {
subBuilder = ((org.tensorflow.framework.WhileContextDef) ctxt_).toBuilder();
}
ctxt_ =
input.readMessage(org.tensorflow.framework.WhileContextDef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.tensorflow.framework.WhileContextDef) ctxt_);
ctxt_ = subBuilder.buildPartial();
}
ctxtCase_ = 2;
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.ControlFlowContextDef.class, org.tensorflow.framework.ControlFlowContextDef.Builder.class);
}
private int ctxtCase_ = 0;
private java.lang.Object ctxt_;
public enum CtxtCase
implements org.nd4j.shade.protobuf.Internal.EnumLite {
COND_CTXT(1),
WHILE_CTXT(2),
CTXT_NOT_SET(0);
private final int value;
private CtxtCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CtxtCase valueOf(int value) {
return forNumber(value);
}
public static CtxtCase forNumber(int value) {
switch (value) {
case 1: return COND_CTXT;
case 2: return WHILE_CTXT;
case 0: return CTXT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public CtxtCase
getCtxtCase() {
return CtxtCase.forNumber(
ctxtCase_);
}
public static final int COND_CTXT_FIELD_NUMBER = 1;
/**
* .tensorflow.CondContextDef cond_ctxt = 1;
*/
public boolean hasCondCtxt() {
return ctxtCase_ == 1;
}
/**
* .tensorflow.CondContextDef cond_ctxt = 1;
*/
public org.tensorflow.framework.CondContextDef getCondCtxt() {
if (ctxtCase_ == 1) {
return (org.tensorflow.framework.CondContextDef) ctxt_;
}
return org.tensorflow.framework.CondContextDef.getDefaultInstance();
}
/**
* .tensorflow.CondContextDef cond_ctxt = 1;
*/
public org.tensorflow.framework.CondContextDefOrBuilder getCondCtxtOrBuilder() {
if (ctxtCase_ == 1) {
return (org.tensorflow.framework.CondContextDef) ctxt_;
}
return org.tensorflow.framework.CondContextDef.getDefaultInstance();
}
public static final int WHILE_CTXT_FIELD_NUMBER = 2;
/**
* .tensorflow.WhileContextDef while_ctxt = 2;
*/
public boolean hasWhileCtxt() {
return ctxtCase_ == 2;
}
/**
* .tensorflow.WhileContextDef while_ctxt = 2;
*/
public org.tensorflow.framework.WhileContextDef getWhileCtxt() {
if (ctxtCase_ == 2) {
return (org.tensorflow.framework.WhileContextDef) ctxt_;
}
return org.tensorflow.framework.WhileContextDef.getDefaultInstance();
}
/**
* .tensorflow.WhileContextDef while_ctxt = 2;
*/
public org.tensorflow.framework.WhileContextDefOrBuilder getWhileCtxtOrBuilder() {
if (ctxtCase_ == 2) {
return (org.tensorflow.framework.WhileContextDef) ctxt_;
}
return org.tensorflow.framework.WhileContextDef.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ctxtCase_ == 1) {
output.writeMessage(1, (org.tensorflow.framework.CondContextDef) ctxt_);
}
if (ctxtCase_ == 2) {
output.writeMessage(2, (org.tensorflow.framework.WhileContextDef) ctxt_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ctxtCase_ == 1) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(1, (org.tensorflow.framework.CondContextDef) ctxt_);
}
if (ctxtCase_ == 2) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, (org.tensorflow.framework.WhileContextDef) ctxt_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.ControlFlowContextDef)) {
return super.equals(obj);
}
org.tensorflow.framework.ControlFlowContextDef other = (org.tensorflow.framework.ControlFlowContextDef) obj;
boolean result = true;
result = result && getCtxtCase().equals(
other.getCtxtCase());
if (!result) return false;
switch (ctxtCase_) {
case 1:
result = result && getCondCtxt()
.equals(other.getCondCtxt());
break;
case 2:
result = result && getWhileCtxt()
.equals(other.getWhileCtxt());
break;
case 0:
default:
}
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();
switch (ctxtCase_) {
case 1:
hash = (37 * hash) + COND_CTXT_FIELD_NUMBER;
hash = (53 * hash) + getCondCtxt().hashCode();
break;
case 2:
hash = (37 * hash) + WHILE_CTXT_FIELD_NUMBER;
hash = (53 * hash) + getWhileCtxt().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.ControlFlowContextDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ControlFlowContextDef parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.ControlFlowContextDef parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.ControlFlowContextDef prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Container for any kind of control flow context. Any other control flow
* contexts that are added below should also be added here.
*