All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.ControlFlowContextDef Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// 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.
   * 
* * Protobuf type {@code tensorflow.ControlFlowContextDef} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.ControlFlowContextDef) org.tensorflow.framework.ControlFlowContextDefOrBuilder { 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); } // Construct using org.tensorflow.framework.ControlFlowContextDef.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); ctxtCase_ = 0; ctxt_ = null; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.ControlFlowProtos.internal_static_tensorflow_ControlFlowContextDef_descriptor; } public org.tensorflow.framework.ControlFlowContextDef getDefaultInstanceForType() { return org.tensorflow.framework.ControlFlowContextDef.getDefaultInstance(); } public org.tensorflow.framework.ControlFlowContextDef build() { org.tensorflow.framework.ControlFlowContextDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.ControlFlowContextDef buildPartial() { org.tensorflow.framework.ControlFlowContextDef result = new org.tensorflow.framework.ControlFlowContextDef(this); if (ctxtCase_ == 1) { if (condCtxtBuilder_ == null) { result.ctxt_ = ctxt_; } else { result.ctxt_ = condCtxtBuilder_.build(); } } if (ctxtCase_ == 2) { if (whileCtxtBuilder_ == null) { result.ctxt_ = ctxt_; } else { result.ctxt_ = whileCtxtBuilder_.build(); } } result.ctxtCase_ = ctxtCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.ControlFlowContextDef) { return mergeFrom((org.tensorflow.framework.ControlFlowContextDef)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.ControlFlowContextDef other) { if (other == org.tensorflow.framework.ControlFlowContextDef.getDefaultInstance()) return this; switch (other.getCtxtCase()) { case COND_CTXT: { mergeCondCtxt(other.getCondCtxt()); break; } case WHILE_CTXT: { mergeWhileCtxt(other.getWhileCtxt()); break; } case CTXT_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ControlFlowContextDef parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ControlFlowContextDef) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int ctxtCase_ = 0; private java.lang.Object ctxt_; public CtxtCase getCtxtCase() { return CtxtCase.forNumber( ctxtCase_); } public Builder clearCtxt() { ctxtCase_ = 0; ctxt_ = null; onChanged(); return this; } private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CondContextDef, org.tensorflow.framework.CondContextDef.Builder, org.tensorflow.framework.CondContextDefOrBuilder> condCtxtBuilder_; /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public boolean hasCondCtxt() { return ctxtCase_ == 1; } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public org.tensorflow.framework.CondContextDef getCondCtxt() { if (condCtxtBuilder_ == null) { if (ctxtCase_ == 1) { return (org.tensorflow.framework.CondContextDef) ctxt_; } return org.tensorflow.framework.CondContextDef.getDefaultInstance(); } else { if (ctxtCase_ == 1) { return condCtxtBuilder_.getMessage(); } return org.tensorflow.framework.CondContextDef.getDefaultInstance(); } } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public Builder setCondCtxt(org.tensorflow.framework.CondContextDef value) { if (condCtxtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ctxt_ = value; onChanged(); } else { condCtxtBuilder_.setMessage(value); } ctxtCase_ = 1; return this; } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public Builder setCondCtxt( org.tensorflow.framework.CondContextDef.Builder builderForValue) { if (condCtxtBuilder_ == null) { ctxt_ = builderForValue.build(); onChanged(); } else { condCtxtBuilder_.setMessage(builderForValue.build()); } ctxtCase_ = 1; return this; } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public Builder mergeCondCtxt(org.tensorflow.framework.CondContextDef value) { if (condCtxtBuilder_ == null) { if (ctxtCase_ == 1 && ctxt_ != org.tensorflow.framework.CondContextDef.getDefaultInstance()) { ctxt_ = org.tensorflow.framework.CondContextDef.newBuilder((org.tensorflow.framework.CondContextDef) ctxt_) .mergeFrom(value).buildPartial(); } else { ctxt_ = value; } onChanged(); } else { if (ctxtCase_ == 1) { condCtxtBuilder_.mergeFrom(value); } condCtxtBuilder_.setMessage(value); } ctxtCase_ = 1; return this; } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public Builder clearCondCtxt() { if (condCtxtBuilder_ == null) { if (ctxtCase_ == 1) { ctxtCase_ = 0; ctxt_ = null; onChanged(); } } else { if (ctxtCase_ == 1) { ctxtCase_ = 0; ctxt_ = null; } condCtxtBuilder_.clear(); } return this; } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public org.tensorflow.framework.CondContextDef.Builder getCondCtxtBuilder() { return getCondCtxtFieldBuilder().getBuilder(); } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ public org.tensorflow.framework.CondContextDefOrBuilder getCondCtxtOrBuilder() { if ((ctxtCase_ == 1) && (condCtxtBuilder_ != null)) { return condCtxtBuilder_.getMessageOrBuilder(); } else { if (ctxtCase_ == 1) { return (org.tensorflow.framework.CondContextDef) ctxt_; } return org.tensorflow.framework.CondContextDef.getDefaultInstance(); } } /** * .tensorflow.CondContextDef cond_ctxt = 1; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CondContextDef, org.tensorflow.framework.CondContextDef.Builder, org.tensorflow.framework.CondContextDefOrBuilder> getCondCtxtFieldBuilder() { if (condCtxtBuilder_ == null) { if (!(ctxtCase_ == 1)) { ctxt_ = org.tensorflow.framework.CondContextDef.getDefaultInstance(); } condCtxtBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CondContextDef, org.tensorflow.framework.CondContextDef.Builder, org.tensorflow.framework.CondContextDefOrBuilder>( (org.tensorflow.framework.CondContextDef) ctxt_, getParentForChildren(), isClean()); ctxt_ = null; } ctxtCase_ = 1; onChanged();; return condCtxtBuilder_; } private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.WhileContextDef, org.tensorflow.framework.WhileContextDef.Builder, org.tensorflow.framework.WhileContextDefOrBuilder> whileCtxtBuilder_; /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public boolean hasWhileCtxt() { return ctxtCase_ == 2; } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public org.tensorflow.framework.WhileContextDef getWhileCtxt() { if (whileCtxtBuilder_ == null) { if (ctxtCase_ == 2) { return (org.tensorflow.framework.WhileContextDef) ctxt_; } return org.tensorflow.framework.WhileContextDef.getDefaultInstance(); } else { if (ctxtCase_ == 2) { return whileCtxtBuilder_.getMessage(); } return org.tensorflow.framework.WhileContextDef.getDefaultInstance(); } } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public Builder setWhileCtxt(org.tensorflow.framework.WhileContextDef value) { if (whileCtxtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ctxt_ = value; onChanged(); } else { whileCtxtBuilder_.setMessage(value); } ctxtCase_ = 2; return this; } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public Builder setWhileCtxt( org.tensorflow.framework.WhileContextDef.Builder builderForValue) { if (whileCtxtBuilder_ == null) { ctxt_ = builderForValue.build(); onChanged(); } else { whileCtxtBuilder_.setMessage(builderForValue.build()); } ctxtCase_ = 2; return this; } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public Builder mergeWhileCtxt(org.tensorflow.framework.WhileContextDef value) { if (whileCtxtBuilder_ == null) { if (ctxtCase_ == 2 && ctxt_ != org.tensorflow.framework.WhileContextDef.getDefaultInstance()) { ctxt_ = org.tensorflow.framework.WhileContextDef.newBuilder((org.tensorflow.framework.WhileContextDef) ctxt_) .mergeFrom(value).buildPartial(); } else { ctxt_ = value; } onChanged(); } else { if (ctxtCase_ == 2) { whileCtxtBuilder_.mergeFrom(value); } whileCtxtBuilder_.setMessage(value); } ctxtCase_ = 2; return this; } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public Builder clearWhileCtxt() { if (whileCtxtBuilder_ == null) { if (ctxtCase_ == 2) { ctxtCase_ = 0; ctxt_ = null; onChanged(); } } else { if (ctxtCase_ == 2) { ctxtCase_ = 0; ctxt_ = null; } whileCtxtBuilder_.clear(); } return this; } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public org.tensorflow.framework.WhileContextDef.Builder getWhileCtxtBuilder() { return getWhileCtxtFieldBuilder().getBuilder(); } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ public org.tensorflow.framework.WhileContextDefOrBuilder getWhileCtxtOrBuilder() { if ((ctxtCase_ == 2) && (whileCtxtBuilder_ != null)) { return whileCtxtBuilder_.getMessageOrBuilder(); } else { if (ctxtCase_ == 2) { return (org.tensorflow.framework.WhileContextDef) ctxt_; } return org.tensorflow.framework.WhileContextDef.getDefaultInstance(); } } /** * .tensorflow.WhileContextDef while_ctxt = 2; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.WhileContextDef, org.tensorflow.framework.WhileContextDef.Builder, org.tensorflow.framework.WhileContextDefOrBuilder> getWhileCtxtFieldBuilder() { if (whileCtxtBuilder_ == null) { if (!(ctxtCase_ == 2)) { ctxt_ = org.tensorflow.framework.WhileContextDef.getDefaultInstance(); } whileCtxtBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.WhileContextDef, org.tensorflow.framework.WhileContextDef.Builder, org.tensorflow.framework.WhileContextDefOrBuilder>( (org.tensorflow.framework.WhileContextDef) ctxt_, getParentForChildren(), isClean()); ctxt_ = null; } ctxtCase_ = 2; onChanged();; return whileCtxtBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.ControlFlowContextDef) } // @@protoc_insertion_point(class_scope:tensorflow.ControlFlowContextDef) private static final org.tensorflow.framework.ControlFlowContextDef DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.ControlFlowContextDef(); } public static org.tensorflow.framework.ControlFlowContextDef getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public ControlFlowContextDef parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new ControlFlowContextDef(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.ControlFlowContextDef getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy