@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto)) { return super.equals(obj); } com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto other = (com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto) obj; boolean result = true; result = result && (hasContextId() == other.hasContextId()); if (hasContextId()) { result = result && getContextId() .equals(other.getContextId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getContextIdBytes()); } getUnknownFields().writeTo(output); }
removeContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance(); } else { removeContextBuilder_.clear();
this.removeContext(controlMessage.getRemoveContext().getContextId()); } else if (controlMessage.hasStartTask()) { this.startTask(controlMessage.getStartTask());
if (hasRemoveContext()) { result = result && getRemoveContext() .equals(other.getRemoveContext());
hash = (53 * hash) + getRemoveContext().hashCode();
/** * <code>optional .RemoveContextProto remove_context = 6;</code> */ public Builder mergeRemoveContext(com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto value) { if (removeContextBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && removeContext_ != com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance()) { removeContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.newBuilder(removeContext_).mergeFrom(value).buildPartial(); } else { removeContext_ = value; } onChanged(); } else { removeContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
public com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto getDefaultInstanceForType() { return com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasContextId()) { hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; hash = (53 * hash) + getContextId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional .RemoveContextProto remove_context = 6;</code> */ public Builder clearRemoveContext() { if (removeContextBuilder_ == null) { removeContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance(); onChanged(); } else { removeContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
/** * <code>required string context_id = 1;</code> */ public Builder clearContextId() { bitField0_ = (bitField0_ & ~0x00000001); contextId_ = getDefaultInstance().getContextId(); onChanged(); return this; } /**
public Builder mergeFrom(com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto other) { if (other == com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance()) return this; if (other.hasContextId()) { bitField0_ |= 0x00000001; contextId_ = other.contextId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasContextId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
private void initFields() { taskMessage_ = com.google.protobuf.ByteString.EMPTY; contextMessage_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance(); addContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance(); removeContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance(); startTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance(); stopTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance(); suspendTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
public com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto buildPartial() { com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto result = new com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.contextId_ = contextId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getContextIdBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }