<pre>
Detailed information about UpdateService call.
</pre>

<code>.google.appengine.v1.UpdateServiceMethod update_service = 1;</code>
331102
public com.google.appengine.v1.UpdateServiceMethod getUpdateService() {
    if (methodCase_ == 1) {
       return (com.google.appengine.v1.UpdateServiceMethod) method_;
    }
    return com.google.appengine.v1.UpdateServiceMethod.getDefaultInstance();
  }
133816
public java.util.List<? extends com.google.appengine.v1.ServiceOrBuilder> 
      getServicesOrBuilderList() {
    return services_;
  }
335280
public com.google.appengine.v1.Deployment getDeployment() {
    return deployment_ == null ? com.google.appengine.v1.Deployment.getDefaultInstance() : deployment_;
  }
733522
@Override
    public void notificationCreated(RuntimeUpdateManager updateManager, RuntimeUpdateNotification notification) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(this, tc, "GPCL: RuntimeUpdate notification " + notification.getName() + ", apps in service = " + appsInService);

        if (this.appsInService > 0 && notification.getName().equals(RuntimeUpdateNotification.CONFIG_UPDATES_DELIVERED)) {
            setFutureGeneratePluginTask();
            notification.onCompletion(new ConfigUpdateListener());
        }
    }
270271
def service_details(self, io_handler, service_id):
        
        svc_ref = self._context.get_service_reference(
            None, "({0}={1})".format(constants.SERVICE_ID, service_id)
        )
        if svc_ref is None:
            io_handler.write_line("Service not found: {0}", service_id)
            return False

        lines = [
            "ID............: {0}".format(
                svc_ref.get_property(constants.SERVICE_ID)
            ),
            "Rank..........: {0}".format(
                svc_ref.get_property(constants.SERVICE_RANKING)
            ),
            "Specifications: {0}".format(
                svc_ref.get_property(constants.OBJECTCLASS)
            ),
            "Bundle........: {0}".format(svc_ref.get_bundle()),
            "Properties....:",
        ]
        for key, value in sorted(svc_ref.get_properties().items()):
            lines.append("\t{0} = {1}".format(key, value))

        lines.append("Bundles using this service:")
        for bundle in svc_ref.get_using_bundles():
            lines.append("\t{0}".format(bundle))

        lines.append("")
        io_handler.write("\n".join(lines))
        return None
1031680
@SuppressWarnings("unchecked")
    private T getService(boolean throwException) {
        T svc = null;
        ReferenceTuple<T> current = null;
        ReferenceTuple<T> newTuple = null;

        do {
            // Get the current tuple
            current = tuple.get();

            // We have both a context and a service reference.. 
            svc = current.locatedService;
            if (svc != null) {
                break; // break out. We know the answer, yes
            }

            // If we're missing the required bits, bail... 
            if (current.context == null || current.serviceRef == null) {
                if (throwException)
                    throw new IllegalStateException("Required attribute is null," + toString());
                break; // break out. Nothing more to do here
            }

            // We have to locate / resolve the service from the reference 
            SecurityManager sm = System.getSecurityManager();
            if (sm != null) {
                final ReferenceTuple<T> finalCurrent = current;
                svc = AccessController.doPrivileged(new PrivilegedAction<T>() {

                    @Override
                    public T run() {
                        return finalCurrent.context.locateService(referenceName, finalCurrent.serviceRef);
                    }
                });
            } else {
                svc = current.context.locateService(referenceName, current.serviceRef);
            }

            // if we're asked to throw, throw if we couldn't find the service
            if (svc == null) {
                if (throwException)
                    throw new IllegalStateException("Located service is null," + toString());

                break; // break out. Nothing more to do here
            }

            // Create a new tuple: keep the context and reference, set the cached service 
            newTuple = new ReferenceTuple<T>(current.context, current.serviceRef, svc);

            // Try to save the new tuple: retry if someone changed the value meanwhile
        } while (!tuple.compareAndSet(current, newTuple));

        return svc;
    }
246224
@Action(
            semantics = SemanticsOf.IDEMPOTENT,
            publishing = Publishing.ENABLED
    )
    @ActionLayout(
            describedAs = "Updates name, description and count as sub-actions"
    )
    public PublishMqDemoObject updateNameAndDescriptionAndCount(
            @ParameterLayout(named="Name")
            final String name,
            @Parameter(optionality = Optionality.OPTIONAL)
            @ParameterLayout(named="Description")
            final String description,
            @Parameter(optionality = Optionality.OPTIONAL)
            @ParameterLayout(named="Count")
            final Integer count) {
        wrapperFactory.wrap(this).updateName(name);
        wrapperFactory.wrap(this).updateDescription(description);
        wrapperFactory.wrap(this).updateCount(count);
        return this;
    }
501261
public function getUpdateService()
    {
        if (null == $this->updateService) {
            $this->setUpdateService(
                new EntityUpdateService($this->getNewEntity())
            );
        }
        return $this->updateService;
    }
1228059
@Override
    protected int onExecuteUpdate()
    {
        EntityMetadata m = getEntityMetadata();

        Client client = persistenceDelegeator.getClient(m);
        return ((HibernateClient) client).onExecuteUpdate(getJPAQuery(), getParamaters(), firstResult, maxResult);
    }
440483
@Override
    protected int onExecuteUpdate() {
        EntityMetadata m = getEntityMetadata();
        Client client = m != null ? persistenceDelegeator.getClient(m)
            : persistenceDelegeator.getClient(kunderaQuery.getPersistenceUnit());
        externalProperties = ((CassandraClientBase) client).getExternalProperties();
        ApplicationMetadata appMetadata = kunderaMetadata.getApplicationMetadata();

        String query = appMetadata.getQuery(getJPAQuery());

        boolean isNative = kunderaQuery.isNative();

        if (isNative) {
            ((CassandraClientBase) client).executeQuery(m == null ? null : m.getEntityClazz(), null, isNative,
                query != null ? query : getJPAQuery());
        } else if (kunderaQuery.isDeleteUpdate()) {
            // If query is not convertible to CQL, fetch and merge records usual
            // way, otherwise
            // convert to CQL and execute
            if (!isQueryConvertibleToCQL(kunderaQuery)) {
                return onUpdateDeleteEvent();
            } else {
                query = null;
                if (kunderaQuery.isUpdateClause()) {
                    query = createUpdateQuery(kunderaQuery);
                } else {
                    query = createDeleteQuery(kunderaQuery);
                }
                return ((CassandraClientBase) client).executeUpdateDeleteQuery(query);
            }
        }
        return 0;
    }
474956
void update() {
        final BundleContext context = componentContext.getBundleContext();
        // determine the service filter to use for discovering the Library service this bell is for
        String libraryRef = library.id();
        // it is unclear if only looking at the id would work here.
        // other examples in classloading use both id and service.pid to look up so doing the same here.
        String libraryStatusFilter = String.format("(&(objectClass=%s)(|(id=%s)(service.pid=%s)))", Library.class.getName(), libraryRef, libraryRef);
        Filter filter;
        try {
            filter = context.createFilter(libraryStatusFilter);
        } catch (InvalidSyntaxException e) {
            // should not happen, but blow up if it does
            throw new RuntimeException(e);
        }
        final Set<String> serviceNames = getServiceNames((String[]) config.get(SERVICE_ATT));
        // create a tracker that will register the services once the library becomes available
        ServiceTracker<Library, List<ServiceRegistration<?>>> newTracker = null;
        newTracker = new ServiceTracker<Library, List<ServiceRegistration<?>>>(context, filter, new ServiceTrackerCustomizer<Library, List<ServiceRegistration<?>>>() {
            @Override
            public List<ServiceRegistration<?>> addingService(ServiceReference<Library> libraryRef) {
                Library library = context.getService(libraryRef);
                // Got the library now register the services.
                // The list of registrations is returned so we don't have to store them ourselves.
                return registerLibraryServices(library, serviceNames);
            }

            @Override
            public void modifiedService(ServiceReference<Library> libraryRef, List<ServiceRegistration<?>> metaInfServices) {
                // don't care
            }

            @Override
            @FFDCIgnore(IllegalStateException.class)
            public void removedService(ServiceReference<Library> libraryRef, List<ServiceRegistration<?>> metaInfServices) {
                // THe library is going away; need to unregister the services
                for (ServiceRegistration<?> registration : metaInfServices) {
                    try {
                        registration.unregister();
                    } catch (IllegalStateException e) {
                        // ignore; already unregistered
                    }
                }
                context.ungetService(libraryRef);
            }
        });

        trackerLock.lock();
        try {
            if (tracker != null) {
                // close the existing tracker so we unregister existing services
                tracker.close();
            }
            // store and open the new tracker so we can register the configured services.
            tracker = newTracker;
            tracker.open();
        } finally {
            trackerLock.unlock();
        }
    }
388337
@VisibleForTesting
  static ServiceInfo getServiceInfo(String serviceName) {
    return ServiceInfo.newBuilder().setName(serviceName).build();
  }
1146663
public void updateServiceInstanceStatus(String serviceName, String instanceId, OperationalStatus status){
        ProtocolHeader header = new ProtocolHeader();
        header.setType(ProtocolType.UpdateServiceInstanceStatus);

        UpdateServiceInstanceStatusProtocol p = new UpdateServiceInstanceStatusProtocol(serviceName, instanceId, status);
        connection.submitRequest(header, p, null);
    }
543620
@Override
    @Transactional
    public ServiceManagementRecord updateServiceManagementRecord(ServiceManagementRecord serviceManagementRecord) {
        requireNotDisposed();
        requireArgument(serviceManagementRecord != null, "Cannot update a null sub system.");

        EntityManager em = emf.get();
        ServiceManagementRecord result = ServiceManagementRecord.updateServiceManagementRecord(em, serviceManagementRecord);

        em.flush();
        _logger.debug("Updated service management record {}.", result);
        _auditService.createAudit("Updated service management record : {0}", result, result);
        return result;
    }
787060
@POST
    @Path("/{gavc}" + ServerAPI.GET_PROVIDER)
    public Response updateProvider(@Auth final DbCredential credential, @PathParam("gavc") final String gavc, @QueryParam(ServerAPI.PROVIDER_PARAM) final String provider){
        if(!credential.getRoles().contains(AvailableRoles.DATA_UPDATER)){
            throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build());
        }

        if(LOG.isInfoEnabled()) {
            LOG.info(String.format("Got an update downloadUrl request [%s] [%s]", gavc, provider));
        }

        if(gavc == null || provider == null){
            return Response.serverError().status(HttpStatus.NOT_ACCEPTABLE_406).build();
        }

        getArtifactHandler().updateProvider(gavc, provider);

        return Response.ok("done").build();
    }
49788
@Override
    public boolean update(Engine engine) throws UpdateException {
        this.settings = engine.getSettings();
        String url = null;
        try {
            final boolean autoupdate = settings.getBoolean(Settings.KEYS.AUTO_UPDATE, true);
            final boolean enabled = settings.getBoolean(Settings.KEYS.ANALYZER_RETIREJS_ENABLED, true);
            final File repoFile = new File(settings.getDataDirectory(), "jsrepository.json");
            final boolean proceed = enabled && autoupdate && shouldUpdagte(repoFile);
            if (proceed) {
                LOGGER.debug("Begin RetireJS Update");
                url = settings.getString(Settings.KEYS.ANALYZER_RETIREJS_REPO_JS_URL, DEFAULT_JS_URL);
                initializeRetireJsRepo(settings, new URL(url));
            }
        } catch (InvalidSettingException ex) {
            throw new UpdateException("Unable to determine if autoupdate is enabled", ex);
        } catch (MalformedURLException ex) {
            throw new UpdateException(String.format("Inavlid URL for RetireJS repository (%s)", url), ex);
        } catch (IOException ex) {
            throw new UpdateException("Unable to get the data directory", ex);
        }
        return false;
    }
440414
public static com.liferay.commerce.model.CommerceWarehouse updateCommerceWarehouse(
		com.liferay.commerce.model.CommerceWarehouse commerceWarehouse) {
		return getService().updateCommerceWarehouse(commerceWarehouse);
	}