Class Discovery.ServiceDiscoveryResponse.Builder

    • Method Detail

      • 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<Discovery.ServiceDiscoveryResponse.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<Discovery.ServiceDiscoveryResponse.Builder>
      • getDefaultInstanceForType

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

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

        public Discovery.ServiceDiscoveryResponse buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Discovery.ServiceDiscoveryResponse.Builder>
      • mergeFrom

        public Discovery.ServiceDiscoveryResponse.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<Discovery.ServiceDiscoveryResponse.Builder>
        Throws:
        java.io.IOException
      • hasFiles

        public boolean hasFiles()
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
        Specified by:
        hasFiles in interface Discovery.ServiceDiscoveryResponseOrBuilder
        Returns:
        Whether the files field is set.
      • getFiles

        public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFiles()
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
        Specified by:
        getFiles in interface Discovery.ServiceDiscoveryResponseOrBuilder
        Returns:
        The files.
      • setFiles

        public Discovery.ServiceDiscoveryResponse.Builder setFiles​(com.google.protobuf.DescriptorProtos.FileDescriptorSet value)
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
      • setFiles

        public Discovery.ServiceDiscoveryResponse.Builder setFiles​(com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue)
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
      • mergeFiles

        public Discovery.ServiceDiscoveryResponse.Builder mergeFiles​(com.google.protobuf.DescriptorProtos.FileDescriptorSet value)
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
      • getFilesBuilder

        public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFilesBuilder()
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
      • getFilesOrBuilder

        public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFilesOrBuilder()
         List of all proto files used to define the services, including the dependencies.
         
        .google.protobuf.FileDescriptorSet files = 1;
        Specified by:
        getFilesOrBuilder in interface Discovery.ServiceDiscoveryResponseOrBuilder
      • getServicesList

        public com.google.protobuf.ProtocolStringList getServicesList()
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Specified by:
        getServicesList in interface Discovery.ServiceDiscoveryResponseOrBuilder
        Returns:
        A list containing the services.
      • getServices

        public java.lang.String getServices​(int index)
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Specified by:
        getServices in interface Discovery.ServiceDiscoveryResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The services at the given index.
      • getServicesBytes

        public com.google.protobuf.ByteString getServicesBytes​(int index)
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Specified by:
        getServicesBytes in interface Discovery.ServiceDiscoveryResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the services at the given index.
      • setServices

        public Discovery.ServiceDiscoveryResponse.Builder setServices​(int index,
                                                                      java.lang.String value)
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Parameters:
        index - The index to set the value at.
        value - The services to set.
        Returns:
        This builder for chaining.
      • addServices

        public Discovery.ServiceDiscoveryResponse.Builder addServices​(java.lang.String value)
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Parameters:
        value - The services to add.
        Returns:
        This builder for chaining.
      • addAllServices

        public Discovery.ServiceDiscoveryResponse.Builder addAllServices​(java.lang.Iterable<java.lang.String> values)
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Parameters:
        values - The services to add.
        Returns:
        This builder for chaining.
      • clearServices

        public Discovery.ServiceDiscoveryResponse.Builder clearServices()
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Returns:
        This builder for chaining.
      • addServicesBytes

        public Discovery.ServiceDiscoveryResponse.Builder addServicesBytes​(com.google.protobuf.ByteString value)
         List of services to register. This might be a subset of services defined in files.
         
        repeated string services = 2;
        Parameters:
        value - The bytes of the services to add.
        Returns:
        This builder for chaining.
      • setMinProtocolVersion

        public Discovery.ServiceDiscoveryResponse.Builder setMinProtocolVersion​(int value)
         Service-protocol version negotiation
         
        uint32 min_protocol_version = 3;
        Parameters:
        value - The minProtocolVersion to set.
        Returns:
        This builder for chaining.
      • setMaxProtocolVersion

        public Discovery.ServiceDiscoveryResponse.Builder setMaxProtocolVersion​(int value)
        uint32 max_protocol_version = 4;
        Parameters:
        value - The maxProtocolVersion to set.
        Returns:
        This builder for chaining.
      • setProtocolModeValue

        public Discovery.ServiceDiscoveryResponse.Builder setProtocolModeValue​(int value)
         Protocol mode negotiation
         
        .dev.restate.service.discovery.ProtocolMode protocol_mode = 5;
        Parameters:
        value - The enum numeric value on the wire for protocolMode to set.
        Returns:
        This builder for chaining.
      • clearProtocolMode

        public Discovery.ServiceDiscoveryResponse.Builder clearProtocolMode()
         Protocol mode negotiation
         
        .dev.restate.service.discovery.ProtocolMode protocol_mode = 5;
        Returns:
        This builder for chaining.