/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() { if (payloadFormatCommandBuilder_ != null) { return payloadFormatCommandBuilder_.getMessageOrBuilder(); } else { return payloadFormatCommand_ == null ? com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance() : payloadFormatCommand_; } } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFormat()) { hash = (37 * hash) + FORMAT_FIELD_NUMBER; hash = (53 * hash) + format_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (hasPayloadFormatCommand()) { result = result && getPayloadFormatCommand() .equals(other.getPayloadFormatCommand());
hash = (53 * hash) + getPayloadFormatCommand().hashCode();
/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public Builder mergePayloadFormatCommand(com.openxc.BinaryMessages.PayloadFormatCommand value) { if (payloadFormatCommandBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && payloadFormatCommand_ != null && payloadFormatCommand_ != com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) { payloadFormatCommand_ = com.openxc.BinaryMessages.PayloadFormatCommand.newBuilder(payloadFormatCommand_).mergeFrom(value).buildPartial(); } else { payloadFormatCommand_ = value; } onChanged(); } else { payloadFormatCommandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.openxc.BinaryMessages.PayloadFormatCommand)) { return super.equals(obj); } com.openxc.BinaryMessages.PayloadFormatCommand other = (com.openxc.BinaryMessages.PayloadFormatCommand) obj; boolean result = true; result = result && (hasFormat() == other.hasFormat()); if (hasFormat()) { result = result && format_ == other.format_; } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public com.openxc.BinaryMessages.PayloadFormatCommand getDefaultInstanceForType() { return com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance(); }
/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() { if (payloadFormatCommandBuilder_ == null) { return payloadFormatCommand_ == null ? com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance() : payloadFormatCommand_; } else { return payloadFormatCommandBuilder_.getMessage(); } } /**
/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public com.openxc.BinaryMessages.PayloadFormatCommand getPayloadFormatCommand() { return payloadFormatCommand_ == null ? com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance() : payloadFormatCommand_; } /**
public com.openxc.BinaryMessages.PayloadFormatCommand build() { com.openxc.BinaryMessages.PayloadFormatCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.openxc.BinaryMessages.PayloadFormatCommand.getDescriptor().getEnumTypes().get(0); }
/** * <code>optional .openxc.PayloadFormatCommand payload_format_command = 5;</code> */ public com.openxc.BinaryMessages.PayloadFormatCommandOrBuilder getPayloadFormatCommandOrBuilder() { return payloadFormatCommand_ == null ? com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance() : payloadFormatCommand_; }
public com.openxc.BinaryMessages.PayloadFormatCommand buildPartial() { com.openxc.BinaryMessages.PayloadFormatCommand result = new com.openxc.BinaryMessages.PayloadFormatCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.format_ = format_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder mergeFrom(com.openxc.BinaryMessages.PayloadFormatCommand other) { if (other == com.openxc.BinaryMessages.PayloadFormatCommand.getDefaultInstance()) return this; if (other.hasFormat()) { setFormat(other.getFormat()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }