/** * <code>optional .RootInputDataInformationEventProto root_input_data_information_event = 5;</code> */ public Builder setRootInputDataInformationEvent( org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.Builder builderForValue) { if (rootInputDataInformationEventBuilder_ == null) { rootInputDataInformationEvent_ = builderForValue.build(); onChanged(); } else { rootInputDataInformationEventBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /**
subBuilder.mergeFrom(rootInputDataInformationEvent_); rootInputDataInformationEvent_ = subBuilder.buildPartial();
/** * <code>optional .RootInputDataInformationEventProto root_input_data_information_event = 5;</code> */ public Builder mergeRootInputDataInformationEvent(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto value) { if (rootInputDataInformationEventBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && rootInputDataInformationEvent_ != org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) { rootInputDataInformationEvent_ = org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.newBuilder(rootInputDataInformationEvent_).mergeFrom(value).buildPartial(); } else { rootInputDataInformationEvent_ = value; } onChanged(); } else { rootInputDataInformationEventBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
private Builder() { maybeForceBuilderInitialization(); }
public static Builder newBuilder(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto) { return mergeFrom((org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public Builder mergeFrom(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other) { if (other == org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) return this; if (other.hasSourceIndex()) { setSourceIndex(other.getSourceIndex()); } if (other.hasTargetIndex()) { setTargetIndex(other.getTargetIndex()); } if (other.hasUserPayload()) { setUserPayload(other.getUserPayload()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public static EventProtos.RootInputDataInformationEventProto convertRootInputDataInformationEventToProto(InputDataInformationEvent event) { EventProtos.RootInputDataInformationEventProto.Builder builder = EventProtos.RootInputDataInformationEventProto.newBuilder(); builder.setSourceIndex(event.getSourceIndex()); builder.setTargetIndex(event.getTargetIndex()); if (event.getUserPayload() != null) { builder.setUserPayload(ByteString.copyFrom(event.getUserPayload())); } return builder.build(); }
public org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto build() { org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }