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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new 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();
}
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;
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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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;
}
@java.lang.Override
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,
org.nd4j.shade.protobuf.AbstractMessage.InternalOneOfEnum {
COND_CTXT(1),
WHILE_CTXT(2),
CTXT_NOT_SET(0);
private final int value;
private CtxtCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @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;
* @return Whether the condCtxt field is set.
*/
@java.lang.Override
public boolean hasCondCtxt() {
return ctxtCase_ == 1;
}
/**
* .tensorflow.CondContextDef cond_ctxt = 1;
* @return The condCtxt.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
* @return Whether the whileCtxt field is set.
*/
@java.lang.Override
public boolean hasWhileCtxt() {
return ctxtCase_ == 2;
}
/**
* .tensorflow.WhileContextDef while_ctxt = 2;
* @return The whileCtxt.
*/
@java.lang.Override
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;
*/
@java.lang.Override
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;
@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(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);
}
@java.lang.Override
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;
if (!getCtxtCase().equals(other.getCtxtCase())) return false;
switch (ctxtCase_) {
case 1:
if (!getCondCtxt()
.equals(other.getCondCtxt())) return false;
break;
case 2:
if (!getWhileCtxt()
.equals(other.getWhileCtxt())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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);
}
@java.lang.Override
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);
}
@java.lang.Override
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.
*