/** * <code>repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;</code> */ public Builder setConstNodeInfo( int index, org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.Builder builderForValue) { if (constNodeInfoBuilder_ == null) { ensureConstNodeInfoIsMutable(); constNodeInfo_.set(index, builderForValue.build()); onChanged(); } else { constNodeInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo other) { if (other == org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getNodeId() != 0) { setNodeId(other.getNodeId()); } if (!other.shape_.isEmpty()) { if (shape_.isEmpty()) { shape_ = other.shape_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureShapeIsMutable(); shape_.addAll(other.shape_); } onChanged(); } if (other.getData() != com.github.os72.protobuf351.ByteString.EMPTY) { setData(other.getData()); } if (other.dtype_ != 0) { setDtypeValue(other.getDtypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo buildPartial() { org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo result = new org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.nodeId_ = nodeId_; if (((bitField0_ & 0x00000004) == 0x00000004)) { shape_ = java.util.Collections.unmodifiableList(shape_); bitField0_ = (bitField0_ & ~0x00000004); } result.shape_ = shape_; result.data_ = data_; result.dtype_ = dtype_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom( com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;</code> */ public Builder addConstNodeInfo( int index, org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.Builder builderForValue) { if (constNodeInfoBuilder_ == null) { ensureConstNodeInfoIsMutable(); constNodeInfo_.add(index, builderForValue.build()); onChanged(); } else { constNodeInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .tensorflow.GraphTransferInfo.ConstNodeInfo const_node_info = 2;</code> */ public Builder addConstNodeInfo( org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo.Builder builderForValue) { if (constNodeInfoBuilder_ == null) { ensureConstNodeInfoIsMutable(); constNodeInfo_.add(builderForValue.build()); onChanged(); } else { constNodeInfoBuilder_.addMessage(builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>string name = 1;</code> */ public Builder setNameBytes( com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
public static Builder newBuilder(org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * <code>.tensorflow.DataType dtype = 5;</code> */ public Builder setDtypeValue(int value) { dtype_ = value; onChanged(); return this; } /**
/** * <code>bytes data = 4;</code> */ public Builder setData(com.github.os72.protobuf351.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /**
/** * <code>repeated int64 shape = 3;</code> */ public Builder clearShape() { shape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; }
/** * <code>int32 node_id = 2;</code> */ public Builder setNodeId(int value) { nodeId_ = value; onChanged(); return this; } /**
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override protected Builder newBuilderForType( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private Builder( com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
/** * <code>.tensorflow.DataType dtype = 5;</code> */ public Builder clearDtype() { dtype_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
public org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo build() { org.tensorflow.framework.GraphTransferInfo.ConstNodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }