/** * <code>repeated string errors = 4;</code> */ public Builder addErrorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); return this; }
/** * <code>repeated string uuids = 8;</code> */ public Builder addAllUuids(java.lang.Iterable<java.lang.String> values) { ensureUuidsIsMutable(); super.addAll(values, uuids_); onChanged(); return this; }
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { datawave.ingest.protobuf.RawRecordContainer.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (datawave.ingest.protobuf.RawRecordContainer.Data) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
return this; if (other.hasDate()) { setDate(other.getDate()); onChanged(); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureErrorsIsMutable(); errors_.addAll(other.errors_); onChanged(); setVisibility(other.getVisibility()); onChanged(); setRawRecordNumber(other.getRawRecordNumber()); bitField0_ = (bitField0_ & ~0x00000080); } else { ensureUuidsIsMutable(); uuids_.addAll(other.uuids_); onChanged(); setRawData(other.getRawData());
@Override public void write(DataOutput out) throws IOException { Data.Builder builder = Data.newBuilder(); builder.setDate(this.eventDate); if (null != this.dataType) builder.setDataType(this.dataType.typeName()); if (null != this.uid) builder.setUid(this.uid.toString()); for (String error : errors) builder.addErrors(error); if (null != this.visibility) builder.setVisibility(ByteString.copyFrom(this.visibility.getExpression())); if (null != this.rawFileName) builder.setRawFileName(this.rawFileName); builder.setRawRecordNumber(this.rawRecordNumber); builder.setRawFileTimeStamp(this.rawFileTimeStamp); builder.addAllUuids(this.ids); if (null != this.rawData) builder.setRawData(ByteString.copyFrom(this.rawData)); builder.setRequiresMasking(this.requiresMasking); Data data = builder.build(); byte[] buf = data.toByteArray(); out.writeInt(buf.length); out.write(buf); this.dataOutputSize = buf.length; }
private static Builder create() { return new Builder(); }
public static Builder newBuilder(datawave.ingest.protobuf.RawRecordContainer.Data prototype) { return newBuilder().mergeFrom(prototype); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }
@java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { return new Builder(parent); }
public datawave.ingest.protobuf.RawRecordContainer.Data build() { datawave.ingest.protobuf.RawRecordContainer.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>repeated string errors = 4;</code> */ public Builder setErrors(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.set(index, value); onChanged(); return this; }
/** * <code>repeated string uuids = 8;</code> */ public Builder addUuidsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureUuidsIsMutable(); uuids_.add(value); onChanged(); return this; }
/** * <code>repeated string errors = 4;</code> */ public Builder addErrors(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); return this; }
/** * <code>repeated string uuids = 8;</code> */ public Builder addUuids(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUuidsIsMutable(); uuids_.add(value); onChanged(); return this; }
/** * <code>repeated string uuids = 8;</code> */ public Builder setUuids(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUuidsIsMutable(); uuids_.set(index, value); onChanged(); return this; }
/** * <code>repeated string errors = 4;</code> */ public Builder addAllErrors(java.lang.Iterable<java.lang.String> values) { ensureErrorsIsMutable(); super.addAll(values, errors_); onChanged(); return this; }
private Builder() { maybeForceBuilderInitialization(); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof datawave.ingest.protobuf.RawRecordContainer.Data) { return mergeFrom((datawave.ingest.protobuf.RawRecordContainer.Data) other); } else { super.mergeFrom(other); return this; } }