subBuilder.mergeFrom(library_); library_ = subBuilder.buildPartial();
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFunctionIsMutable(); function_.addAll(other.function_); onChanged(); functionBuilder_ = com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionFieldBuilder() : null; } else { functionBuilder_.addAllMessages(other.function_); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGradientIsMutable(); gradient_.addAll(other.gradient_); onChanged(); gradientBuilder_ = com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ? getGradientFieldBuilder() : null; } else { gradientBuilder_.addAllMessages(other.gradient_); this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
subBuilder.mergeFrom(library_); library_ = subBuilder.buildPartial();
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFunctionIsMutable(); function_.addAll(other.function_); onChanged(); functionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionFieldBuilder() : null; } else { functionBuilder_.addAllMessages(other.function_); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureGradientIsMutable(); gradient_.addAll(other.gradient_); onChanged(); gradientBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getGradientFieldBuilder() : null; } else { gradientBuilder_.addAllMessages(other.gradient_); this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
if (library_ != null) { library_ = org.tensorflow.framework.FunctionDefLibrary.newBuilder(library_).mergeFrom(value).buildPartial(); } else { library_ = value;
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder setGradient( int index, org.tensorflow.framework.GradientDef value) { if (gradientBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGradientIsMutable(); gradient_.set(index, value); onChanged(); } else { gradientBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .tensorflow.FunctionDef function = 1;</code> */ public Builder setFunction( int index, org.tensorflow.framework.FunctionDef value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionIsMutable(); function_.set(index, value); onChanged(); } else { functionBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .tensorflow.FunctionDef function = 1;</code> */ public Builder addFunction(org.tensorflow.framework.FunctionDef value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionIsMutable(); function_.add(value); onChanged(); } else { functionBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .tensorflow.FunctionDef function = 1;</code> */ public Builder addFunction( int index, org.tensorflow.framework.FunctionDef value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionIsMutable(); function_.add(index, value); onChanged(); } else { functionBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder addGradient( int index, org.tensorflow.framework.GradientDef value) { if (gradientBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGradientIsMutable(); gradient_.add(index, value); onChanged(); } else { gradientBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder addGradient(org.tensorflow.framework.GradientDef value) { if (gradientBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureGradientIsMutable(); gradient_.add(value); onChanged(); } else { gradientBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder addAllGradient( java.lang.Iterable<? extends org.tensorflow.framework.GradientDef> values) { if (gradientBuilder_ == null) { ensureGradientIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, gradient_); onChanged(); } else { gradientBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .tensorflow.FunctionDef function = 1;</code> */ public Builder addAllFunction( java.lang.Iterable<? extends org.tensorflow.framework.FunctionDef> values) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, function_); onChanged(); } else { functionBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .tensorflow.FunctionDef function = 1;</code> */ public Builder addFunction( int index, org.tensorflow.framework.FunctionDef.Builder builderForValue) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.add(index, builderForValue.build()); onChanged(); } else { functionBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
private com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.GradientDef, org.tensorflow.framework.GradientDef.Builder, org.tensorflow.framework.GradientDefOrBuilder> getGradientFieldBuilder() { if (gradientBuilder_ == null) { gradientBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.GradientDef, org.tensorflow.framework.GradientDef.Builder, org.tensorflow.framework.GradientDefOrBuilder>( gradient_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); gradient_ = null; } return gradientBuilder_; } public final Builder setUnknownFields(
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder addGradient( int index, org.tensorflow.framework.GradientDef.Builder builderForValue) { if (gradientBuilder_ == null) { ensureGradientIsMutable(); gradient_.add(index, builderForValue.build()); onChanged(); } else { gradientBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder addGradient( org.tensorflow.framework.GradientDef.Builder builderForValue) { if (gradientBuilder_ == null) { ensureGradientIsMutable(); gradient_.add(builderForValue.build()); onChanged(); } else { gradientBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.FunctionDef function = 1;</code> */ public Builder setFunction( int index, org.tensorflow.framework.FunctionDef.Builder builderForValue) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.set(index, builderForValue.build()); onChanged(); } else { functionBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.GradientDef gradient = 2;</code> */ public Builder setGradient( int index, org.tensorflow.framework.GradientDef.Builder builderForValue) { if (gradientBuilder_ == null) { ensureGradientIsMutable(); gradient_.set(index, builderForValue.build()); onChanged(); } else { gradientBuilder_.setMessage(index, builderForValue.build()); } return this; } /**