Package com.exonum.messages.core.runtime
Class Errors.CallSite.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
com.exonum.messages.core.runtime.Errors.CallSite.Builder
- All Implemented Interfaces:
Errors.CallSiteOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Errors.CallSite
public static final class Errors.CallSite.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder> implements Errors.CallSiteOrBuilder
Call site associated with an error.Protobuf type
exonum.runtime.CallSite
-
Method Summary
Modifier and Type Method Description Errors.CallSite.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Errors.CallSite
build()
Errors.CallSite
buildPartial()
Errors.CallSite.Builder
clear()
Errors.CallSite.Builder
clearCallType()
Type of the call.Errors.CallSite.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Errors.CallSite.Builder
clearInstanceId()
Identifier of the service being called.Errors.CallSite.Builder
clearInterface()
Name of the interface defining the method.Errors.CallSite.Builder
clearMethodId()
Numeric ID of the method.Errors.CallSite.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Errors.CallSite.Builder
clone()
Errors.CallSite.Type
getCallType()
Type of the call.int
getCallTypeValue()
Type of the call.Errors.CallSite
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getInstanceId()
Identifier of the service being called.java.lang.String
getInterface()
Name of the interface defining the method.com.google.protobuf.ByteString
getInterfaceBytes()
Name of the interface defining the method.int
getMethodId()
Numeric ID of the method.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Errors.CallSite.Builder
mergeFrom(Errors.CallSite other)
Errors.CallSite.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Errors.CallSite.Builder
mergeFrom(com.google.protobuf.Message other)
Errors.CallSite.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Errors.CallSite.Builder
setCallType(Errors.CallSite.Type value)
Type of the call.Errors.CallSite.Builder
setCallTypeValue(int value)
Type of the call.Errors.CallSite.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Errors.CallSite.Builder
setInstanceId(int value)
Identifier of the service being called.Errors.CallSite.Builder
setInterface(java.lang.String value)
Name of the interface defining the method.Errors.CallSite.Builder
setInterfaceBytes(com.google.protobuf.ByteString value)
Name of the interface defining the method.Errors.CallSite.Builder
setMethodId(int value)
Numeric ID of the method.Errors.CallSite.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Errors.CallSite.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
setField
public Errors.CallSite.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
setRepeatedField
public Errors.CallSite.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
addRepeatedField
public Errors.CallSite.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Errors.CallSite.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
mergeFrom
public Errors.CallSite.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Errors.CallSite.Builder>
- Throws:
java.io.IOException
-
getCallTypeValue
public int getCallTypeValue()Type of the call.
.exonum.runtime.CallSite.Type call_type = 1;
- Specified by:
getCallTypeValue
in interfaceErrors.CallSiteOrBuilder
- Returns:
- The enum numeric value on the wire for callType.
-
setCallTypeValue
Type of the call.
.exonum.runtime.CallSite.Type call_type = 1;
- Parameters:
value
- The enum numeric value on the wire for callType to set.- Returns:
- This builder for chaining.
-
getCallType
Type of the call.
.exonum.runtime.CallSite.Type call_type = 1;
- Specified by:
getCallType
in interfaceErrors.CallSiteOrBuilder
- Returns:
- The callType.
-
setCallType
Type of the call.
.exonum.runtime.CallSite.Type call_type = 1;
- Parameters:
value
- The callType to set.- Returns:
- This builder for chaining.
-
clearCallType
Type of the call.
.exonum.runtime.CallSite.Type call_type = 1;
- Returns:
- This builder for chaining.
-
getInstanceId
public int getInstanceId()Identifier of the service being called.
uint32 instance_id = 2;
- Specified by:
getInstanceId
in interfaceErrors.CallSiteOrBuilder
- Returns:
- The instanceId.
-
setInstanceId
Identifier of the service being called.
uint32 instance_id = 2;
- Parameters:
value
- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
Identifier of the service being called.
uint32 instance_id = 2;
- Returns:
- This builder for chaining.
-
getMethodId
public int getMethodId()Numeric ID of the method. Set only for `call_type == METHOD`.
uint32 method_id = 3;
- Specified by:
getMethodId
in interfaceErrors.CallSiteOrBuilder
- Returns:
- The methodId.
-
setMethodId
Numeric ID of the method. Set only for `call_type == METHOD`.
uint32 method_id = 3;
- Parameters:
value
- The methodId to set.- Returns:
- This builder for chaining.
-
clearMethodId
Numeric ID of the method. Set only for `call_type == METHOD`.
uint32 method_id = 3;
- Returns:
- This builder for chaining.
-
getInterface
public java.lang.String getInterface()Name of the interface defining the method. This field is empty for the default service interface. Set only for `call_type == METHOD`.
string interface = 4;
- Specified by:
getInterface
in interfaceErrors.CallSiteOrBuilder
- Returns:
- The interface.
-
getInterfaceBytes
public com.google.protobuf.ByteString getInterfaceBytes()Name of the interface defining the method. This field is empty for the default service interface. Set only for `call_type == METHOD`.
string interface = 4;
- Specified by:
getInterfaceBytes
in interfaceErrors.CallSiteOrBuilder
- Returns:
- The bytes for interface.
-
setInterface
Name of the interface defining the method. This field is empty for the default service interface. Set only for `call_type == METHOD`.
string interface = 4;
- Parameters:
value
- The interface to set.- Returns:
- This builder for chaining.
-
clearInterface
Name of the interface defining the method. This field is empty for the default service interface. Set only for `call_type == METHOD`.
string interface = 4;
- Returns:
- This builder for chaining.
-
setInterfaceBytes
Name of the interface defining the method. This field is empty for the default service interface. Set only for `call_type == METHOD`.
string interface = 4;
- Parameters:
value
- The bytes for interface to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Errors.CallSite.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
mergeUnknownFields
public final Errors.CallSite.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-