/** * <code>repeated .tensorflow.ApiDef.Arg in_arg = 4;</code> */ public Builder addInArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.add(index, builderForValue.build()); onChanged(); } else { inArgBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.tensorflow.framework.ApiDef.Arg other) { if (other == org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * Note: this will replace any inherited arg doc. There is no * current way of modifying arg descriptions (other than replacing * them entirely) as can be done with op descriptions. * </pre> * * <code>string description = 3;</code> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Change the name used to access this arg in the API from what * is used in the GraphDef. Note that these names in `backticks` * will also be replaced in the summary & description fields. * </pre> * * <code>string rename_to = 2;</code> */ public Builder setRenameToBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); renameTo_ = value; onChanged(); return this; }
/** * <pre> * Note: this will replace any inherited arg doc. There is no * current way of modifying arg descriptions (other than replacing * them entirely) as can be done with op descriptions. * </pre> * * <code>string description = 3;</code> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /**
/** * <pre> * Change the name used to access this arg in the API from what * is used in the GraphDef. Note that these names in `backticks` * will also be replaced in the summary & description fields. * </pre> * * <code>string rename_to = 2;</code> */ public Builder setRenameTo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } renameTo_ = value; onChanged(); return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.ApiDef.Arg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.ApiDef.Arg) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom(org.tensorflow.framework.ApiDef.Arg other) { if (other == org.tensorflow.framework.ApiDef.Arg.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRenameTo().isEmpty()) { renameTo_ = other.renameTo_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>repeated .tensorflow.ApiDef.Arg out_arg = 5;</code> */ public Builder addOutArg( org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.add(builderForValue.build()); onChanged(); } else { outArgBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.ApiDef.Arg out_arg = 5;</code> */ public Builder setOutArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.set(index, builderForValue.build()); onChanged(); } else { outArgBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * Note: this will replace any inherited arg doc. There is no * current way of modifying arg descriptions (other than replacing * them entirely) as can be done with op descriptions. * </pre> * * <code>string description = 3;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * <pre> * Change the name used to access this arg in the API from what * is used in the GraphDef. Note that these names in `backticks` * will also be replaced in the summary & description fields. * </pre> * * <code>string rename_to = 2;</code> */ public Builder clearRenameTo() { renameTo_ = getDefaultInstance().getRenameTo(); onChanged(); return this; } /**
/** * <code>repeated .tensorflow.ApiDef.Arg out_arg = 5;</code> */ public Builder addOutArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (outArgBuilder_ == null) { ensureOutArgIsMutable(); outArg_.add(index, builderForValue.build()); onChanged(); } else { outArgBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.ApiDef.Arg in_arg = 4;</code> */ public Builder setInArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.set(index, builderForValue.build()); onChanged(); } else { inArgBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.ApiDef.Arg in_arg = 4;</code> */ public Builder addInArg( org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.add(builderForValue.build()); onChanged(); } else { inArgBuilder_.addMessage(builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>repeated .tensorflow.ApiDef.Arg in_arg = 4;</code> */ public Builder addInArg( int index, org.tensorflow.framework.ApiDef.Arg.Builder builderForValue) { if (inArgBuilder_ == null) { ensureInArgIsMutable(); inArg_.add(index, builderForValue.build()); onChanged(); } else { inArgBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
public static Builder newBuilder(org.tensorflow.framework.ApiDef.Arg prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {