public static final class

BinaryMessages.DiagnosticResponse.Builder

extends GeneratedMessage.Builder<BuilderType extends Builder>
implements BinaryMessages.DiagnosticResponseOrBuilder
java.lang.Object
   ↳ com.google.protobuf.AbstractMessageLite.Builder<BuilderType extends com.google.protobuf.AbstractMessageLite.Builder>
     ↳ com.google.protobuf.AbstractMessage.Builder<BuilderType extends com.google.protobuf.AbstractMessage.Builder>
       ↳ com.google.protobuf.GeneratedMessage.Builder<BuilderType extends com.google.protobuf.GeneratedMessage.Builder>
         ↳ com.openxc.BinaryMessages.DiagnosticResponse.Builder

Class Overview

Protobuf type openxc.DiagnosticResponse

Summary

Public Methods
BinaryMessages.DiagnosticResponse build()
BinaryMessages.DiagnosticResponse buildPartial()
BinaryMessages.DiagnosticResponse.Builder clear()
BinaryMessages.DiagnosticResponse.Builder clearBus()
optional int32 bus = 1;
BinaryMessages.DiagnosticResponse.Builder clearMessageId()
optional uint32 message_id = 2;
BinaryMessages.DiagnosticResponse.Builder clearMode()
optional uint32 mode = 3;
BinaryMessages.DiagnosticResponse.Builder clearNegativeResponseCode()
optional uint32 negative_response_code = 6;
BinaryMessages.DiagnosticResponse.Builder clearPayload()
optional bytes payload = 7;
 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 
BinaryMessages.DiagnosticResponse.Builder clearPid()
optional uint32 pid = 4;
BinaryMessages.DiagnosticResponse.Builder clearSuccess()
optional bool success = 5;
BinaryMessages.DiagnosticResponse.Builder clearValue()
optional double value = 8;
BinaryMessages.DiagnosticResponse.Builder clone()
int getBus()
optional int32 bus = 1;
BinaryMessages.DiagnosticResponse getDefaultInstanceForType()
final static Descriptors.Descriptor getDescriptor()
Descriptors.Descriptor getDescriptorForType()
int getMessageId()
optional uint32 message_id = 2;
int getMode()
optional uint32 mode = 3;
int getNegativeResponseCode()
optional uint32 negative_response_code = 6;
ByteString getPayload()
optional bytes payload = 7;
 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 
int getPid()
optional uint32 pid = 4;
boolean getSuccess()
optional bool success = 5;
double getValue()
optional double value = 8;
boolean hasBus()
optional int32 bus = 1;
boolean hasMessageId()
optional uint32 message_id = 2;
boolean hasMode()
optional uint32 mode = 3;
boolean hasNegativeResponseCode()
optional uint32 negative_response_code = 6;
boolean hasPayload()
optional bytes payload = 7;
 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 
boolean hasPid()
optional uint32 pid = 4;
boolean hasSuccess()
optional bool success = 5;
boolean hasValue()
optional double value = 8;
final boolean isInitialized()
BinaryMessages.DiagnosticResponse.Builder mergeFrom(BinaryMessages.DiagnosticResponse other)
BinaryMessages.DiagnosticResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
BinaryMessages.DiagnosticResponse.Builder mergeFrom(Message other)
BinaryMessages.DiagnosticResponse.Builder setBus(int value)
optional int32 bus = 1;
BinaryMessages.DiagnosticResponse.Builder setMessageId(int value)
optional uint32 message_id = 2;
BinaryMessages.DiagnosticResponse.Builder setMode(int value)
optional uint32 mode = 3;
BinaryMessages.DiagnosticResponse.Builder setNegativeResponseCode(int value)
optional uint32 negative_response_code = 6;
BinaryMessages.DiagnosticResponse.Builder setPayload(ByteString value)
optional bytes payload = 7;
 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 
BinaryMessages.DiagnosticResponse.Builder setPid(int value)
optional uint32 pid = 4;
BinaryMessages.DiagnosticResponse.Builder setSuccess(boolean value)
optional bool success = 5;
BinaryMessages.DiagnosticResponse.Builder setValue(double value)
optional double value = 8;
Protected Methods
GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
[Expand]
Inherited Methods
From class com.google.protobuf.GeneratedMessage.Builder
From class com.google.protobuf.AbstractMessage.Builder
From class com.google.protobuf.AbstractMessageLite.Builder
From class java.lang.Object
From interface com.google.protobuf.Message.Builder
From interface com.google.protobuf.MessageLite.Builder
From interface com.google.protobuf.MessageLiteOrBuilder
From interface com.google.protobuf.MessageOrBuilder
From interface com.openxc.BinaryMessages.DiagnosticResponseOrBuilder

Public Methods

public BinaryMessages.DiagnosticResponse buildPartial ()

public BinaryMessages.DiagnosticResponse.Builder clearBus ()

optional int32 bus = 1;

public BinaryMessages.DiagnosticResponse.Builder clearMessageId ()

optional uint32 message_id = 2;

public BinaryMessages.DiagnosticResponse.Builder clearMode ()

optional uint32 mode = 3;

public BinaryMessages.DiagnosticResponse.Builder clearNegativeResponseCode ()

optional uint32 negative_response_code = 6;

public BinaryMessages.DiagnosticResponse.Builder clearPayload ()

optional bytes payload = 7;

 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 

public BinaryMessages.DiagnosticResponse.Builder clearPid ()

optional uint32 pid = 4;

public BinaryMessages.DiagnosticResponse.Builder clearSuccess ()

optional bool success = 5;

public BinaryMessages.DiagnosticResponse.Builder clearValue ()

optional double value = 8;

public int getBus ()

optional int32 bus = 1;

public BinaryMessages.DiagnosticResponse getDefaultInstanceForType ()

public static final Descriptors.Descriptor getDescriptor ()

public Descriptors.Descriptor getDescriptorForType ()

public int getMessageId ()

optional uint32 message_id = 2;

public int getMode ()

optional uint32 mode = 3;

public int getNegativeResponseCode ()

optional uint32 negative_response_code = 6;

public ByteString getPayload ()

optional bytes payload = 7;

 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 

public int getPid ()

optional uint32 pid = 4;

public boolean getSuccess ()

optional bool success = 5;

public double getValue ()

optional double value = 8;

public boolean hasBus ()

optional int32 bus = 1;

public boolean hasMessageId ()

optional uint32 message_id = 2;

public boolean hasMode ()

optional uint32 mode = 3;

public boolean hasNegativeResponseCode ()

optional uint32 negative_response_code = 6;

public boolean hasPayload ()

optional bytes payload = 7;

 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 

public boolean hasPid ()

optional uint32 pid = 4;

public boolean hasSuccess ()

optional bool success = 5;

public boolean hasValue ()

optional double value = 8;

public final boolean isInitialized ()

public BinaryMessages.DiagnosticResponse.Builder mergeFrom (CodedInputStream input, ExtensionRegistryLite extensionRegistry)

Throws
IOException

public BinaryMessages.DiagnosticResponse.Builder mergeFrom (Message other)

public BinaryMessages.DiagnosticResponse.Builder setBus (int value)

optional int32 bus = 1;

public BinaryMessages.DiagnosticResponse.Builder setMessageId (int value)

optional uint32 message_id = 2;

public BinaryMessages.DiagnosticResponse.Builder setMode (int value)

optional uint32 mode = 3;

public BinaryMessages.DiagnosticResponse.Builder setNegativeResponseCode (int value)

optional uint32 negative_response_code = 6;

public BinaryMessages.DiagnosticResponse.Builder setPayload (ByteString value)

optional bytes payload = 7;

 TODO we are capping this at 8 bytes for now - need to change when we
 support multi-frame responses
 

public BinaryMessages.DiagnosticResponse.Builder setPid (int value)

optional uint32 pid = 4;

public BinaryMessages.DiagnosticResponse.Builder setSuccess (boolean value)

optional bool success = 5;

public BinaryMessages.DiagnosticResponse.Builder setValue (double value)

optional double value = 8;

Protected Methods

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()