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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • clear

      public Errors.CallSite.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • getDefaultInstanceForType

      public Errors.CallSite getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Errors.CallSite build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Errors.CallSite buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Errors.CallSite.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • clearField

      public Errors.CallSite.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • clearOneof

      public Errors.CallSite.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • mergeFrom

      public Errors.CallSite.Builder mergeFrom​(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Errors.CallSite.Builder>
    • mergeFrom

      public Errors.CallSite.Builder mergeFrom​(Errors.CallSite other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface Errors.CallSiteOrBuilder
      Returns:
      The enum numeric value on the wire for callType.
    • setCallTypeValue

      public Errors.CallSite.Builder setCallTypeValue​(int value)
       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

      public Errors.CallSite.Type getCallType()
       Type of the call.
       
      .exonum.runtime.CallSite.Type call_type = 1;
      Specified by:
      getCallType in interface Errors.CallSiteOrBuilder
      Returns:
      The callType.
    • setCallType

      public Errors.CallSite.Builder setCallType​(Errors.CallSite.Type value)
       Type of the call.
       
      .exonum.runtime.CallSite.Type call_type = 1;
      Parameters:
      value - The callType to set.
      Returns:
      This builder for chaining.
    • clearCallType

      public Errors.CallSite.Builder 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 interface Errors.CallSiteOrBuilder
      Returns:
      The instanceId.
    • setInstanceId

      public Errors.CallSite.Builder setInstanceId​(int value)
       Identifier of the service being called.
       
      uint32 instance_id = 2;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public Errors.CallSite.Builder 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 interface Errors.CallSiteOrBuilder
      Returns:
      The methodId.
    • setMethodId

      public Errors.CallSite.Builder setMethodId​(int value)
       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

      public Errors.CallSite.Builder 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 interface Errors.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 interface Errors.CallSiteOrBuilder
      Returns:
      The bytes for interface.
    • setInterface

      public Errors.CallSite.Builder setInterface​(java.lang.String value)
       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

      public Errors.CallSite.Builder 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

      public Errors.CallSite.Builder setInterfaceBytes​(com.google.protobuf.ByteString value)
       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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>
    • mergeUnknownFields

      public final Errors.CallSite.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Errors.CallSite.Builder>