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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Errors.CallSitebuild()Errors.CallSitebuildPartial()Errors.CallSite.Builderclear()Errors.CallSite.BuilderclearCallType()Type of the call.Errors.CallSite.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Errors.CallSite.BuilderclearInstanceId()Identifier of the service being called.Errors.CallSite.BuilderclearInterface()Name of the interface defining the method.Errors.CallSite.BuilderclearMethodId()Numeric ID of the method.Errors.CallSite.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Errors.CallSite.Builderclone()Errors.CallSite.TypegetCallType()Type of the call.intgetCallTypeValue()Type of the call.Errors.CallSitegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetInstanceId()Identifier of the service being called.java.lang.StringgetInterface()Name of the interface defining the method.com.google.protobuf.ByteStringgetInterfaceBytes()Name of the interface defining the method.intgetMethodId()Numeric ID of the method.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Errors.CallSite.BuildermergeFrom(Errors.CallSite other)Errors.CallSite.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Errors.CallSite.BuildermergeFrom(com.google.protobuf.Message other)Errors.CallSite.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Errors.CallSite.BuildersetCallType(Errors.CallSite.Type value)Type of the call.Errors.CallSite.BuildersetCallTypeValue(int value)Type of the call.Errors.CallSite.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Errors.CallSite.BuildersetInstanceId(int value)Identifier of the service being called.Errors.CallSite.BuildersetInterface(java.lang.String value)Name of the interface defining the method.Errors.CallSite.BuildersetInterfaceBytes(com.google.protobuf.ByteString value)Name of the interface defining the method.Errors.CallSite.BuildersetMethodId(int value)Numeric ID of the method.Errors.CallSite.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Errors.CallSite.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein 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:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin 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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Errors.CallSite.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getCallTypeValuein 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:
getCallTypein 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:
getInstanceIdin 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:
getMethodIdin 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:
getInterfacein 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:
getInterfaceBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-
mergeUnknownFields
public final Errors.CallSite.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
-