static SchedulingOptions fromPb(com.google.api.services.compute.model.Scheduling schedPb) { Maintenance maintenance = null; if (schedPb.getOnHostMaintenance() != null) { maintenance = Maintenance.valueOf(schedPb.getOnHostMaintenance()); } return new SchedulingOptions( schedPb.getAutomaticRestart(), maintenance, schedPb.getPreemptible()); } }
static SchedulingOptions fromPb(com.google.api.services.compute.model.Scheduling schedPb) { Maintenance maintenance = null; if (schedPb.getOnHostMaintenance() != null) { maintenance = Maintenance.valueOf(schedPb.getOnHostMaintenance()); } return new SchedulingOptions(schedPb.getAutomaticRestart(), maintenance, schedPb.getPreemptible()); } }