/** * <code>repeated .Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { ucar.nc2.stream.NcStreamProto.Dimension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (ucar.nc2.stream.NcStreamProto.Dimension) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>optional string name = 1;</code> * * <pre> * short name - optional when private * </pre> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
public ucar.nc2.stream.NcStreamProto.Dimension buildPartial() { ucar.nc2.stream.NcStreamProto.Dimension result = new ucar.nc2.stream.NcStreamProto.Dimension(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.length_ = length_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.isUnlimited_ = isUnlimited_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.isVlen_ = isVlen_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.isPrivate_ = isPrivate_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public ucar.nc2.stream.NcStreamProto.Dimension buildPartial() { ucar.nc2.stream.NcStreamProto.Dimension result = new ucar.nc2.stream.NcStreamProto.Dimension(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.length_ = length_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.isUnlimited_ = isUnlimited_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.isVlen_ = isVlen_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.isPrivate_ = isPrivate_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>repeated .Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder setShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.set(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference; could use hash id * </pre> */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference; could use hash id * </pre> */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Dimension other) { if (other == ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasIsUnlimited()) { setIsUnlimited(other.getIsUnlimited()); } if (other.hasIsVlen()) { setIsVlen(other.getIsVlen()); } if (other.hasIsPrivate()) { setIsPrivate(other.getIsPrivate()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(ucar.nc2.stream.NcStreamProto.Dimension other) { if (other == ucar.nc2.stream.NcStreamProto.Dimension.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasIsUnlimited()) { setIsUnlimited(other.getIsUnlimited()); } if (other.hasIsVlen()) { setIsVlen(other.getIsVlen()); } if (other.hasIsPrivate()) { setIsPrivate(other.getIsPrivate()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>repeated .Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>optional string name = 1;</code> * * <pre> * short name - optional when private * </pre> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * <code>repeated .Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference * </pre> */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .ncstream.Dimension shape = 3;</code> * * <pre> * actual dimension instead of reference; could use hash id * </pre> */ public Builder addShape( int index, ucar.nc2.stream.NcStreamProto.Dimension.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /**