blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
410
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
51
| license_type
stringclasses 2
values | repo_name
stringlengths 5
132
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
80
| visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 5.85k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 131
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
9.45M
| extension
stringclasses 32
values | content
stringlengths 3
9.45M
| authors
listlengths 1
1
| author_id
stringlengths 0
313
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cbd3191ef0d1f8ddf2170088d46042c0866fbe2
|
3aebdbba2333760c2ba6fa74e604eda78db1462a
|
/Stew/Stew-war/src/java/jp/co/ncdc/stew/Entities/Message.java
|
1f19f29405dd8b78d07ba393b56a0034ccdb2f04
|
[] |
no_license
|
tthanhlong/stew_server-1.1
|
ebf17bc1c5695dd76b3dd34a65a89431b7924ede
|
396aa710bd7e3078b311c4ec7c1d42a7293d28ad
|
refs/heads/master
| 2020-04-26T03:18:36.068743 | 2013-11-04T07:56:19 | 2013-11-04T07:56:19 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,949 |
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jp.co.ncdc.stew.Entities;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
/**
*
* @author vcnduong
*/
@Entity
public class Message {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long messageId;
private String title;
private String message;
private String sentToGroup;
private String sentToApp;
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date createMessage;
@Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date scheduleSend;
public Message() {
}
public Long getMessageId() {
return messageId;
}
public void setMessageId(Long messageId) {
this.messageId = messageId;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Date getCreateMessage() {
return createMessage;
}
public void setCreateMessage(Date createMessage) {
this.createMessage = createMessage;
}
public Date getScheduleSend() {
return scheduleSend;
}
public void setScheduleSend(Date scheduleSend) {
this.scheduleSend = scheduleSend;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSentToGroup() {
return sentToGroup;
}
public void setSentToGroup(String sentToGroup) {
this.sentToGroup = sentToGroup;
}
public String getSentToApp() {
return sentToApp;
}
public void setSentToApp(String sentToApp) {
this.sentToApp = sentToApp;
}
}
|
[
"[email protected]"
] | |
e73b58d6113649bf065f1da239f08c11870551ef
|
93aa15fa9d9302ba6fe2baf036e294dfd7ea8f3f
|
/src/test/java/ec/edu/ups/appdis/ServidorMurilloJordan/test/SampleIT.java
|
4f4e8bf57f6cca5415de884b6bef9179590b1763
|
[] |
no_license
|
jmurillov1/ServidorMurilloJordan
|
e1a6e73c2260c5690a2f8ad9b375393648ed73e0
|
a3d805cba1d70bebf12cc3dbe942e459cd119aa7
|
refs/heads/master
| 2022-12-05T18:20:39.359449 | 2020-08-04T04:44:35 | 2020-08-04T04:44:35 | 287,524,402 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,829 |
java
|
package ec.edu.ups.appdis.ServidorMurilloJordan.test;
import java.io.File;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.importer.ZipImporter;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* Sample integration test: demonstrates how to create the WAR file using the ShrinkWrap API.
*
* Delete this file if no integration test is required.
*/
@RunWith(Arquillian.class)
public class SampleIT {
/**
* Creates the WAR file that is deployed to the server.
*
* @return WAR archive
*/
@Deployment
public static Archive<?> getEarArchive() {
// Import the web archive that was created by Maven:
File f = new File("./target/ServidorMurilloJordan.war");
if (f.exists() == false) {
throw new RuntimeException("File " + f.getAbsolutePath() + " does not exist.");
}
WebArchive war = ShrinkWrap.create(ZipImporter.class, "ServidorMurilloJordan.war").importFrom(f).as(WebArchive.class);
// Add the package containing the test classes:
war.addPackage("ec.edu.ups.appdis.ServidorMurilloJordan.test");
// Export the WAR file to examine it in case of problems:
// war.as(ZipExporter.class).exportTo(new File("c:\\temp\\test.war"), true);
return war;
}
/**
* A sample test...
*
*/
@Test
public void test() {
// This line will be written on the server console.
System.out.println("Test is invoked...");
}
}
|
[
"[email protected]"
] | |
95ea5fdf9a845780e0b9e323ee04160f66dbf058
|
bda12e63e68a36242c1c3c5b170f378e8470d306
|
/src/main/java/com/javaee/ass/entity/role/AdminDO.java
|
2542f452ce5f8601d9bfb874c81608dc570a2e13
|
[] |
no_license
|
ni-liu/AcademicSharedSystem-NI-LIU
|
22d64ae265709103fb3df03002b5c47269953614
|
b31e81bf8ddc64619635dd09b8a0b35ae58e0b45
|
refs/heads/master
| 2022-12-24T06:34:16.914530 | 2019-06-09T15:02:05 | 2019-06-09T15:02:05 | 187,816,301 | 0 | 0 | null | 2022-12-16T04:52:22 | 2019-05-21T10:33:41 |
JavaScript
|
UTF-8
|
Java
| false | false | 1,149 |
java
|
package com.javaee.ass.entity.role;
import org.apache.ibatis.type.Alias;
import java.util.Objects;
@Alias("adminDO")
public class AdminDO extends UserDO {
private String name;
public AdminDO() {
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof AdminDO)) return false;
final AdminDO other = (AdminDO) o;
if (!other.canEqual((Object) this)) return false;
final Object this$name = this.name;
final Object other$name = other.name;
return Objects.equals(this$name, other$name);
}
protected boolean canEqual(final Object other) {
return other instanceof AdminDO;
}
public int hashCode() {
final int PRIME = 59;
int result = 1;
final Object $name = this.name;
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
return result;
}
public String toString() {
return "AdminDO(name=" + this.name + ")";
}
}
|
[
"[email protected]"
] | |
20d95635ef478a5270c6e8ef358a8454d9bd1303
|
e195286b15e87c9c45a4fcf1928254b3340fe1cb
|
/app/src/main/java/com/honeywell/android/login/JsonUtils.java
|
20822fb73825562b806dda4dea8735d3a016bfd4
|
[] |
no_license
|
musktime/HoneySDKDemo
|
bcf8b858c21a0eaca6cf7d0e5c2f584df2fac651
|
8ed7ca0bad3c6e46e368fdb07e66cdf11c568e34
|
refs/heads/master
| 2020-03-15T23:25:19.340280 | 2018-05-09T14:41:33 | 2018-05-09T14:41:33 | 131,862,837 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,500 |
java
|
package com.honeywell.android.login;
import android.text.TextUtils;
import com.honeywell.android.bean.BatteryInfo;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by melo on 2018/5/2.
*/
public class JsonUtils {
public static BatteryInfo parseJSons(String dataSource){
try{
if(TextUtils.isEmpty(dataSource)){
return null;
}
JSONObject object=new JSONObject(dataSource);
JSONObject rootObj=object.optJSONObject("Data");
JSONObject batteryObj = rootObj.optJSONObject("Battery");
JSONObject coolantObj= rootObj.optJSONObject("Coolant");
JSONObject faultCodeObj= rootObj.optJSONObject("FaultCode");
JSONObject integratedObj= rootObj.optJSONObject("Integrated");
JSONObject missfireObj= rootObj.optJSONObject("Missfire");
JSONObject oxygenSensorObj= rootObj.optJSONObject("OxygenSensor");
String Evaluation=batteryObj.optString("Evaluation");
String Grade=batteryObj.optString("Grade");
String Score=batteryObj.optString("Score");
String Evaluation0=batteryObj.optString("V0 Evaluation");
String Evaluation4=batteryObj.optString("V4 Evaluation");
return new BatteryInfo(Evaluation,Grade,Score,Evaluation0,Evaluation4);
}catch (JSONException e){
e.printStackTrace();
}
return null;
}
}
|
[
"[email protected]"
] | |
89f53bcd9faae14866495eb880bf01980a7284c1
|
7956a5ca22df8dd6493ab28cdf6dfbc38422642c
|
/demo/demo-filter/filter-server/src/main/java/org/apache/servicecomb/demo/filter/server/ExceptionSchema.java
|
980681b6b967477546320dc325c341d663e747fb
|
[
"Apache-2.0"
] |
permissive
|
apache/servicecomb-java-chassis
|
6039d162c86528d220d794e1ccb92149d93c8d4e
|
00317c70c17cbdd7f4ad2f2d2abf5ece60f1ca60
|
refs/heads/master
| 2023-09-01T21:46:07.284680 | 2023-09-01T08:22:15 | 2023-09-01T08:22:15 | 91,674,936 | 1,471 | 571 |
Apache-2.0
| 2023-09-14T08:31:08 | 2017-05-18T09:29:30 |
Java
|
UTF-8
|
Java
| false | false | 1,904 |
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.demo.filter.server;
import java.util.concurrent.CompletableFuture;
import jakarta.ws.rs.core.Response.Status;
import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.apache.servicecomb.swagger.invocation.exception.CommonExceptionData;
import org.apache.servicecomb.swagger.invocation.exception.InvocationException;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@RestSchema(schemaId = "ExceptionSchema")
@RequestMapping(path = "/exception", produces = MediaType.APPLICATION_JSON_VALUE)
public class ExceptionSchema {
@GetMapping(path = "/blockingException")
public boolean blockingException() {
throw new InvocationException(Status.SERVICE_UNAVAILABLE, new CommonExceptionData("Blocking Exception"));
}
@GetMapping(path = "/reactiveException")
public CompletableFuture<Boolean> reactiveException() {
throw new InvocationException(Status.SERVICE_UNAVAILABLE, new CommonExceptionData("Reactive Exception"));
}
}
|
[
"[email protected]"
] | |
744d45fdfd15f71a192dd1f95bdd3ddae89a2f25
|
5fea7aa14b5db9be014439121ee7404b61c004aa
|
/src/com/tms/cms/core/ui/ContentDeletedTable.java
|
c88dca9efabd01c49f4563a4e05fe4371b439195
|
[] |
no_license
|
fairul7/eamms
|
d7ae6c841e9732e4e401280de7e7d33fba379835
|
a4ed0495c0d183f109be20e04adbf53e19925a8c
|
refs/heads/master
| 2020-07-06T06:14:46.330124 | 2013-05-31T04:18:19 | 2013-05-31T04:18:19 | 28,168,318 | 0 | 1 | null | null | null | null |
UTF-8
|
Java
| false | false | 11,932 |
java
|
package com.tms.cms.core.ui;
import com.tms.cms.core.model.ContentManager;
import com.tms.util.FormatUtil;
import kacang.Application;
import kacang.services.security.SecurityException;
import kacang.services.security.SecurityService;
import kacang.services.security.User;
import kacang.stdui.*;
import kacang.ui.Event;
import kacang.ui.Forward;
import kacang.ui.WidgetManager;
import kacang.util.Log;
import org.apache.commons.collections.SequencedHashMap;
import java.util.Calendar;
import java.util.Collection;
import java.util.Date;
import java.util.Map;
public class ContentDeletedTable extends Table {
public ContentDeletedTable() {
}
public ContentDeletedTable(String name) {
super(name);
}
public void init() {
initTable();
}
public void onRequest(Event event) {
initTable();
}
public void initTable() {
setModel(new ContentDeletedTableModel());
}
public Forward onSelection(Event evt) {
String id = evt.getRequest().getParameter("id");
ContentHelper.setId(evt, id);
Forward forward = super.onSelection(evt);
forward = new Forward("selection");
return forward;
}
public class ContentDeletedTableModel extends TableModel {
public ContentDeletedTableModel() {
// add columns
Application application = Application.getInstance();
TableColumn nameColumn = new TableColumn("name", application.getMessage("general.label.name", "Name"));
nameColumn.setUrlParam("id");
addColumn(nameColumn);
TableColumn classColumn = new TableColumn("className", application.getMessage("general.label.type", "Type"));
classColumn.setFormat(new TableResourceFormat("cms.label.iconLabel_", null));
addColumn(classColumn);
TableColumn dateColumn = new TableColumn("date", application.getMessage("general.label.date", "Date"));
dateColumn.setFormat(new TableDateFormat(FormatUtil.getInstance().getLongDateFormat()));
addColumn(dateColumn);
String contextPath = (String)getWidgetManager().getAttribute(WidgetManager.CONTEXT_PATH);
TableFormat booleanFormat = new TableBooleanFormat("<img src=\"" + contextPath + "/common/table/booleantrue.gif\">", "");
TableColumn deletedColumn = new TableColumn("deleted", application.getMessage("general.label.deleted", "Deleted"));
deletedColumn.setFormat(booleanFormat);
addColumn(deletedColumn);
// add actions
addAction(new TableAction("undelete", application.getMessage("general.label.undelete", "Undelete"), application.getMessage("cms.message.undelete", "Undelete Selected Content?")));
try {
SecurityService security = (SecurityService)application.getService(SecurityService.class);
User user = getWidgetManager().getUser();
boolean manageRecycleBin = security.hasPermission(user.getId(), ContentManager.PERMISSION_MANAGE_RECYCLE_BIN, getClass().getName(), null);
if (manageRecycleBin) {
addAction(new TableAction("destroy", application.getMessage("general.label.destroy", "Destroy"), application.getMessage("cms.message.destroy", "Please confirm - Destroyed content cannot be recovered")));
}
}
catch (SecurityException e) {
Log.getLog(getClass()).error("Unable to check manager recycle bin permission", e);
}
// add filters
TableFilter nameFilter = new TableFilter("name");
TextField nameField = new TextField("name");
nameField.setSize("15");
nameFilter.setWidget(nameField);
addFilter(nameFilter);
TableFilter startFilterLabel = new TableFilter("startDateFilter");
startFilterLabel.setWidget(new Label("label1", " From "));
addFilter(startFilterLabel);
TableFilter startFilter = new TableFilter("startDate");
DateField sd = new DateField("startDate");
Calendar cal = Calendar.getInstance();
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.YEAR, 2000);
sd.setDate(cal.getTime());
startFilter.setWidget(sd);
addFilter(startFilter);
TableFilter endFilterLabel = new TableFilter("endDateFilter");
endFilterLabel.setWidget(new Label("label2", " To "));
addFilter(endFilterLabel);
TableFilter endFilter = new TableFilter("endDate");
DateField ed = new DateField("endDate");
cal = Calendar.getInstance();
cal.set(Calendar.HOUR_OF_DAY, 23);
cal.set(Calendar.MINUTE, 59);
cal.set(Calendar.SECOND, 59);
cal.add(Calendar.DAY_OF_MONTH, 30);
ed.setDate(cal.getTime());
endFilter.setWidget(ed);
addFilter(endFilter);
TableFilter classFilter = new TableFilter("classFilter");
SelectBox sbClassFilter = new SelectBox("sbClassFilter");
Map optionMap = new SequencedHashMap();
optionMap.put("", application.getMessage("general.label.any", "Any"));
ContentManager cm = (ContentManager)application.getModule(ContentManager.class);
Class[] classes = cm.getAllowedClasses(null);
for (int i=0; i<classes.length; i++) {
optionMap.put(classes[i].getName(), application.getMessage("cms.label_" + classes[i].getName(), classes[i].getName()));
}
sbClassFilter.setOptionMap(optionMap);
classFilter.setWidget(sbClassFilter);
addFilter(classFilter);
}
public String getTableRowKey() {
return "id";
}
public Collection getTableRows() {
try {
String name = (String)getFilterValue("name");
Collection selected = (Collection)getFilterValue("classFilter");
String selectedClass = (selected != null && selected.size() > 0) ? (String)selected.iterator().next() : null;
String[] classes = (selectedClass == null || "".equals(selectedClass)) ? null : new String[] {selectedClass};
// get dates
Date startDate = ((DateField)getFilter("startDate").getWidget()).getDate();
Calendar cal = Calendar.getInstance();
cal.setTime(startDate);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
startDate = cal.getTime();
Date endDate = ((DateField)getFilter("endDate").getWidget()).getDate();
cal.setTime(endDate);
cal.set(Calendar.HOUR_OF_DAY, 23);
cal.set(Calendar.MINUTE, 59);
cal.set(Calendar.SECOND, 59);
endDate = cal.getTime();
// check user permission
Application app = Application.getInstance();
SecurityService security = (SecurityService)app.getService(SecurityService.class);
User user = getWidgetManager().getUser();
boolean manageRecycleBin = security.hasPermission(user.getId(), ContentManager.PERMISSION_MANAGE_RECYCLE_BIN, getClass().getName(), null);
String permission = (manageRecycleBin) ? null : ContentManager.USE_CASE_PREVIEW; // users that can manage recycle bin see all deleted content, regardless of permission
// query
ContentManager cm = (ContentManager)app.getModule(ContentManager.class);
Collection children = cm.viewListByDate(null, classes, name, null, startDate, endDate, null, null, null, null, null, Boolean.TRUE, null, getSort(), isDesc(), getStart(), getRows(), permission, user);
return children;
}
catch(Exception e) {
throw new RuntimeException(e.toString());
}
}
public int getTotalRowCount() {
try {
String name = (String)getFilterValue("name");
Collection selected = (Collection)getFilterValue("classFilter");
String selectedClass = (selected != null && selected.size() > 0) ? (String)selected.iterator().next() : null;
String[] classes = (selectedClass == null || "".equals(selectedClass)) ? null : new String[] {selectedClass};
// get dates
Date startDate = ((DateField)getFilter("startDate").getWidget()).getDate();
Calendar cal = Calendar.getInstance();
cal.setTime(startDate);
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
startDate = cal.getTime();
Date endDate = ((DateField)getFilter("endDate").getWidget()).getDate();
cal.setTime(endDate);
cal.set(Calendar.HOUR_OF_DAY, 23);
cal.set(Calendar.MINUTE, 59);
cal.set(Calendar.SECOND, 59);
endDate = cal.getTime();
// check user permission
Application app = Application.getInstance();
SecurityService security = (SecurityService)app.getService(SecurityService.class);
User user = getWidgetManager().getUser();
boolean manageRecycleBin = security.hasPermission(user.getId(), ContentManager.PERMISSION_MANAGE_RECYCLE_BIN, getClass().getName(), null);
String permission = (manageRecycleBin) ? null : ContentManager.USE_CASE_PREVIEW; // users that can manage recycle bin see all deleted content, regardless of permission
// query
ContentManager cm = (ContentManager)app.getModule(ContentManager.class);
int total = cm.viewCountByDate(null, classes, name, null, startDate, endDate, null, null, null, null, null, Boolean.TRUE, null, permission, user);
return total;
}
catch(Exception e) {
throw new RuntimeException(e.toString());
}
}
public Forward processAction(Event evt, String action, String[] selectedKeys) {
// System.out.println("Action: " + action + "; Keys: " + Arrays.asList(selectedKeys));
Application application = Application.getInstance();
ContentManager cm = (ContentManager)application.getModule(ContentManager.class);
User user = getWidgetManager().getUser();
if ("undelete".equals(action)) {
// System.out.println("Undelete: " + action + "; Keys: " + Arrays.asList(selectedKeys));
try {
cm.undelete(selectedKeys, false, user);
}
catch (Exception e) {
Log.getLog(getClass()).error(e.toString(), e);
}
}
else if ("destroy".equals(action)) {
// System.out.println("Destroy: " + action + "; Keys: " + Arrays.asList(selectedKeys));
try {
cm.destroy(selectedKeys, user);
}
catch (Exception e) {
Log.getLog(getClass()).error(e.toString(), e);
}
}
else {
}
return new Forward("success");
}
}
}
|
[
"fairul@a9c4ac11-bb59-4888-a949-8c1c6fc09797"
] |
fairul@a9c4ac11-bb59-4888-a949-8c1c6fc09797
|
c32c59fce78b891327a5316675f5d560213bda95
|
b784b4491b2581b2bc2302afec78de54a4882b3f
|
/src/it/VisualMap/SimplePoints.java
|
b22cd890cfff0a0660a4ff2b16f86eb36af75e38
|
[] |
no_license
|
pianetarosso/Travelogue
|
f18894875be9e4d8c70352790be3bb10629dd77d
|
00c9460b4baaeb6a154854eba9c639d9174299d2
|
refs/heads/master
| 2020-04-10T10:11:45.798536 | 2012-12-17T21:17:00 | 2012-12-17T21:17:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,494 |
java
|
package it.VisualMap;
import java.io.Serializable;
import android.location.Location;
import com.google.android.maps.GeoPoint;
public class SimplePoints implements Serializable {
private static final long serialVersionUID = 1L;
/**
*/
private long gpsId;
/**
*/
private int latitude;
/**
*/
private int longitude;
/**
*/
private long dataRilevamento;
/**
*/
private long travelID;
/**
*/
private GeoPoint geoPoint = null;
public SimplePoints(){}
public static SimplePoints parseToSimplePoints(Points p) {
SimplePoints sp = new SimplePoints();
sp.setDataRilevamento(p.getDataRilevamento());
sp.setGpsId(p.getGpsId());
sp.setLatitude(p.getLatitude());
sp.setLongitude(p.getLongitude());
sp.setTravelID(p.getTravelID());
return sp;
}
/**
* @param travelID
*/
public void setTravelID(long travelID) {
this.travelID = travelID;
}
/**
* @return
*/
public long getTravelID() {
return travelID;
}
/**
* @return
*/
public int getLatitude() {
return latitude;
}
/**
* @return
*/
public int getLongitude() {
return longitude;
}
/**
* @return
*/
public long getGpsId() {
return gpsId;
}
/**
* @return
*/
public GeoPoint getGeoPoint() {
if (this.geoPoint == null) {
this.geoPoint = new GeoPoint(this.latitude, this.longitude);
}
return this.geoPoint;
}
public Location getLocation() {
Location location = new Location(""+gpsId);
location.setLatitude(latitude/1E6);
location.setLongitude(longitude/1E6);
return location;
}
/**
* @return
*/
public long getDataRilevamento() {
return dataRilevamento;
}
/**
* @param latitude
*/
public void setLatitude(int latitude) {
this.latitude=latitude;
}
/**
* @param longitude
*/
public void setLongitude(int longitude) {
this.longitude=longitude;
}
/**
* @param dataRilevamento
*/
public void setDataRilevamento(long dataRilevamento) {
this.dataRilevamento=dataRilevamento;
}
/**
* @param gpsId
*/
public void setGpsId(long gpsId) {
this.gpsId=gpsId;
}
public int equals(Points point) {
if ((latitude == point.getLatitude()) && (longitude == point.getLongitude()))
return (int) Math.abs(point.getDataRilevamento()-dataRilevamento);
else
return -1;
}
public String toString() {
return "Point id:"+gpsId+
", latitude:"+latitude+
", longitude:"+longitude+
", time get:"+dataRilevamento+
", travel id:"+travelID;
}
}
|
[
"[email protected]"
] | |
1f57b5f3d64a0561c4ba9299825666fdb18af37a
|
b9002ca0d59a693ca7517344275ef559fe9d8984
|
/src/test/java/mypackage/SizeAndLocationOfElement.java
|
d625cfedcb81737957bf80b972e94c0d3432908c
|
[] |
no_license
|
dorjoo911/SeleniumBasicActions
|
d8c2fe2ae7e66172a7836356f2919ef3245cb558
|
7a8814eda523f2fec1ab19885a195b785d208293
|
refs/heads/master
| 2023-05-03T18:45:54.890340 | 2021-05-19T18:48:34 | 2021-05-19T18:48:34 | 364,303,788 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,445 |
java
|
package mypackage;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class SizeAndLocationOfElement {
public static void main(String[] args) {
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.get("https://opensource-demo.orangehrmlive.com/");
WebElement logo = driver.findElement(By.xpath("//div[@id='divLogo']//img"));
//Location-method1
System.out.println("Location(x,y): " + logo.getLocation());
System.out.println("Location(x): " + logo.getLocation().getX());
System.out.println("Location(y): " + logo.getLocation().getY());
//Location-method2
System.out.println("Location(x): " + logo.getRect().getX());
System.out.println("Location(y): " + logo.getRect().getX());
//Size-method1
System.out.println("Size(Width, Height): " + logo.getSize());
System.out.println("Size(Width): " + logo.getSize().getWidth());
System.out.println("Size(Height): " + logo.getSize().getHeight());
//Size-method2
System.out.println("Size(Width): " + logo.getRect().getDimension().getWidth());
System.out.println("Size(Height): " + logo.getRect().getDimension().getHeight());
driver.close();
}
}
|
[
"[email protected]"
] | |
53cc6a8154e2e9e4591559832d9e189e39db944d
|
40665051fadf3fb75e5a8f655362126c1a2a3af6
|
/CesarValiente-quitesleep/47f3f88ce710f8ee6c2a04e6dbe4086d5256b9b2/194/EditContact.java
|
610cbb454954265b6f75ec79da27a50749210657
|
[] |
no_license
|
fermadeiral/StyleErrors
|
6f44379207e8490ba618365c54bdfef554fc4fde
|
d1a6149d9526eb757cf053bc971dbd92b2bfcdf1
|
refs/heads/master
| 2020-07-15T12:55:10.564494 | 2019-10-24T02:30:45 | 2019-10-24T02:30:45 | 205,546,543 | 2 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 11,379 |
java
|
/*
Copyright 2010 Cesar Valiente Gordo
This file is part of QuiteSleep.
QuiteSleep is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
QuiteSleep is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with QuiteSleep. If not, see <http://www.gnu.org/licenses/>.
*/
package es.cesar.quitesleep.ui.activities;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import es.cesar.quitesleep.R;
import es.cesar.quitesleep.data.controllers.ClientDDBB;
import es.cesar.quitesleep.data.models.Contact;
import es.cesar.quitesleep.data.models.Mail;
import es.cesar.quitesleep.data.models.Phone;
import es.cesar.quitesleep.operations.ContactOperations;
import es.cesar.quitesleep.settings.ConfigAppValues;
import es.cesar.quitesleep.ui.activities.base.BaseFragmentActivity;
import es.cesar.quitesleep.utils.ExceptionUtils;
/**
*
* @author Cesar Valiente Gordo
* @mail [email protected]
*
*/
public class EditContact extends BaseFragmentActivity implements OnClickListener {
final private String CLASS_NAME = getClass().getName();
//Global widgets
private ScrollView scrollView;
private LinearLayout linearLayout;
//Phone and mail list for dynamic checkbox
private List<CheckBox> phoneCheckboxList;
private List<CheckBox> mailCheckboxList;
/* The contact Name selected in parent and caller activity when the user
* selectd clicking in it.
*/
private String selectContactName;
//Ids for button widgets
private final int removeContactButtonId = 1;
private final int editContactButtonId = 2;
//Ids for colors
private final int backgroundColor = R.color.black;
private final int textColor = R.color.black;
@Override
public void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.homeToUp(true);
initDynamicLayout();
}
/**
* Create and initialize the dynamic layout and put some widgets on it
*/
private void initDynamicLayout () {
try {
/* Get the contactName passed from the parent activity to this, and
* use for get a Contact object refferenced to this name.
*/
selectContactName = getIntent().getExtras().getString(ConfigAppValues.CONTACT_NAME);
ClientDDBB clientDDBB = new ClientDDBB();
Contact contact = clientDDBB.getSelects().selectContactForName(selectContactName);
if (contact != null && contact.isBanned()) {
createLayout();
createHeader();
createPhoneNumbersSection(clientDDBB, contact);
createMailAddressesSection(clientDDBB, contact);
addButtons();
setContentView(scrollView);
clientDDBB.close();
}else {
clientDDBB.close();
setResult(Activity.RESULT_CANCELED);
finish();
}
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
/*
* Create the scrollView and LinearLayput for put some widgets on it
*/
private void createLayout () {
try {
scrollView = new ScrollView(this);
linearLayout = new LinearLayout(this);
linearLayout.setOrientation(LinearLayout.VERTICAL);
scrollView.setBackgroundColor(this.getResources().getColor(backgroundColor));
scrollView.addView(linearLayout);
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
/**
* Put the contactName and a separator view how header for the layout
*/
private void createHeader () {
try {
TextView contactName = new TextView(this);
contactName.setText(selectContactName);
//contactName.setTextColor(textColor);
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.MATCH_PARENT);
contactName.setLayoutParams(params);
contactName.setTypeface(Typeface.create("", Typeface.BOLD_ITALIC));
contactName.setTextSize(25);
linearLayout.addView(contactName);
addDividerBlack();
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
/**
* Create the phone numbers section
*
* @param clientDDBB
* @param contact
*/
private void createPhoneNumbersSection (ClientDDBB clientDDBB, Contact contact) {
try {
List<Phone> contactPhones =
clientDDBB.getSelects().selectAllContactPhonesForName(selectContactName);
if (contactPhones != null) {
addDividerDetails(R.string.contactdetails_label_phonedetails);
phoneCheckboxList = new ArrayList<CheckBox>(contactPhones.size());
for (int i=0; i<contactPhones.size(); i++) {
Phone phone = contactPhones.get(i);
CheckBox checkbox = new CheckBox(this);
checkbox.setText(phone.getContactPhone());
checkbox.setChecked(phone.isUsedToSend());
//checkbox.setTextColor(textColor);
linearLayout.addView(checkbox);
phoneCheckboxList.add(checkbox);
}
}
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
/**
* Create the mail addresses section
*
* @param clientDDBB
* @param contact
*/
private void createMailAddressesSection (ClientDDBB clientDDBB, Contact contact) {
try {
List<Mail> contactMails =
clientDDBB.getSelects().selectAllContactMailsForName(selectContactName);
if (contactMails != null && contactMails.size() > 0) {
addDividerDetails(R.string.contactdetails_label_maildetails);
mailCheckboxList = new ArrayList<CheckBox>(contactMails.size());
for (int i=0; i<contactMails.size(); i++) {
Mail mail = contactMails.get(i);
CheckBox checkbox = new CheckBox(this);
checkbox.setText(mail.getContactMail());
checkbox.setChecked(mail.isUsedToSend());
//checkbox.setTextColor(textColor);
linearLayout.addView(checkbox);
mailCheckboxList.add(checkbox);
}
}
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
/**
* Put one black dividerDetails view in the layout.
* Pass the resId with the string that we like it.
* @param resId
*/
private void addDividerDetails (int resId) {
TextView details = new TextView(this);
details.setBackgroundResource(R.drawable.solid_black);
details.setTypeface(Typeface.create("", Typeface.BOLD));
details.setTextSize(15);
details.setText(resId);
details.setPadding(0, 10, 0, 0);
linearLayout.addView(details);
}
/**
* Put one black divider view in the layout as separator for other views
*/
private void addDividerBlack () {
TextView dividerBlack = new TextView(this);
dividerBlack.setBackgroundResource(R.drawable.gradient_black);
dividerBlack.setTextSize(3);
linearLayout.addView(dividerBlack);
}
/**
* Put one blue divider view in the layout as separator for other views
*/
private void addDividerBlue () {
TextView dividerBlue = new TextView(this);
dividerBlue.setBackgroundResource(R.drawable.gradient_blue);
dividerBlue.setTextSize(2);
linearLayout.addView(dividerBlue);
}
/**
* Put two buttons, one for addContact to the banned list and other for
* cancel and go back to the parent activity.
*/
private void addButtons () {
try {
addDividerBlue();
Button editButton = new Button(this);
editButton.setText(R.string.editcontact_button_edit);
editButton.setId(editContactButtonId);
editButton.setCompoundDrawablesWithIntrinsicBounds(R.drawable.edit, 0, 0, 0);
editButton.setId(editContactButtonId);
editButton.setBackgroundDrawable(getResources().getDrawable(
R.drawable.common_button_selector));
editButton.setTextColor(Color.WHITE);
editButton.setTextSize(20);
editButton.setOnClickListener(this);
linearLayout.addView(editButton);
addDividerBlack();
Button removeContactButton = new Button(this);
removeContactButton.setText(R.string.editcontact_button_remove);
removeContactButton.setId(removeContactButtonId);
removeContactButton.setCompoundDrawablesWithIntrinsicBounds(R.drawable.delete, 0, 0, 0);
removeContactButton.setId(removeContactButtonId);
removeContactButton.setBackgroundDrawable(getResources().getDrawable(
R.drawable.common_button_selector));
removeContactButton.setTextColor(Color.WHITE);
removeContactButton.setTextSize(20);
removeContactButton.setOnClickListener(this);
linearLayout.addView(removeContactButton);
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
@Override
public void onClick (View view) {
int viewId = view.getId();
boolean result;
switch (viewId) {
case editContactButtonId:
result = ContactOperations.editContact(
selectContactName,
phoneCheckboxList,
mailCheckboxList);
showEditToast(result);
break;
case removeContactButtonId:
result = ContactOperations.removeContact(selectContactName);
showRemoveToast(result);
setResult(Activity.RESULT_OK);
finish();
break;
default:
break;
}
}
/**
* Show toast notification for information to user
*
* @param result
*/
private void showEditToast (boolean result) {
try {
if (result)
es.cesar.quitesleep.utils.Toast.d(
this,
this.getString(
R.string.editcontact_toast_edit),
Toast.LENGTH_SHORT);
else
es.cesar.quitesleep.utils.Toast.d(
this,
this.getString(
R.string.editcontact_toast_edit_fail),
Toast.LENGTH_SHORT);
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
/**
* Show notification toast to the user for information.
*
* @param result
*/
private void showRemoveToast (boolean result) {
try {
if (result)
es.cesar.quitesleep.utils.Toast.d(
this,
this.getString(
R.string.editcontact_toast_remove),
Toast.LENGTH_SHORT);
else
es.cesar.quitesleep.utils.Toast.d(
this,
this.getString(
R.string.editcontact_toast_remove_fail),
Toast.LENGTH_SHORT);
}catch (Exception e) {
Log.e(CLASS_NAME, ExceptionUtils.getString(e));
}
}
}
|
[
"[email protected]"
] | |
8f7d50e7ce314bfbeee1e0ae928828b8c559745f
|
ebc96d920b768589935102a53523923f277420b4
|
/ExtraDip/src/main/dip/Battle.java
|
bfeee928c1e4bdaaf765ef7019670cb7f0ff72aa
|
[] |
no_license
|
Uchihagyerek/javabead
|
0d267e15dd8e0b6c667fcd9bb3d3421ffc70702d
|
e99ce87fb1ae8e98f83bb33e91be8707b3d272a1
|
refs/heads/master
| 2020-05-09T22:49:43.809204 | 2019-04-15T14:52:50 | 2019-04-15T14:52:50 | 181,483,973 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 8,176 |
java
|
package dip;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Random;
public class Battle extends Canvas {
static JFrame thisFrame;
Map map;
Monster enemy;
JProgressBar enemyHealth;
JProgressBar playerHealth;
JButton attack;
JButton spell;
JButton potion;
JButton escape;
Player player;
private boolean boss;
public Battle(Map map, Player player, boolean boss) {
setSize(900, 900);
this.boss = boss;
if (!boss)
enemy = new Monster("patrik", 6, player);
else
enemy = new Monster("Boss", 10, player);
this.map = map;
this.player = player;
if (player.monsterWeakened) {
enemy.health /= 2;
}
enemy.maxHealth=enemy.health;
int playerInitialRoll=throwDice();
int enemyInitialRoll=throwDice();
if (enemyInitialRoll>playerInitialRoll){
System.out.println("Enemy rolled bigger, it can start the fight");
enemyAttack();
}else{
System.out.println("You can start the fight");
}
}
@Override
public void update(Graphics g) {
paint(g);
}
@Override
public void paint(Graphics ig) {
BufferedImage image = new BufferedImage(900, 900, BufferedImage.TYPE_INT_RGB);
Graphics2D g = image.createGraphics();
g.setColor(Color.LIGHT_GRAY);
g.fillRect(0, 0, 900, 900);
BufferedImage sprite;
try {
sprite = ImageIO.read(new File("src/sprites/" + enemy.name + ".jpg"));
} catch (IOException e) {
System.out.println(e.getMessage());
sprite = null;
}
ig.drawImage(image, 0, 0, this);
ig.drawImage(sprite, sprite.getWidth() / 2, 20, null);
}
public void ui(JFrame frame) {
thisFrame = frame;
attack = new JButton("Attack");
attack.setBounds(50, 750, 200, 50);
attack.setBackground(Color.WHITE);
attack.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
attackBtn(player.damage);
}
});
spell = new JButton("Spell");
spell.setBounds(250, 750, 200, 50);
spell.setBackground(Color.WHITE);
spell.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
spell();
}
});
potion = new JButton("Potion");
potion.setBounds(50, 800, 200, 50);
potion.setBackground(Color.WHITE);
potion.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
potion();
}
});
escape = new JButton("Escape");
escape.setBounds(250, 800, 200, 50);
escape.setBackground(Color.WHITE);
escape.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
escape();
}
});
enemyHealth = new JProgressBar();
int maxhealth = enemy.health;
enemyHealth.setMaximum(maxhealth);
enemyHealth.setValue(maxhealth);
enemyHealth.setBounds(0, 0, 900, 30);
enemyHealth.setString(enemy.name + ": " + enemy.health + "/" + maxhealth);
enemyHealth.setStringPainted(true);
enemyHealth.setForeground(Color.RED);
playerHealth = new JProgressBar();
playerHealth.setMaximum(player.maxHealth);
playerHealth.setValue(player.health);
playerHealth.setBounds(500, 750, 350, 50);
playerHealth.setString("Health: " + player.health + "/" + player.maxHealth);
playerHealth.setStringPainted(true);
playerHealth.setForeground(Color.GREEN);
frame.add(attack);
frame.add(spell);
frame.add(potion);
frame.add(escape);
frame.add(enemyHealth);
frame.add(playerHealth);
}
private void attackBtn(int damage) {
attack();
manageButtons();
enemyAttack();
manageButtons();
}
private int throwDice() {
Random random = new Random();
return random.nextInt(6) + 1;
}
private void attack() {
int playerRoll = throwDice();
int enemyRoll = throwDice();
if(boss){
enemyRoll++;
}
if (playerRoll == 6 || playerRoll + player.boost > enemyRoll) {
enemy.health--;
System.out.println("player attacked");
}
System.out.println("Player rolled: " + playerRoll);
System.out.println("Enemy rolled: " + enemyRoll);
if (player.familiar) {
int familiarRoll = throwDice();
enemyRoll = throwDice();
if (familiarRoll == 6 || familiarRoll > enemyRoll) {
enemy.health--;
}
System.out.println("Familiar rolled: " + familiarRoll);
System.out.println("Enemy rolled: " + enemyRoll);
}
setStats();
if (enemy.health<1){
map.defeated=true;
endBattle();
}
}
private void enemyAttack() {
int playerRoll = throwDice();
int enemyRoll = throwDice();
if(boss){
enemyRoll+=2;
}
if (player.armor) {
enemyRoll--;
}
if (enemyRoll == 6 || enemyRoll > playerRoll+player.boost) {
player.health--;
System.out.println("enemy attacked");
setStats();
}
System.out.println("Player rolled: " + playerRoll);
System.out.println("Enemy rolled: " + enemyRoll);
if(player.health<1){
player.die ();
}
}
private void setStats() {
try {
playerHealth.setValue(player.health);
playerHealth.setString("Health: " + player.health + "/" + player.maxHealth);
enemyHealth.setValue(enemy.health);
enemyHealth.setString("Health: " + enemy.health + "/" + enemy.maxHealth);
}catch(NullPointerException ex){
ex.printStackTrace();
}
}
private void spell() {
}
private void potion() {
if (player.potionsCount > 0) {
player.health = player.maxHealth;
setStats();
player.potionsCount--;
} else {
System.out.println("You don't have any potions left");
}
}
private void escape() {
map.defeated = false;
endBattle();
}
private void manageButtons() {
if (attack.isEnabled()) {
attack.setEnabled(false);
spell.setEnabled(false);
potion.setEnabled(false);
escape.setEnabled(false);
} else {
attack.setEnabled(true);
potion.setEnabled(true);
escape.setEnabled(true);
}
}
private void endBattle() {
map.setFocusable(true);
map.requestFocus();
if(player.sword){
player.boost=2;
}else{
player.boost=1;
}
if(player.monsterWeakened){
player.monsterWeakened=false;
}
player.familiarTime--;
if (player.familiarTime <= 0) {
player.familiar = false;
}
thisFrame.dispose();
map.started = false;
if (map.defeated) {
if(boss){
player.money+=500;
Treasure.treasure(player, false);
player.health=player.maxHealth;
}else{
player.money+=100;
}
map.repaint();
}
}
}
|
[
"[email protected]"
] | |
0b0c8f415948ed366b995075670dbba9f08b7ce4
|
eea5b7fd26d1e5345c0265ab3376f53d75e91dfa
|
/src/test/java/org/assertj/vavr/api/OptionAssert_contains_Test.java
|
d78317b3d1e414f860c2db490a226cee9930f5eb
|
[
"Apache-2.0"
] |
permissive
|
frecco75/assertj-vavr
|
754b24bcfd7653ea430518f1d7b9dd5fab6f96ce
|
486fe8da2bdc9c8fab1557972cdd030ec42eab00
|
refs/heads/master
| 2020-04-26T23:54:49.883978 | 2019-02-23T09:52:39 | 2019-02-23T09:52:39 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,013 |
java
|
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* <p>
* Copyright 2012-2017 the original author or authors.
*/
package org.assertj.vavr.api;
import io.vavr.control.Option;
import org.junit.jupiter.api.Test;
import static org.assertj.core.util.FailureMessages.actualIsNull;
import static org.assertj.vavr.api.OptionShouldContain.shouldContain;
import static org.assertj.vavr.api.VavrAssertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
class OptionAssert_contains_Test {
@Test
void should_fail_when_option_is_null() {
assertThrows(AssertionError.class,
() -> assertThat((Option<String>) null).contains("something"),
actualIsNull());
}
@Test
void should_pass_if_option_contains_expected_value() {
assertThat(Option.of("something")).contains("something");
}
@Test
void should_fail_if_option_does_not_contain_expected_value() {
Option<String> actual = Option.of("not-expected");
String expectedValue = "something";
assertThrows(AssertionError.class,
() -> assertThat(actual).contains(expectedValue),
shouldContain(actual, expectedValue).create());
}
@Test
void should_fail_if_option_is_empty() {
String expectedValue = "something";
assertThrows(AssertionError.class,
() -> assertThat(Option.none()).contains(expectedValue),
shouldContain(expectedValue).create());
}
}
|
[
"[email protected]"
] | |
4e0c83ec231b5d4e2878a9dcfa260732ee3ae7d0
|
759e4adb9c04256d00a261148c8d703067540333
|
/src/main/java/pl/asie/charset/gates/PartGate.java
|
59b92b35a0a77b87852a62d5ba397b85ac35a776
|
[
"MIT"
] |
permissive
|
DiMuRie/CharsetMC
|
35f428a2e495cacb67a81f88f91f44bcbefdf0b7
|
c87a019944ddf1a4804d8be700c5c633d8ac996c
|
refs/heads/master
| 2021-01-18T12:37:08.295944 | 2015-12-29T11:17:00 | 2015-12-29T11:17:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 18,335 |
java
|
package pl.asie.charset.gates;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.util.ITickable;
import net.minecraft.world.World;
import net.minecraftforge.common.property.ExtendedBlockState;
import net.minecraftforge.common.property.IExtendedBlockState;
import net.minecraftforge.common.property.IUnlistedProperty;
import mcmultipart.MCMultiPartMod;
import mcmultipart.multipart.IMultipart;
import mcmultipart.multipart.IOccludingPart;
import mcmultipart.multipart.IRedstonePart;
import mcmultipart.multipart.ISlottedPart;
import mcmultipart.multipart.Multipart;
import mcmultipart.multipart.PartSlot;
import mcmultipart.raytrace.PartMOP;
import pl.asie.charset.api.wires.IConnectable;
import pl.asie.charset.api.wires.WireFace;
import pl.asie.charset.api.wires.WireType;
public abstract class PartGate extends Multipart implements IRedstonePart, ISlottedPart, IConnectable, IOccludingPart, ITickable {
public enum Connection {
NONE,
INPUT,
OUTPUT,
INPUT_ANALOG,
OUTPUT_ANALOG,
INPUT_BUNDLED,
OUTPUT_BUNDLED;
public boolean isInput() {
return this == INPUT || this == INPUT_ANALOG || this == INPUT_BUNDLED;
}
public boolean isOutput() {
return this == OUTPUT || this == OUTPUT_ANALOG || this == OUTPUT_BUNDLED;
}
public boolean isRedstone() {
return this == INPUT || this == OUTPUT || this == INPUT_ANALOG || this == OUTPUT_ANALOG;
}
public boolean isDigital() {
return this == INPUT || this == OUTPUT;
}
public boolean isAnalog() {
return this == INPUT_ANALOG || this == OUTPUT_ANALOG;
}
public boolean isBundled() {
return this == INPUT_BUNDLED || this == OUTPUT_BUNDLED;
}
}
public enum State {
NO_RENDER,
OFF,
ON,
DISABLED;
public State invert() {
switch (this) {
case OFF:
return ON;
case ON:
return OFF;
default:
return this;
}
}
public static State input(byte i) {
return i > 0 ? ON : OFF;
}
public static State bool(boolean v) {
return v ? ON : OFF;
}
}
protected byte enabledSides, invertedSides;
private int pendingTick;
private byte[] inputs = new byte[4];
private byte[] outputClient = new byte[4];
private EnumFacing side = EnumFacing.DOWN;
private EnumFacing top = EnumFacing.NORTH;
public PartGate() {
enabledSides = getSideMask();
}
PartGate setSide(EnumFacing facing) {
this.side = facing;
return this;
}
PartGate setTop(EnumFacing facing) {
this.top = facing;
return this;
}
PartGate setInvertedSides(int sides) {
this.invertedSides = (byte) sides;
return this;
}
public Connection getType(EnumFacing dir) {
return dir == EnumFacing.NORTH ? Connection.OUTPUT : Connection.INPUT;
}
public abstract State getLayerState(int id);
public abstract State getTorchState(int id);
public boolean canBlockSide(EnumFacing side) {
return getType(side).isInput();
}
public boolean canInvertSide(EnumFacing side) {
return getType(side).isInput() && getType(side).isDigital();
}
@Override
public boolean canConnect(WireType type, WireFace face, EnumFacing direction) {
if (face.facing == side && direction.getAxis() != side.getAxis()) {
EnumFacing dir = realToGate(direction);
if (isSideOpen(dir)) {
Connection conn = getType(dir);
if (conn.isRedstone()) {
return type != WireType.BUNDLED;
} else if (conn.isBundled()) {
return type == WireType.BUNDLED;
}
}
}
return false;
}
@Override
public ItemStack getPickBlock(EntityPlayer player, PartMOP hit) {
return ItemGate.getStack(this);
}
@Override
public List<ItemStack> getDrops() {
return Arrays.asList(ItemGate.getStack(this));
}
@Override
public void update() {
if (getWorld() != null && !getWorld().isRemote && pendingTick > 0) {
pendingTick--;
if (pendingTick == 0) {
updateInputs();
}
}
}
private void updateInputs() {
byte[] oldOutput = new byte[4];
boolean changed = false;
for (int i = 0; i <= 3; i++) {
Connection conn = getType(side);
if (conn.isOutput() && conn.isRedstone()) {
oldOutput[i] = getOutputOutside(side);
}
}
for (int i = 0; i <= 3; i++) {
EnumFacing side = EnumFacing.getFront(i + 2);
Connection conn = getType(side);
if (conn.isInput() && conn.isRedstone()) {
EnumFacing real = gateToReal(side);
byte oi = inputs[i];
World w = getWorld();
BlockPos p = getPos().offset(real);
IBlockState s = w.getBlockState(p);
inputs[i] = (byte) s.getBlock().getWeakPower(w, p, s, real);
if (conn.isDigital()) {
inputs[i] = inputs[i] != 0 ? (byte) 15 : 0;
}
if (inputs[i] != oi) {
changed = true;
}
}
}
if (!changed) {
for (int i = 0; i <= 3; i++) {
Connection conn = getType(side);
if (conn.isOutput() && conn.isRedstone()) {
if (getOutputOutside(side) != oldOutput[i]) {
changed = true;
break;
}
}
}
}
if (changed) {
notifyBlockUpdate();
sendUpdatePacket();
}
}
public byte getInputOutside(EnumFacing side) {
return inputs[side.ordinal() - 2];
}
protected byte getInputInside(EnumFacing side) {
if (isSideInverted(side)) {
return inputs[side.ordinal() - 2] != 0 ? 0 : (byte) 15;
} else {
return inputs[side.ordinal() - 2];
}
}
public boolean getInverterState(EnumFacing facing) {
byte value = getType(facing).isInput() ? getInputOutside(facing) : getOutputInsideClient(facing);
return value == 0;
}
protected byte getOutputOutside(EnumFacing side) {
if (isSideInverted(side)) {
return getOutputInside(side) != 0 ? 0 : (byte) 15;
} else {
return (byte) getOutputInside(side);
}
}
public byte getOutputInsideClient(EnumFacing side) {
return outputClient[side.ordinal() - 2];
}
public byte getOutputOutsideClient(EnumFacing side) {
if (isSideInverted(side)) {
return outputClient[side.ordinal() - 2] != 0 ? 0 : (byte) 15;
} else {
return outputClient[side.ordinal() - 2];
}
}
@Override
public void onAdded() {
pendingTick = 1;
}
@Override
public void onLoaded() {
pendingTick = 1;
}
@Override
public void onPartChanged(IMultipart part) {
if (pendingTick == 0) {
pendingTick = 2;
}
}
@Override
public void onNeighborBlockChange(Block block) {
if (pendingTick == 0) {
pendingTick = 2;
}
}
@Override
public EnumFacing[] getValidRotations() {
return new EnumFacing[]{side, side.getOpposite()};
}
@Override
public boolean rotatePart(EnumFacing axis) {
if (axis.getAxis() == side.getAxis()) {
if (axis.getAxisDirection() == EnumFacing.AxisDirection.POSITIVE) {
top = top.rotateY();
} else {
top = top.rotateYCCW();
}
return true;
}
return false;
}
public EnumFacing getSide() {
return side;
}
public EnumFacing getTop() {
return top;
}
protected byte getSideMask() {
byte j = 0;
for (int i = 0; i <= 3; i++) {
if (getType(EnumFacing.getFront(i + 2)) != Connection.NONE) {
j |= (1 << i);
}
}
return j;
}
protected abstract byte getOutputInside(EnumFacing side);
public boolean isSideOpen(EnumFacing side) {
return (enabledSides & (1 << (side.ordinal() - 2))) != 0;
}
public boolean isSideInverted(EnumFacing side) {
return (invertedSides & (1 << (side.ordinal() - 2))) != 0;
}
private boolean isInvalidEnabled() {
for (EnumFacing facing : EnumFacing.HORIZONTALS) {
if (!isSideOpen(facing) && !canBlockSide(facing)) {
return false;
}
}
return true;
}
@Override
public boolean onActivated(EntityPlayer playerIn, ItemStack stack, PartMOP hit) {
if (!playerIn.worldObj.isRemote) {
if (stack != null) {
if (stack.getItem() instanceof ItemScrewdriver) {
int z = 32;
enabledSides = (byte) ((enabledSides + 1) & 15);
while (z > 0 && ((~getSideMask() & enabledSides) != 0
|| isInvalidEnabled() || enabledSides == 0)) {
enabledSides = (byte) ((enabledSides + 1) & 15);
z--;
}
enabledSides |= 1;
if (z == 0) {
enabledSides = getSideMask();
}
notifyBlockUpdate();
sendUpdatePacket();
return true;
} else if (stack.getItem() == Item.getItemFromBlock(Blocks.redstone_torch)) {
invertedSides = (byte) ((invertedSides + 1) & 15);
while ((~getSideMask() & invertedSides) != 0) {
invertedSides = (byte) ((invertedSides + 1) & 15);
}
notifyBlockUpdate();
sendUpdatePacket();
return true;
}
}
}
return false;
}
@Override
public float getHardness(PartMOP hit) {
return 0.5F;
}
@Override
public String getModelPath() {
return getType();
}
@Override
public EnumSet<PartSlot> getSlotMask() {
return EnumSet.of(PartSlot.getFaceSlot(side));
}
@Override
public boolean canConnectRedstone(EnumFacing direction) {
if (side.getAxis() != direction.getAxis()) {
EnumFacing dir = realToGate(direction);
if (isSideOpen(dir)) {
return getType(dir).isRedstone();
}
}
return false;
}
@Override
public int getWeakSignal(EnumFacing facing) {
EnumFacing dir = realToGate(facing);
if (getType(dir).isOutput() && getType(dir).isRedstone() && isSideOpen(dir)) {
return getOutputOutside(dir);
} else {
return 0;
}
}
@Override
public int getStrongSignal(EnumFacing facing) {
return 0;
}
@Override
public void writeToNBT(NBTTagCompound tag) {
tag.setByteArray("in", inputs);
tag.setByte("f", (byte) side.ordinal());
tag.setByte("t", (byte) top.ordinal());
tag.setByte("e", enabledSides);
tag.setByte("i", invertedSides);
}
public void readItemNBT(NBTTagCompound tag) {
enabledSides = tag.getByte("e");
invertedSides = tag.getByte("i");
}
public void writeItemNBT(NBTTagCompound tag) {
tag.setByte("e", enabledSides);
tag.setByte("i", invertedSides);
}
@Override
public void readFromNBT(NBTTagCompound tag) {
inputs = tag.getByteArray("in");
if (inputs == null || inputs.length != 4) {
inputs = new byte[4];
}
enabledSides = tag.getByte("e");
invertedSides = tag.getByte("i");
side = EnumFacing.getFront(tag.getByte("f"));
top = EnumFacing.getFront(tag.getByte("t"));
}
@Override
public void writeUpdatePacket(PacketBuffer buf) {
buf.writeByte((side.ordinal() << 4) | top.ordinal());
buf.writeByte(enabledSides | (invertedSides << 4));
for (int i = 0; i <= 3; i++) {
EnumFacing dir = EnumFacing.getFront(i + 2);
if (getType(dir) != Connection.NONE) {
buf.writeByte(getType(dir).isInput() ? inputs[i] : getOutputInside(dir));
}
}
}
@Override
public void readUpdatePacket(PacketBuffer buf) {
int sides = buf.readUnsignedByte();
side = EnumFacing.getFront(sides >> 4);
top = EnumFacing.getFront(sides & 15);
sides = buf.readUnsignedByte();
enabledSides = (byte) (sides & 15);
invertedSides = (byte) (sides >> 4);
for (int i = 0; i <= 3; i++) {
inputs[i] = outputClient[i] = 0;
EnumFacing dir = EnumFacing.getFront(i + 2);
if (getType(dir) != Connection.NONE) {
if (getType(dir).isInput()) {
inputs[i] = buf.readByte();
} else {
outputClient[i] = buf.readByte();
}
}
}
markRenderUpdate();
}
// Utility functions
private AxisAlignedBB getBox() {
switch (side) {
case DOWN:
return new AxisAlignedBB(0, 0, 0, 1, 0.125, 1);
case UP:
return new AxisAlignedBB(0, 1 - 0.125, 0, 1, 1, 1);
case NORTH:
return new AxisAlignedBB(0, 0, 0, 1, 1, 0.125);
case SOUTH:
return new AxisAlignedBB(0, 0, 1 - 0.125, 1, 1, 1);
case WEST:
return new AxisAlignedBB(0, 0, 0, 0.125, 1, 1);
case EAST:
return new AxisAlignedBB(1 - 0.125, 0, 0, 1, 1, 1);
}
return null;
}
@Override
public void addCollisionBoxes(AxisAlignedBB mask, List<AxisAlignedBB> list, Entity collidingEntity) {
AxisAlignedBB box = getBox();
if (box != null && box.intersectsWith(mask)) {
list.add(box);
}
}
@Override
public void addOcclusionBoxes(List<AxisAlignedBB> list) {
AxisAlignedBB box = getBox();
if (box != null) {
list.add(box);
}
}
@Override
public void addSelectionBoxes(List<AxisAlignedBB> list) {
AxisAlignedBB box = getBox();
if (box != null) {
list.add(box);
}
}
public static final Property PROPERTY = new Property();
private static class Property implements IUnlistedProperty<PartGate> {
private Property() {
}
@Override
public String getName() {
return "gate";
}
@Override
public boolean isValid(PartGate value) {
return true;
}
@Override
public Class<PartGate> getType() {
return PartGate.class;
}
@Override
public String valueToString(PartGate value) {
return "!?";
}
}
@Override
public IBlockState getExtendedState(IBlockState state) {
return ((IExtendedBlockState) state).withProperty(PROPERTY, this);
}
@Override
public BlockState createBlockState() {
return new ExtendedBlockState(MCMultiPartMod.multipart, new IProperty[0], new IUnlistedProperty[]{ PROPERTY });
}
@Override
public boolean canRenderInLayer(EnumWorldBlockLayer layer) {
return layer == EnumWorldBlockLayer.CUTOUT;
}
private final EnumFacing[][] CONNECTION_DIRS = new EnumFacing[][] {
{EnumFacing.NORTH, EnumFacing.SOUTH, EnumFacing.WEST, EnumFacing.EAST},
{EnumFacing.SOUTH, EnumFacing.NORTH, EnumFacing.WEST, EnumFacing.EAST},
{EnumFacing.UP, EnumFacing.DOWN, EnumFacing.WEST, EnumFacing.EAST},
{EnumFacing.UP, EnumFacing.DOWN, EnumFacing.EAST, EnumFacing.WEST},
{EnumFacing.UP, EnumFacing.DOWN, EnumFacing.SOUTH, EnumFacing.NORTH},
{EnumFacing.UP, EnumFacing.DOWN, EnumFacing.NORTH, EnumFacing.SOUTH}
};
public boolean rsToDigi(byte v) {
return v > 0;
}
public byte digiToRs(boolean v) {
return v ? (byte) 15 : 0;
}
public EnumFacing gateToReal(EnumFacing dir) {
if (dir.getAxis() == EnumFacing.Axis.Y) {
return null;
}
EnumFacing itop = top;
while (itop != EnumFacing.NORTH) {
dir = dir.rotateY();
itop = itop.rotateYCCW();
}
return CONNECTION_DIRS[side.ordinal()][dir.ordinal() - 2];
}
public EnumFacing realToGate(EnumFacing rdir) {
if (rdir.getAxis() == side.getAxis()) {
return null;
}
for (int i = 0; i < 4; i++) {
if (CONNECTION_DIRS[side.ordinal()][i] == rdir) {
EnumFacing dir = EnumFacing.getFront(i + 2);
EnumFacing itop = top;
while (itop != EnumFacing.NORTH) {
dir = dir.rotateYCCW();
itop = itop.rotateYCCW();
}
return dir;
}
}
return null;
}
}
|
[
"[email protected]"
] | |
3d111075a89ea5e5f4ec9bfb276c019f3eb2acac
|
be55b0f0a009318258c5fece20b7cf6bd7883314
|
/JPAVideoStore/src/main/java/com/skilldistillery/jpavideostore/client/CustomerClient.java
|
961eeee71a472d48ebbc97d3f4d057532057d514
|
[] |
no_license
|
ShaunReass2/JPAVideoStore
|
dee41c40eac1e8f22e3ee3c1346980da9f26e4d7
|
67ecde8cf8c9487f5f2b2c808b8e6272e926db72
|
refs/heads/main
| 2023-06-29T06:38:19.147920 | 2021-07-25T20:43:01 | 2021-07-25T20:43:01 | 389,238,196 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 953 |
java
|
package com.skilldistillery.jpavideostore.client;
import java.util.Scanner;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import com.skilldistillery.jpavideostore.entities.Customer;
public class CustomerClient {
public static void main(String[] args) {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("VideoStore");
EntityManager em = emf.createEntityManager();
Scanner sc = new Scanner(System.in);
sc.nextLine(); // pause
System.out.println("before find");
Customer cust = em.find(Customer.class, 1);
sc.nextLine(); // pause
System.out.println("before printing cust");
System.out.println(cust);
sc.nextLine(); // pause
System.out.println("before printing rentals.size *********");
System.out.println(cust.getRentals().size());
em.close(); // no memory leaks
emf.close();
}
}
|
[
"[email protected]"
] | |
055d8e15cfc718c01011c80137a5ede1abbca791
|
cf699024c1ec3d4ae370d5005ed1400f55f90875
|
/ShengBo/src/weibo4android/Weibo.java
|
1527cfb9e5066672d13864b442576cb88bddc4a2
|
[] |
no_license
|
xiapQu/attmore
|
9064d3819481576ddfcdb4ea2352ae3d49bff012
|
b6f0801ba84883632779ef521277c28d6c36002d
|
refs/heads/master
| 2021-01-10T01:19:33.256593 | 2012-05-14T11:00:49 | 2012-05-14T11:00:49 | 52,056,663 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 157,699 |
java
|
/*
Copyright (c) 2007-2009, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Yusuke Yamamoto nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package weibo4android;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import weibo4android.http.AccessToken;
import weibo4android.http.HttpClient;
import weibo4android.http.ImageItem;
import weibo4android.http.PostParameter;
import weibo4android.http.RequestToken;
import weibo4android.http.Response;
import weibo4android.org.json.JSONException;
import weibo4android.org.json.JSONObject;
import weibo4android.util.URLEncodeUtils;
/**
* A java reporesentation of the <a href="http://open.t.sina.com.cn/wiki/">Weibo API</a>
* @editor sinaWeibo
*/
/**
* @author sinaWeibo
*
*/
public class Weibo extends WeiboSupport implements java.io.Serializable {
public static String CONSUMER_KEY = "2958187632";
public static String CONSUMER_SECRET = "56c3a455703b621a34cff0d4bdd9fa8d";
private String baseURL = Configuration.getScheme() + "api.t.sina.com.cn/";
private String searchBaseURL = Configuration.getScheme() + "api.t.sina.com.cn/";
private static final long serialVersionUID = -1486360080128882436L;
//----------------------------收藏接口----------------------------------------
/**
* 获取当前用户的收藏列表
* @param page the number of page
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @since Weibo4J 1.2.1
*/
public List<Status> getFavorites(int page) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "favorites.json", "page", String.valueOf(page), true));
}
/**
* 收藏一条微博消息
* @param id the ID of the status to favorite
* @return Status
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites/create">favorites/create </a>
*/
public Status createFavorite(long id) throws WeiboException {
return new Status(http.post(getBaseURL() + "favorites/create/" + id + ".json", true));
}
/**
* 删除微博收藏.注意:只能删除自己收藏的信息
* @param id the ID of the status to un-favorite
* @return Status
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites/destroy">favorites/destroy </a>
*/
public Status destroyFavorite(long id) throws WeiboException {
return new Status(http.post(getBaseURL() + "favorites/destroy/" + id + ".json", true));
}
/**
* 批量删除微博收藏
* @param ids 要删除的一组已收藏的微博消息ID,用半角逗号隔开,一次提交最多提供20个ID
* @return Status
* @throws WeiboException
* @Ricky
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites/destroy_batch">favorites/destroy_batch</a>
* @since Weibo4J 1.2.1
*/
public List<Status> destroyFavorites(String ids)throws WeiboException{
return Status.constructStatuses(http.post(getBaseURL()+"favorites/destroy_batch.json",
new PostParameter[]{new PostParameter("ids",ids)},true));
}
public List<Status> destroyFavorites(String...ids)throws WeiboException{
StringBuilder sb = new StringBuilder();
for(String id : ids) {
sb.append(id).append(',');
}
sb.deleteCharAt(sb.length() - 1);
return Status.constructStatuses(http.post(getBaseURL()+"favorites/destroy_batch.json",
new PostParameter[]{new PostParameter("ids",sb.toString())},true));
}
//----------------------------账号接口 ----------------------------------------
/**
* 验证当前用户身份是否合法
* @return user
* @since Weibo4J 1.2.1
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Account/verify_credentials">account/verify_credentials </a>
*/
public User verifyCredentials() throws WeiboException {
/*return new User(get(getBaseURL() + "account/verify_credentials.xml"
, true), this);*/
return new User(get(getBaseURL() + "account/verify_credentials.json"
, true).asJSONObject());
}
/**
* 更改资料 该接口需要申请权限方可调用
* @param name Optional. Maximum of 20 characters.
* @param email Optional. Maximum of 40 characters. Must be a valid email address.
* @param url Optional. Maximum of 100 characters. Will be prepended with "http://" if not present.
* @param location Optional. Maximum of 30 characters. The contents are not normalized or geocoded in any way.
* @param description Optional. Maximum of 160 characters.
* @return the updated user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Account/update_profile">account/update_profile </a>
*/
public User updateProfile(String name, String email, String url
, String location, String description) throws WeiboException {
List<PostParameter> profile = new ArrayList<PostParameter>(5);
addParameterToList(profile, "name", name);
addParameterToList(profile, "email", email);
addParameterToList(profile, "url", url);
addParameterToList(profile, "location", location);
addParameterToList(profile, "description", description);
return new User(http.post(getBaseURL() + "account/update_profile.json"
, profile.toArray(new PostParameter[profile.size()]), true).asJSONObject());
}
/**
* 更改头像 该接口需要申请权限方可调用
* @param image
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Account/update_profile_image">account/update_profile_image</a>
*/
public User updateProfileImage(File image)throws WeiboException {
return new User(http.multPartURL("image",getBaseURL() + "account/update_profile_image.json",
new PostParameter[]{new PostParameter("source",CONSUMER_KEY)},image, true).asJSONObject());
}
/**
*获取当前用户API访问频率限制<br>
* @return the rate limit status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Account/rate_limit_status">account/rate_limit_status </a>
*/
public RateLimitStatus rateLimitStatus() throws WeiboException {
return new RateLimitStatus(http.get(getBaseURL() + "account/rate_limit_status.json" , true),this);
}
/**
* 当前用户退出登录
* @return a user's object
* @throws WeiboException when Weibo service or network is unavailable
*/
public User endSession() throws WeiboException {
return new User(get(getBaseURL() + "account/end_session.json", true).asJSONObject());
}
//----------------------------Tags接口 ----------------------------------------
/**
* 返回用户的标签信息
* @param user_id 用户id
* @param paging 分页数据
* @return tags
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags">Tags </a>
*/
public List<Tag> getTags(String userId,Paging paging) throws WeiboException{
return Tag.constructTags(get(getBaseURL()+"tags.json",
new PostParameter[]{new PostParameter("user_id",userId)},
paging,true));
}
/**
* 为当前登录用户添加新的用户标签
* @param tags
* @return tagid
* @throws WeiboException
* @throws JSONException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags/create">Tags/create </a>
*/
public List<Tag> createTags(String ...tags)throws WeiboException{
StringBuffer sb= new StringBuffer();
for(String tag:tags){
sb.append(tag).append(",");
}
sb.deleteCharAt(sb.length()-1);
return createTags(sb.toString());
}
/**
* 为当前登录用户添加新的用户标签
* @param tags 要创建的一组标签,用半角逗号隔开。
* @return tagid
* @throws WeiboException
* @throws JSONException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags/create">Tags/create </a>
*/
public List<Tag> createTags(String tags)throws WeiboException{
return Tag.constructTags(http.post(getBaseURL()+"tags/create.json",
new PostParameter[]{new PostParameter("tags",tags)},true));
}
/**
* 返回用户感兴趣的标签
* @return a list of tags
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags/suggestions">Tags/suggestions </a>
*/
public List<Tag> getSuggestionsTags()throws WeiboException{
return Tag.constructTags(get(getBaseURL()+"tags/suggestions.json",true));
}
/**
* 删除标签
* @param tag_id
* @return
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags/destroy">Tags/destroy </a>
*/
public boolean destoryTag(String tag_id)throws WeiboException{
try {
return http.post(getBaseURL()+"tags/destroy.json",
new PostParameter[]{new PostParameter("tag_id",tag_id)},true).asJSONObject().getInt("result") ==0;
} catch (JSONException e) {
throw new WeiboException(e);
}
}
/**
* 删除一组标签
* @param ids
* @return tagid
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags/destroy_batch">Tags/destroy_batch </a>
*/
public List<Tag> destory_batchTags(String ids)throws WeiboException{
return Tag.constructTags(http.post(getBaseURL()+"tags/destroy_batch.json",
new PostParameter[]{new PostParameter("ids",ids)},true));
}
//----------------------------黑名单接口 ---------------------------------------
/**
* 将某用户加入登录用户的黑名单
* @param id 用户id
* @return the blocked user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see<a href="http://open.t.sina.com.cn/wiki/index.php/Blocks/create">Blocks/create</a>
*/
public User createBlock(String userid) throws WeiboException {
return new User(http.post(getBaseURL() + "blocks/create.json",
new PostParameter[]{new PostParameter("user_id", userid)}, true).asJSONObject());
}
/**
* 将某用户加入登录用户的黑名单
* @param screenName 用户昵称
* @return the blocked user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see<a href="http://open.t.sina.com.cn/wiki/index.php/Blocks/create">Blocks/create</a>
*/
public User createBlockByScreenName(String screenName) throws WeiboException {
return new User(http.post(getBaseURL() + "blocks/create.json",
new PostParameter[]{new PostParameter("screen_name", screenName)}, true).asJSONObject());
}
/**
* Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
* @param id the ID or screen_name of the user to block
* @return the unblocked user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public User destroyBlock(String id) throws WeiboException {
return new User(http.post(getBaseURL() + "blocks/destroy.json",
new PostParameter[]{new PostParameter("id",id)}, true).asJSONObject());
}
/**
* Tests if a friendship exists between two users.
* @param id The ID or screen_name of the potentially blocked user.
* @return if the authenticating user is blocking a target user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public boolean existsBlock(String id) throws WeiboException {
try{
return -1 == get(getBaseURL() + "blocks/exists.json?user_id="+id, true).
asString().indexOf("<error>You are not blocking this user.</error>");
}catch(WeiboException te){
if(te.getStatusCode() == 404){
return false;
}
throw te;
}
}
/**
* Returns a list of user objects that the authenticating user is blocking.
* @return a list of user objects that the authenticating user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<User> getBlockingUsers() throws
WeiboException {
/*return User.constructUsers(get(getBaseURL() +
"blocks/blocking.xml", true), this);*/
return User.constructUsers(get(getBaseURL() +
"blocks/blocking.json", true));
}
/**
* Returns a list of user objects that the authenticating user is blocking.
* @param page the number of page
* @return a list of user objects that the authenticating user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<User> getBlockingUsers(int page) throws
WeiboException {
/*return User.constructUsers(get(getBaseURL() +
"blocks/blocking.xml?page=" + page, true), this);*/
return User.constructUsers(get(getBaseURL() +
"blocks/blocking.json?page=" + page, true));
}
/**
* Returns an array of numeric user ids the authenticating user is blocking.
* @return Returns an array of numeric user ids the authenticating user is blocking.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public IDs getBlockingUsersIDs() throws WeiboException {
// return new IDs(get(getBaseURL() + "blocks/blocking/ids.xml", true));
return new IDs(get(getBaseURL() + "blocks/blocking/ids.json", true),this);
}
//----------------------------Social Graph接口-----------------------------------
/**
* 返回用户关注的一组用户的ID列表
* @param userid 用户id
* @param cursor
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">Friends/ids</a>
*/
/*
public IDs getFriendsIDSByUserId(String userid,int cursor,int count) throws WeiboException{
return new IDs(get(baseURL+"friends/ids.json",
new PostParameter[]{new PostParameter("user_id", userid),new PostParameter("cursor",cursor),new PostParameter("count",count)}, true),this);
}
*/
public IDs getFriendsIDSByUserId(String userid,int cursor) throws WeiboException{
return new IDs(get(baseURL+"friends/ids.json",
new PostParameter[]{new PostParameter("user_id", userid),new PostParameter("cursor",cursor)}, true),this);
}
/**
* 返回用户关注的一组用户的ID列表
* @param userid 用户昵称
* @param cursor
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">Friends/ids</a>
*/
/*
public IDs getFriendsIDSByScreenName(String userid,int cursor,int count) throws WeiboException{
return new IDs(get(baseURL+"friends/ids.json",
new PostParameter[]{new PostParameter("screen_name", screenName),new PostParameter("cursor",cursor),new PostParameter("count",count)}, true),this);
}
*/
public IDs getFriendsIDSByScreenName(String screenName,int cursor) throws WeiboException{
return new IDs(get(baseURL+"friends/ids.json",
new PostParameter[]{new PostParameter("screen_name", screenName),new PostParameter("cursor",cursor)}, true),this);
}
/**
* 返回用户的粉丝用户ID列表
* @param userid 用户id
* @param cursor
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">Followers/ids</a>
*/
/*
public IDs getFollowersIDSByUserId(String userid,int cursor,int count) throws WeiboException{
return new IDs(get(baseURL+"followers/ids.json",
new PostParameter[]{new PostParameter("user_id", userid),new PostParameter("cursor",cursor),new PostParameter("count",count)}, true),this);
}
*/
public IDs getFollowersIDSByUserId(String userid,int cursor) throws WeiboException{
return new IDs(get(baseURL+"followers/ids.json",
new PostParameter[]{new PostParameter("user_id", userid),new PostParameter("cursor",cursor)}, true),this);
}
/**
* 返回用户的粉丝用户ID列表
* @param userid 用户昵称
* @param cursor
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">Followers/ids</a>
*/
/*
public IDs getFollowersIDSByScreenName(String userid,int cursor,int count) throws WeiboException{
return new IDs(get(baseURL+"followers/ids.json",
new PostParameter[]{new PostParameter("screen_name", screenName),new PostParameter("cursor",cursor),new PostParameter("count",count)}, true),this);
}
*/
public IDs getFollowersIDSByScreenName(String screenName,int cursor) throws WeiboException{
return new IDs(get(baseURL+"followers/ids.json",
new PostParameter[]{new PostParameter("screen_name", screenName),new PostParameter("cursor",cursor)}, true),this);
}
//----------------------------话题接口-------------------------------------------
/**
* 获取用户的话题。
* @return the result
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends">Trends </a>
*/
public List<UserTrend> getTrends(String userid,Paging paging) throws WeiboException {
return UserTrend.constructTrendList(get(baseURL + "trends.json",
new PostParameter[]{new PostParameter("user_id", userid)},paging,true));
}
/**
* 获取某一话题下的微博
* @param trendName 话题名称
* @return list status
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends/statuses">Trends/statuses </a>
*/
public List<Status> getTrendStatus(String trendName,Paging paging) throws WeiboException {
return Status.constructStatuses(get(baseURL + "trends/statuses.json",
new PostParameter[]{new PostParameter("trend_name", trendName)},
paging,true));
}
/**关注某一个话题
* @param treandName 话题名称
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends/follow">trends/follow</a>
*/
public UserTrend trendsFollow(String treandName) throws WeiboException {
return new UserTrend(http.post(baseURL+"trends/follow.json",new PostParameter[]{new PostParameter("trend_name", treandName)},true));
}
/**取消对某话题的关注。
* @param trendId 话题id
* @return result
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends/destroy">Trends/destroy</a>
*/
public boolean trendsDestroy(String trendId) throws WeiboException{
JSONObject obj= http.delete(baseURL+"trends/destroy.json?trend_id="+trendId+"&source="+Weibo.CONSUMER_KEY, true).asJSONObject();
try {
return obj.getBoolean("result");
} catch (JSONException e) {
throw new WeiboException("e");
}
}
/**
* 按小时返回热门话题
* @param baseApp 是否基于当前应用来获取数据。1表示基于当前应用来获取数据。
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends/hourly">Trends/hourly</a>
*/
public List<Trends> getTrendsHourly(Integer baseApp)throws WeiboException{
if(baseApp==null)
baseApp=0;
return Trends.constructTrendsList(get(baseURL+"trends/hourly.json","base_app",baseApp.toString() ,true));
}
/**
* 返回最近一天内的热门话题。
* @param baseApp 是否基于当前应用来获取数据。1表示基于当前应用来获取数据。
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends/daily">Trends/daily</a>
*/
public List<Trends> getTrendsDaily(Integer baseApp)throws WeiboException{
if(baseApp==null)
baseApp=0;
return Trends.constructTrendsList(get(baseURL+"trends/daily.json","base_app",baseApp.toString() ,true));
}
/**
* 返回最近一周内的热门话题。
* @param baseApp 是否基于当前应用来获取数据。1表示基于当前应用来获取数据。
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Trends/weekly">Trends/weekly</a>
*/
public List<Trends> getTrendsWeekly(Integer baseApp)throws WeiboException{
if(baseApp==null)
baseApp=0;
return Trends.constructTrendsList(get(baseURL+"trends/weekly.json","base_app",baseApp.toString() ,true));
}
private String toDateStr(Date date){
if(null == date){
date = new Date();
}
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(date);
}
//----------------------------关注接口-------------------------------------------
/**
* 关注一个用户。关注成功则返回关注人的资料
* @param id 要关注的用户ID 或者微博昵称
* @return the befriended user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/create">friendships/create </a>
*/
public User createFriendship(String id) throws WeiboException {
return new User(http.post(getBaseURL() + "friendships/create.json", new PostParameter[]{new
PostParameter("id",id)}, true).asJSONObject());
}
/**
* 关注一个用户。关注成功则返回关注人的资料
* @param id 微博昵称
* @return the befriended user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/create">friendships/create </a>
*/
public User createFriendshipByScreenName(String screenName) throws WeiboException {
return new User(http.post(getBaseURL() + "friendships/create.json",
new PostParameter[]{new PostParameter("screen_name", screenName)}
, true).asJSONObject());
}
/**
* 关注一个用户。关注成功则返回关注人的资料
* @param id 要关注的用户ID
* @return the befriended user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/create">friendships/create </a>
*/
public User createFriendshipByUserid(String userid) throws WeiboException {
return new User(http.post(getBaseURL() + "friendships/create.json",
new PostParameter[] {new PostParameter("user_id", userid)}
, true).asJSONObject());
}
/**
* 取消对某用户的关注
* @param id 要取消关注的用户ID 或者微博昵称
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/destroy">friendships/destroy </a>
*/
public User destroyFriendship(String id) throws WeiboException {
return new User(http.post(getBaseURL() + "friendships/destroy.json", "id",id, true).asJSONObject());
}
/**
* 取消对某用户的关注
* @param id 要取消关注的用户ID
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/destroy">friendships/destroy </a>
*/
public User destroyFriendshipByUserid(String userid) throws WeiboException {
return new User(http.post(getBaseURL() + "friendships/destroy.json", "user_id",""+userid, true).asJSONObject());
}
/**
* 取消对某用户的关注
* @param id 要取消关注的用户昵称
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/destroy">friendships/destroy </a>
*/
public User destroyFriendshipByScreenName(String screenName) throws WeiboException {
return new User(http.post(getBaseURL() + "friendships/destroy.json", "screen_name",screenName, true).asJSONObject());
}
//----------------------------用户接口-------------------------------------------
/**
* 按用户ID或昵称返回用户资料以及用户的最新发布的一条微博消息。
* @param id 用户ID或者昵称(string)
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Users/show">users/show </a>
* @since Weibo4J 1.2.1
*/
public User showUser(String user_id) throws WeiboException {
return new User(get(getBaseURL() + "users/show.json",new PostParameter[]{new PostParameter("id", user_id)}
,http.isAuthenticationEnabled()).asJSONObject());
}
/**
* 获取当前用户关注列表及每个关注用户的最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @since Weibo4J 1.2.1
*/
public List<User> getFriendsStatuses() throws WeiboException {
return User.constructResult(get(getBaseURL() + "statuses/friends.json", true));
}
/**
* 获取当前用户关注列表及每个关注用户的最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @since Weibo4J 1.2.1
*/
public List<User>getFriendsStatuses(int cursor) throws WeiboException {
return User.constructUser(get(getBaseURL()+"statuses/friends.json"
,new PostParameter[]{new PostParameter("cursor", cursor)},true));
}
/**
* 获取指定用户关注列表及每个关注用户的最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @param id 用户ID 或者昵称
* @param cursor 分页数据
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
*/
public List<User> getFriendsStatuses(String id, int cursor) throws WeiboException {
return User.constructUsers(get(getBaseURL() + "statuses/friends.json",
new PostParameter[]{new PostParameter("id", id),new PostParameter("cursor", cursor)},
true));
}
/**
* 获取当前用户关注列表及每个关注用户的最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @param cursor
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
*/
public List<User> getFriendsStatuses(String id ,int cursor,int count) throws WeiboException {
/*return User.constructUsers(get(getBaseURL() + "statuses/friends.xml", null,
paging, true), this);*/
return User.constructUsers(get(getBaseURL() + "statuses/friends.json",
new PostParameter[]{new PostParameter("id",id),new PostParameter("cursor",cursor),new PostParameter("count",count)} , true));
}
/**
* 获取指定用户关注列表及每个关注用户的最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @param id id 用户ID 或者昵称
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @since Weibo4J 1.2.1
*/
public List<User> getFriendsStatuses(String id) throws WeiboException {
/*return User.constructUsers(get(getBaseURL() + "statuses/friends/" + id + ".xml"
, false), this);*/
return User.constructUsers(get(getBaseURL() + "statuses/friends.json"
,new PostParameter[]{new PostParameter("id", id)}
, true));
}
/**
* 获取当前用户粉丝列表及及每个粉丝用户最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
* @since Weibo4J 1.2.1
*/
public List<User> getFollowersStatuses() throws WeiboException {
// return User.constructUsers(get(getBaseURL() + "statuses/followers.xml", true), this);
return User.constructResult(get(getBaseURL() + "statuses/followers.json", true));
}
/**
* 获取指定用户粉丝列表及及每个粉丝用户最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @param id 用户ID 或者昵称
* @param paging controls pagination
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
*/
public List<User> getFollowersStatuses(String id, int cursor) throws WeiboException {
return User.constructUser(get(getBaseURL() + "statuses/followers.json",
new PostParameter[]{new PostParameter("id", id),new PostParameter("cursor", cursor)}, true));
}
/**
* 获取当前用户粉丝列表及及每个粉丝用户最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @param paging 分页数据
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
*/
public List<User> getFollowersStatuses(String id,int cursor,int count) throws WeiboException {
return User.constructUsers(get(getBaseURL() + "statuses/followers.json",
new PostParameter[]{new PostParameter("id", id),new PostParameter("cursor", cursor),new PostParameter("count",count)}, true));
}
/**
* 获取当前用户粉丝列表及及每个粉丝用户最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @param cursor 分页数据
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
*/
public List<User> getFollowersStatuses(int cursor) throws WeiboException {
return User.constructUser(get(getBaseURL()+"statuses/followers.json",
new PostParameter[]{new PostParameter("cursor", cursor)},true));
}
/**
* 获取指定用户前20 粉丝列表及及每个粉丝用户最新一条微博,返回结果按关注时间倒序排列,最新关注的用户排在最前面。
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
*/
public List<User> getFollowersStatuses(String id) throws WeiboException {
return User.constructUsers(get(getBaseURL() + "statuses/followers.json",new PostParameter[]{new PostParameter("id", id)}, true));
}
/**
* 获取系统推荐用户
* @param category 返回某一类别的推荐用户 具体目录参见文档
* @return User
* @throws WeiboException
* @see<a href="http://open.t.sina.com.cn/wiki/index.php/Users/hot">users/hot</a>
* @since Weibo4J 1.2.1
*/
public List<User> getHotUsers(String category) throws WeiboException{
return User.constructUsers(get(getBaseURL()+"users/hot.json","category", category, true));
}
/**
* 更新当前登录用户所关注的某个好友的备注信息。
* @param userid 需要修改备注信息的用户ID。
* @param remark 备注信息
* @return
* @throws WeiboException
* @see<a href="http://open.t.sina.com.cn/wiki/index.php/User/friends/update_remark">friends/update_remark</a>
*/
public User updateRemark(String userid,String remark) throws WeiboException {
if(!URLEncodeUtils.isURLEncoded(remark))
remark=URLEncodeUtils.encodeURL(remark);
return new User(http.post(getBaseURL()+"user/friends/update_remark.json",
new PostParameter[]{new PostParameter("user_id", userid),
new PostParameter("remark", remark)},
true).asJSONObject());
}
/**
* 更新当前登录用户所关注的某个好友的备注信息。
* @param userid 需要修改备注信息的用户ID。
* @param remark 备注信息
* @return
* @throws WeiboException
* @see<a href="http://open.t.sina.com.cn/wiki/index.php/User/friends/update_remark">friends/update_remark</a>
*/
public User updateRemark(Long userid,String remark) throws WeiboException {
return updateRemark(Long.toString(userid), remark);
}
/**
* 返回当前用户可能感兴趣的用户
* @return user list
* @throws WeiboException
* * @see<a href="http://open.t.sina.com.cn/wiki/index.php/Users/suggestions">friends/update_remark</a>
*/
public List<User> getSuggestionUsers() throws WeiboException {
return User.constructUsers(get(getBaseURL()+"users/suggestions.json","with_reason", "0", true));
}
//-----------------------获取下行数据集(timeline)接口-----------------------------
/**
* 返回最新的20条公共微博。返回结果非完全实时,最长会缓存60秒
* @return list of statuses of the Public Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/public_timeline">statuses/public_timeline </a>
*/
public List<Status> getPublicTimeline() throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() +
"statuses/public_timeline.json", true));
}
/**返回最新的公共微博
* @param count 每次返回的记录数
* @param baseApp 是否仅获取当前应用发布的信息。0为所有,1为仅本应用。
* @return
* @throws WeiboException
*/
public List<Status> getPublicTimeline(int count,int baseApp) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() +
"statuses/public_timeline.json",
new PostParameter[]{
new PostParameter("count", count),
new PostParameter("base_app", baseApp)
}
, false));
}
/**
* 获取当前登录用户及其所关注用户的最新20条微博消息。<br/>
* 和用户登录 http://t.sina.com.cn 后在“我的首页”中看到的内容相同。
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
*/
public List<Status> getFriendsTimeline() throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/friends_timeline.json", true));
}
/**
*获取当前登录用户及其所关注用户的最新微博消息。<br/>
* 和用户登录 http://t.sina.com.cn 后在“我的首页”中看到的内容相同。
* @param paging 相关分页参数
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
*/
public List<Status> getFriendsTimeline(Paging paging) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/friends_timeline.json",null, paging, true));
}
/**
*获取当前登录用户及其所关注用户的最新微博消息。<br/>
* 和用户登录 http://t.sina.com.cn 后在“我的首页”中看到的内容相同。
* @return list of the home Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @since Weibo4J 1.2.1
*/
public List<Status> getHomeTimeline() throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/home_timeline.json", true));
}
/**
*获取当前登录用户及其所关注用户的最新微博消息。<br/>
* 和用户登录 http://t.sina.com.cn 后在“我的首页”中看到的内容相同。
* @param paging controls pagination
* @return list of the home Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @since Weibo4J 1.2.1
*/
public List<Status> getHomeTimeline(Paging paging) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/home_timeline.json", null, paging, true));
}
/**
* 返回指定用户最新发表的微博消息列表
* @param id 根据用户ID(int64)或者微博昵称(string)返回指定用户的最新微博消息列表。
* @param paging 分页信息
* @return list of the user Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
*/
public List<Status> getUserTimeline(String id, Paging paging)
throws WeiboException {
// return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline/" + id + ".xml",
// null, paging, http.isAuthenticationEnabled()), this);
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline.json",
new PostParameter[]{new PostParameter("id", id)}, paging, http.isAuthenticationEnabled()));
}
public List<Status> getUserTimeline(String id,Integer baseAPP,Integer feature, Paging paging)
throws WeiboException {
Map<String,String> maps= new HashMap<String, String>();
if(id!=null){
maps.put("id", id);
}
if(baseAPP!=null){
maps.put("base_app", baseAPP.toString());
}
if(feature!=null){
maps.put("feature", feature.toString());
}
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline.json",
generateParameterArray(maps), paging, http.isAuthenticationEnabled()));
}
/**
* 返回指定用户最新发表的微博消息列表
* @param id 根据用户ID(int64)或者微博昵称(string)返回指定用户的最新微博消息列表。
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
*/
public List<Status> getUserTimeline(String id) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline.json",
new PostParameter[]{new PostParameter("id", id)},
http.isAuthenticationEnabled()));
}
/**
*返回当前用户最新发表的微博消息列表
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
*/
public List<Status> getUserTimeline() throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline.json"
, true));
}
/**
*返回当前用户最新发表的微博消息列表
* @param paging controls pagination
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @since Weibo4J 1.2.1
*/
public List<Status> getUserTimeline(Paging paging) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline.json"
, null, paging, true));
}
/**
*返回当前用户最新发表的微博消息列表
* @param paging controls pagination
* @param base_app 是否基于当前应用来获取数据。1为限制本应用微博,0为不做限制。
* @param feature 微博类型,0全部,1原创,2图片,3视频,4音乐. 返回指定类型的微博信息内容。
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @since Weibo4J 1.2.1
*/
public List<Status> getUserTimeline(Integer baseAPP,Integer feature,Paging paging) throws
WeiboException {
return getUserTimeline(null,baseAPP,feature,paging);
}
/**
* 返回最新20条提到登录用户的微博消息(即包含@username的微博消息)
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/mentions">Statuses/mentions </a>
*/
public List<Status> getMentions() throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/mentions.json",
null, true));
}
/**
* 返回最新提到登录用户的微博消息(即包含@username的微博消息)
* @param paging 分页数据
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/mentions">Statuses/mentions </a>
*/
public List<Status> getMentions(Paging paging) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/mentions.json",
null, paging, true));
/*return Status.constructStatuses(get(getBaseURL() + "statuses/mentions.xml",
null, paging, true), this);*/
}
/**
* 返回最新20条发送及收到的评论。
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments_timeline">Statuses/comments_timeline</a>
*/
public List<Comment> getCommentsTimeline() throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments_timeline.json", true));
}
/**
* 返回最新n条发送及收到的评论。
* @param paging 分页数据
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments_timeline">Statuses/comments_timeline</a>
*/
public List<Comment> getCommentsTimeline(Paging paging) throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments_timeline.json",null,paging, true));
}
/**
* 获取最新20条当前用户发出的评论
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments_by_me">Statuses/comments_by_me</a>
*/
public List<Comment> getCommentsByMe() throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments_by_me.json", true));
}
/**
* 获取当前用户发出的评论
*@param paging 分页数据
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments_by_me">Statuses/comments_by_me</a>
*/
public List<Comment> getCommentsByMe(Paging paging) throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments_by_me.json",null,paging, true));
}
/**
* 返回最新20条当前登录用户收到的评论
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments_to_me">Statuses/comments_to_me</a>
*/
public List<Comment> getCommentsToMe() throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments_to_me.json", true));
}
/**
* 返回当前登录用户收到的评论
*@param paging 分页数据
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments_to_me">Statuses/comments_to_me</a>
*/
public List<Comment> getCommentsToMe(Paging paging) throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments_to_me.json",null,paging, true));
}
/**
* 返回用户转发的最新20条微博信息
* @param id specifies the id of user
* @return statuses
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/repost_by_me">Statuses/repost_by_me</a>
*/
public List<Status> getrepostbyme(String id)throws WeiboException {
return Status.constructStatuses(get(getBaseURL()+"statuses/repost_by_me.json","id",id,true));
}
/**
* 返回用户转发的最新n条微博信息
* @param id specifies the id of user
* @return statuses
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/repost_by_me">Statuses/repost_by_me</a>
*/
public List<Status> getrepostbyme(String id,Paging paging)throws WeiboException {
return Status.constructStatuses(get(getBaseURL()+"statuses/repost_by_me.json",
new PostParameter[]{new PostParameter("id", id)},
paging,true));
}
/**
* 返回一条原创微博的最新20条转发微博信息本接口无法对非原创微博进行查询。
* @param id specifies the id of original status.
* @return a list of statuses object
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/repost_timeline">Statuses/repost_timeline</a>
*/
public List<Status>getreposttimeline(String id)throws WeiboException{
return Status.constructStatuses(get(getBaseURL()+"statuses/repost_timeline.json",
"id", id,true));
}
/**
* 返回一条原创微博的最新n条转发微博信息本接口无法对非原创微博进行查询。
* @param id specifies the id of original status.
* @return a list of statuses object
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/repost_timeline">Statuses/repost_timeline</a>
*/
public List<Status>getreposttimeline(String id,Paging paging)throws WeiboException{
return Status.constructStatuses(get(getBaseURL()+"statuses/repost_timeline.json"
,new PostParameter[]{new PostParameter("id", id)},
paging,true));
}
/**
* 根据微博消息ID返回某条微博消息的20条评论列表
* @param id specifies the ID of status
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments">Statuses/comments</a>
*/
public List<Comment> getComments(String id) throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments.json","id",id, true));
}
/**
* 根据微博消息ID返回某条微博消息的n评论列表
* @param id specifies the ID of status
* @return a list of comments objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comments">Statuses/comments</a>
*/
public List<Comment> getComments(String id,Paging paging) throws WeiboException {
return Comment.constructComments(get(getBaseURL() + "statuses/comments.json",
new PostParameter[]{new PostParameter("id", id)},paging,
true));
}
/**
* 批量获取n条微博消息的评论数和转发数。要获取评论数和转发数的微博消息ID列表,用逗号隔开
* 一次请求最多可以获取100条微博消息的评论数和转发数
* @param ids ids a string, separated by commas
* @return a list of counts objects
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/counts">Statuses/counts</a>
*/
public List<Count> getCounts(String ids) throws WeiboException{
return Count.constructCounts(get(getBaseURL() + "statuses/counts.json","ids",ids, true));
}
/**
*获取当前用户Web主站未读消息数
* @return count objects
* @throws WeiboException when Weibo service or network is unavailable
* @throws JSONException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/unread">Statuses/unread</a>
*/
public Count getUnread() throws WeiboException{
return new Count(get(getBaseURL() + "statuses/unread.json", true));
}
/**
* 获取当前用户Web主站未读消息数
* @param withNewStatus 1表示结果中包含new_status字段,0表示结果不包含new_status字段。new_status字段表示是否有新微博消息,1表示有,0表示没有
* @param sinceId 参数值为微博id。该参数需配合with_new_status参数使用,返回since_id之后,是否有新微博消息产生
* @return
* @throws WeiboException
* @throws JSONException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/unread">Statuses/unread</a>
*/
public Count getUnread(Integer withNewStatus,Long sinceId) throws WeiboException, JSONException {
Map<String, String> maps= new HashMap<String, String>();
if(withNewStatus!=null)
maps.put("with_new_status",Integer.toString( withNewStatus));
if(sinceId!=null)
maps.put("since_id",Long.toString( sinceId));
return new Count(get(getBaseURL() + "statuses/unread.json", generateParameterArray(maps),true).asJSONObject());
}
/**
*将当前登录用户的某种新消息的未读数为0
* @param type 1. 评论数,2.@ me数,3. 私信数,4. 关注数
* @return
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reset_count">statuses/reset_count</a>
*/
public Boolean resetCount(int type)throws WeiboException{
boolean res=false;
JSONObject json = null;
try {
json=http.post(getBaseURL()+"statuses/reset_count.json",
new PostParameter[]{new PostParameter("type",type)},true).asJSONObject();
res=json.getBoolean("result");
} catch (JSONException je) {
throw new WeiboException(je.getMessage() + ":" + json,
je);
}
return res;
}
/**
* 返回新浪微博官方所有表情、魔法表情的相关信息。包括短语、表情类型、表情分类,是否热门等。
* @param type 表情类别。"face":普通表情,"ani":魔法表情,"cartoon":动漫表情
* @param language 语言类别,"cnname"简体,"twname"繁体
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Emotions">Emotions</a>
*/
public List<Emotion> getEmotions(String type,String language)throws WeiboException {
if(type==null)
type="face";
if(language==null)
language="cnname";
Map<String, String> maps= new HashMap<String, String>();
maps.put("type", type);
maps.put("language", language);
return Emotion.constructEmotions(get(getBaseURL()+"emotions.json",generateParameterArray(maps),true));
}
/**
* 返回新浪微博简体中文的普通表情。
* @return
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Emotions">Emotions</a>
*/
public List<Emotion> getEmotions()throws WeiboException {
return getEmotions(null,null);
}
//--------------微博访问接口----------
/**
* 根据ID获取单条微博消息,以及该微博消息的作者信息。
* @param id 要获取的微博消息ID
* @return 微博消息
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/show">statuses/show </a>
*/
public Status showStatus(String id) throws WeiboException {
return new Status(get(getBaseURL() + "statuses/show/" + id + ".json", true));
}
/**
* 根据ID获取单条微博消息,以及该微博消息的作者信息。
* @param id 要获取的微博消息ID
* @return 微博消息
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/show">statuses/show </a>
*/
public Status showStatus(long id) throws WeiboException {
return showStatus(Long.toString(id));
}
/**
* 发布一条微博信息
* @param status 要发布的微博消息文本内容
* @return the latest status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/update">statuses/update </a>
*/
public Status updateStatus(String status) throws WeiboException{
return new Status(http.post(getBaseURL() + "statuses/update.json",
new PostParameter[]{new PostParameter("status", status)}, true));
}
/**
* 发布一条微博信息
* @param status 要发布的微博消息文本内容
* @param latitude 纬度。有效范围:-90.0到+90.0,+表示北纬。
* @param longitude 经度。有效范围:-180.0到+180.0,+表示东经。
* @return the latest status
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/update">statuses/update </a>
* @since Weibo4J 1.2.1
*/
public Status updateStatus(String status, double latitude, double longitude) throws WeiboException{
return new Status(http.post(getBaseURL() + "statuses/update.json",
new PostParameter[]{new PostParameter("status", status),
new PostParameter("lat", latitude),
new PostParameter("long", longitude)}, true));
}
/**
* 发布一条微博信息
* @param status 要发布的微博消息文本内容
* @param inReplyToStatusId 要转发的微博消息ID
* @return the latest status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/update">statuses/update </a>
*/
public Status updateStatus(String status, long inReplyToStatusId) throws WeiboException {
return new Status(http.post(getBaseURL() + "statuses/update.json",
new PostParameter[]{new PostParameter("status", status), new PostParameter("in_reply_to_status_id", String.valueOf(inReplyToStatusId)), new PostParameter("source", source)}, true));
}
/**
*发布一条微博信息
* @param status 要发布的微博消息文本内容
* @param inReplyToStatusId 要转发的微博消息ID
* @param latitude 纬度。有效范围:-90.0到+90.0,+表示北纬。
* @param longitude 经度。有效范围:-180.0到+180.0,+表示东经。
* @return the latest status
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/update">statuses/update </a>
* @since Weibo4J 1.2.1
*/
public Status updateStatus(String status, long inReplyToStatusId
, double latitude, double longitude) throws WeiboException {
return new Status(http.post(getBaseURL() + "statuses/update.json",
new PostParameter[]{new PostParameter("status", status),
new PostParameter("lat", latitude),
new PostParameter("long", longitude),
new PostParameter("in_reply_to_status_id",
String.valueOf(inReplyToStatusId)),
new PostParameter("source", source)}, true));
}
/**
* 发表图片微博消息。目前上传图片大小限制为<5M。
* @param status 要发布的微博消息文本内容
* @param item 要上传的图片
* @return the latest status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/upload">statuses/upload </a>
*/
public Status uploadStatus(String status,ImageItem item) throws WeiboException {
if(!URLEncodeUtils.isURLEncoded(status))
status=URLEncodeUtils.encodeURL(status);
return new Status(http.multPartURL(getBaseURL() + "statuses/upload.json",
new PostParameter[]{new PostParameter("status", status), new PostParameter("source", source)},item, true));
}
/**
* 发表图片微博消息。目前上传图片大小限制为<5M。
* @param status 要发布的微博消息文本内容
* @param item 要上传的图片
* @param latitude 纬度。有效范围:-90.0到+90.0,+表示北纬。
* @param longitude 经度。有效范围:-180.0到+180.0,+表示东经。
* @return
* @throws WeiboException
*/
public Status uploadStatus(String status,ImageItem item, double latitude, double longitude) throws WeiboException {
if(!URLEncodeUtils.isURLEncoded(status))
status=URLEncodeUtils.encodeURL(status);
return new Status(http.multPartURL(getBaseURL() + "statuses/upload.json",
new PostParameter[]{new PostParameter("status", status),
new PostParameter("source", source),
new PostParameter("lat", latitude),
new PostParameter("long", longitude),
},item, true));
}
/**
* 发表图片微博消息。目前上传图片大小限制为<5M。
* @param status 要发布的微博消息文本内容
* @param file 要上传的图片
* @return
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/upload">statuses/upload </a>
*/
public Status uploadStatus(String status,File file) throws WeiboException {
if(!URLEncodeUtils.isURLEncoded(status))
status=URLEncodeUtils.encodeURL(status);
return new Status(http.multPartURL("pic",getBaseURL() + "statuses/upload.json",
new PostParameter[]{new PostParameter("status", status), new PostParameter("source", source)},file, true));
}
/**
* 发表图片微博消息。目前上传图片大小限制为<5M。
* @param status 要发布的微博消息文本内容
* @param file 要上传的图片
* @param latitude 纬度。有效范围:-90.0到+90.0,+表示北纬。
* @param longitude 经度。有效范围:-180.0到+180.0,+表示东经。
* @return
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/upload">statuses/upload </a>
*/
public Status uploadStatus(String status,File file, double latitude, double longitude) throws WeiboException {
if(!URLEncodeUtils.isURLEncoded(status))
status=URLEncodeUtils.encodeURL(status);
return new Status(http.multPartURL("pic",getBaseURL() + "statuses/upload.json",
new PostParameter[]{new PostParameter("status", status),
new PostParameter("source", source),
new PostParameter("lat", latitude),
new PostParameter("long", longitude)},
file, true));
}
/**
* Destroys the status specified by the required ID parameter. The authenticating user must be the author of the specified status.
* <br>This method calls http://api.t.sina.com.cn/statuses/destroy/id.format
*
* @param statusId The ID of the status to destroy.
* @return the deleted status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/destroy">statuses/destroy </a>
*/
public Status destroyStatus(long statusId) throws WeiboException {
return destroyStatus(Long.toString(statusId));
}
public Status destroyStatus(String statusId) throws WeiboException {
return new Status(http.post(getBaseURL() + "statuses/destroy/" + statusId + ".json",
new PostParameter[0], true));
}
/**
* 转发微博
* @param sid 要转发的微博ID
* @param status 添加的转发文本。必须做URLEncode,信息内容不超过140个汉字。如不填则默认为“转发微博”。
* @return a single status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public Status repost(String sid,String status) throws WeiboException {
return repost(sid, status,0);
}
/**
* 转发微博
* @param sid 要转发的微博ID
* @param status 添加的转发文本。必须做URLEncode,信息内容不超过140个汉字。如不填则默认为“转发微博”。
* @param isComment 是否在转发的同时发表评论。1表示发表评论,0表示不发表.
* @return a single status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public Status repost(String sid,String status,int isComment) throws WeiboException {
return new Status(http.post(getBaseURL() + "statuses/repost.json",
new PostParameter[]{new PostParameter("id", sid),
new PostParameter("status", status),
new PostParameter("is_comment", isComment)}, true));
}
/**
*对一条微博信息进行评论
* @param 评论内容。必须做URLEncode,信息内容不超过140个汉字。
* @param id 要评论的微博消息ID
* @param cid 要回复的评论ID,可以为null.如果id及cid不存在,将返回400错误
* </br>如果提供了正确的cid参数,则该接口的表现为回复指定的评论。<br/>此时id参数将被忽略。<br/>即使cid参数代表的评论不属于id参数代表的微博消息,通过该接口发表的评论信息直接回复cid代表的评论。
* @return the comment object
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comment">Statuses/comment</a>
*/
public Comment updateComment(String comment, String id, String cid) throws WeiboException {
PostParameter[] params = null;
if (cid == null)
params = new PostParameter[] {
new PostParameter("comment", comment),
new PostParameter("id", id)
};
else
params = new PostParameter[] {
new PostParameter("comment", comment),
new PostParameter("cid", cid),
new PostParameter("id", id)
};
return new Comment(http.post(getBaseURL() + "statuses/comment.json", params, true));
}
/**
* 删除评论。注意:只能删除登录用户自己发布的评论,不可以删除其他人的评论。
* @param statusId 欲删除的评论ID
* @return the deleted status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comment_destroy">statuses/comment_destroy </a>
*/
public Comment destroyComment(long commentId) throws WeiboException {
return new Comment(http.delete(getBaseURL()
+ "statuses/comment_destroy/" + commentId + ".json?source="
+ CONSUMER_KEY, true));
}
/**
* 批量删除评论。注意:只能删除登录用户自己发布的评论,不可以删除其他人的评论。
* @Ricky
* @param ids 欲删除的一组评论ID,用半角逗号隔开,最多20个
* @return
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/comment/destroy_batch">statuses/comment/destroy batch</a>
*/
public List<Comment> destroyComments(String ids)throws WeiboException{
return Comment.constructComments(http.post(getBaseURL()+"statuses/comment/destroy_batch.json",
new PostParameter[]{new PostParameter("ids",ids)},true));
}
public List<Comment> destroyComments(String[] ids)throws WeiboException{
StringBuilder sb = new StringBuilder();
for(String id : ids) {
sb.append(id).append(',');
}
sb.deleteCharAt(sb.length() - 1);
return Comment.constructComments(http.post(getBaseURL()+"statuses/comment/destroy_batch.json",
new PostParameter[]{new PostParameter("ids",sb.toString())},true));
}
/**
* 回复评论
* @param sid 要回复的评论ID。
* @param cid 要评论的微博消息ID
* @param comment 要回复的评论内容。必须做URLEncode,信息内容不超过140个汉字
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reply">Statuses/reply</a>
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public Comment reply(String sid, String cid, String comment)
throws WeiboException {
return new Comment(http.post(getBaseURL() + "statuses/reply.json",
new PostParameter[] { new PostParameter("id", sid),
new PostParameter("cid", cid),
new PostParameter("comment", comment) }, true));
}
//--------------auth method----------
/**
*
* @param consumerKey OAuth consumer key
* @param consumerSecret OAuth consumer secret
* @since Weibo4J 1.2.1
*/
public synchronized void setOAuthConsumer(String consumerKey, String consumerSecret){
this.http.setOAuthConsumer(consumerKey, consumerSecret);
}
/**
* 获取request token
* @return generated request token.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://oauth.net/core/1.0/#auth_step1">OAuth Core 1.0 - 6.1. Obtaining an Unauthorized Request Token</a>
*/
public RequestToken getOAuthRequestToken() throws WeiboException {
return http.getOAuthRequestToken();
}
public RequestToken getOAuthRequestToken(String callback_url) throws WeiboException {
return http.getOauthRequestToken(callback_url);
}
/**
* 通过request token获取access token
* @param requestToken the request token
* @return access token associsted with the supplied request token.
* @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token">Oauth/access token </a>
* @see <a href="http://oauth.net/core/1.0/#auth_step2">OAuth Core 1.0 - 6.2. Obtaining User Authorization</a>
* @since Weibo4J 1.2.1
*/
public synchronized AccessToken getOAuthAccessToken(RequestToken requestToken) throws WeiboException {
return http.getOAuthAccessToken(requestToken);
}
/**
* Retrieves an access token assosiated with the supplied request token and sets userId.
* @param requestToken the request token
* @param pin pin
* @return access token associsted with the supplied request token.
* @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token">Oauth/access token </a>
* @see <a href="http://oauth.net/core/1.0/#auth_step2">OAuth Core 1.0 - 6.2. Obtaining User Authorization</a>
* @since Weibo4J 1.2.1
*/
public synchronized AccessToken getOAuthAccessToken(RequestToken requestToken, String pin) throws WeiboException {
AccessToken accessToken = http.getOAuthAccessToken(requestToken, pin);
// setUserId(accessToken.getScreenName());
return accessToken;
}
/**
* Retrieves an access token assosiated with the supplied request token and sets userId.
* @param token request token
* @param tokenSecret request token secret
* @return access token associsted with the supplied request token.
* @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token">Oauth/access token </a>
* @see <a href="http://oauth.net/core/1.0/#auth_step2">OAuth Core 1.0 - 6.2. Obtaining User Authorization</a>
* @since Weibo4J 1.2.1
*/
public synchronized AccessToken getOAuthAccessToken(String token, String tokenSecret) throws WeiboException {
AccessToken accessToken = http.getOAuthAccessToken(token, tokenSecret);
// setUserId(accessToken.getScreenName());
return accessToken;
}
/**
* Retrieves an access token assosiated with the supplied request token.
* @param token request token
* @param tokenSecret request token secret
* @param oauth_verifier oauth_verifier or pin
* @return access token associsted with the supplied request token.
* @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token">Oauth/access token </a>
* @see <a href="http://oauth.net/core/1.0/#auth_step2">OAuth Core 1.0 - 6.2. Obtaining User Authorization</a>
* @since Weibo4J 1.2.1
*/
public synchronized AccessToken getOAuthAccessToken(String token
, String tokenSecret, String oauth_verifier) throws WeiboException {
return http.getOAuthAccessToken(token, tokenSecret, oauth_verifier);
}
public synchronized AccessToken getXAuthAccessToken(String userId,String passWord,String mode) throws WeiboException {
return http.getXAuthAccessToken(userId, passWord, mode);
}
public synchronized AccessToken getXAuthAccessToken(String userid, String password) throws WeiboException {
return getXAuthAccessToken(userid,password,Constants.X_AUTH_MODE);
}
/**
* Sets the access token
* @param accessToken accessToken
* @since Weibo4J 1.2.1
*/
public void setOAuthAccessToken(AccessToken accessToken){
this.http.setOAuthAccessToken(accessToken);
}
/**
* Sets the access token
* @param token token
* @param tokenSecret token secret
* @since Weibo4J 1.2.1
*/
public void setOAuthAccessToken(String token, String tokenSecret) {
setOAuthAccessToken(new AccessToken(token, tokenSecret));
}
/* Status Methods */
public RateLimitStatus getRateLimitStatus()throws
WeiboException {
/*modify by sycheng edit with json */
return new RateLimitStatus(get(getBaseURL() +
"account/rate_limit_status.json", true),this);
}
/**
* Returns the 20 most recent retweets posted by the authenticating user.
*
* @return the 20 most recent retweets posted by the authenticating user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<Status> getRetweetedByMe() throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_by_me.json",
null, true));
/*return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_by_me.xml",
null, true), this);*/
}
/**
* Returns the 20 most recent retweets posted by the authenticating user.
* @param paging controls pagination
* @return the 20 most recent retweets posted by the authenticating user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<Status> getRetweetedByMe(Paging paging) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_by_me.json",
null, true));
/*return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_by_me.xml",
null, paging, true), this);*/
}
/**
* Returns the 20 most recent retweets posted by the authenticating user's friends.
* @return the 20 most recent retweets posted by the authenticating user's friends.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<Status> getRetweetedToMe() throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_to_me.json",
null, true));
/*return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_to_me.xml",
null, true), this);*/
}
/**
* Returns the 20 most recent retweets posted by the authenticating user's friends.
* @param paging controls pagination
* @return the 20 most recent retweets posted by the authenticating user's friends.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<Status> getRetweetedToMe(Paging paging) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_to_me.json",
null, paging, true));
/*return Status.constructStatuses(get(getBaseURL() + "statuses/retweeted_to_me.xml",
null, paging, true), this);*/
}
/**
* Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
* @return the 20 most recent tweets of the authenticated user that have been retweeted by others.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<Status> getRetweetsOfMe() throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/retweets_of_me.json",
null, true));
/*return Status.constructStatuses(get(getBaseURL() + "statuses/retweets_of_me.xml",
null, true), this);*/
}
/**
* Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
* @param paging controls pagination
* @return the 20 most recent tweets of the authenticated user that have been retweeted by others.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<Status> getRetweetsOfMe(Paging paging) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/retweets_of_me.json",
null, paging, true));
/* return Status.constructStatuses(get(getBaseURL() + "statuses/retweets_of_me.xml",
null, paging, true), this);*/
}
/**
* Retweets a tweet. Requires the id parameter of the tweet you are retweeting. Returns the original tweet with retweet details embedded.
* @param statusId The ID of the status to retweet.
* @return the retweeted status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public Status retweetStatus(long statusId) throws WeiboException {
/*return new Status(http.post(getBaseURL() + "statuses/retweet/" + statusId + ".xml",
new PostParameter[0], true), this);*/
return new Status(http.post(getBaseURL() + "statuses/retweet/" + statusId + ".json",
new PostParameter[0], true));
}
/**
* Settings privacy information
* @param comment (message&realname&geo&badge)
* @return User
* @throws WeiboException
* @see<a href="http://open.t.sina.com.cn/wiki/index.php/Account/update_privacy">Account/update privacy</a>
* @since Weibo4J 1.2.1
* @deprecated
*/
public User updatePrivacy(String comment) throws WeiboException{
return new User(http.post(getBaseURL() + "account/update_privacy.json",
new PostParameter[]{new PostParameter("comment", comment)}, true).asJSONObject());
}
/**
* Returns a list of the users currently featured on the site with their current statuses inline.
*
* @return List of User
* @throws WeiboException when Weibo service or network is unavailable
*/
public List<User> getFeatured() throws WeiboException {
// return User.constructUsers(get(getBaseURL() + "statuses/featured.xml", true), this);
return User.constructUsers(get(getBaseURL() + "statuses/featured.json", true));
}
/**
* Tests if a friendship exists between two users.
*
* @param userA The ID or screen_name of the first user to test friendship for.
* @param userB The ID or screen_name of the second user to test friendship for.
* @return if a friendship exists between two users.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/exists">friendships/exists </a>
*/
public boolean existsFriendship(String userA, String userB) throws WeiboException {
return -1 != get(getBaseURL() + "friendships/exists.json", "user_a", userA, "user_b", userB, true).
asString().indexOf("true");
}
/**
* Returns an array of numeric IDs for every user the authenticating user is following.
* @return an array of numeric IDs for every user the authenticating user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFriendsIDs() throws WeiboException {
return getFriendsIDs(-1l);
}
/**
* Returns an array of numeric IDs for every user the authenticating user is following.
* @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return an array of numeric IDs for every user the authenticating user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFriendsIDs(long cursor) throws WeiboException {
return new IDs(get(getBaseURL() + "friends/ids.xml?cursor=" + cursor, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is following.<br>
* all IDs are attempted to be returned, but large sets of IDs will likely fail with timeout errors.
* @param userId Specfies the ID of the user for whom to return the friends list.
* @return an array of numeric IDs for every user the specified user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFriendsIDs(int userId) throws WeiboException {
return getFriendsIDs(userId, -1l);
}
/**
* Returns an array of numeric IDs for every user the specified user is following.
* @param userId Specifies the ID of the user for whom to return the friends list.
* @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return an array of numeric IDs for every user the specified user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFriendsIDs(int userId, long cursor) throws WeiboException {
/*return new IDs(get(getBaseURL() + "friends/ids.xml?user_id=" + userId +
"&cursor=" + cursor, true));*/
return new IDs(get(getBaseURL() + "friends/ids.json?user_id=" + userId +
"&cursor=" + cursor, true),this);
}
/**
* Returns an array of numeric IDs for every user the specified user is following.
* @param screenName Specfies the screen name of the user for whom to return the friends list.
* @return an array of numeric IDs for every user the specified user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFriendsIDs(String screenName) throws WeiboException {
return getFriendsIDs(screenName, -1l);
}
/**
* Returns an array of numeric IDs for every user the specified user is following.
* @param screenName Specfies the screen name of the user for whom to return the friends list.
* @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return an array of numeric IDs for every user the specified user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFriendsIDs(String screenName, long cursor) throws WeiboException {
/* return new IDs(get(getBaseURL() + "friends/ids.xml?screen_name=" + screenName
+ "&cursor=" + cursor, true));*/
return new IDs(get(getBaseURL() + "friends/ids.json?screen_name=" + screenName
+ "&cursor=" + cursor, true),this);
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFollowersIDs() throws WeiboException {
return getFollowersIDs(-1l);
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFollowersIDs(long cursor) throws WeiboException {
/*return new IDs(get(getBaseURL() + "followers/ids.xml?cursor=" + cursor
, true));*/
return new IDs(get(getBaseURL() + "followers/ids.json?cursor=" + cursor
, true),this);
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @param userId Specfies the ID of the user for whom to return the followers list.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFollowersIDs(int userId) throws WeiboException {
return getFollowersIDs(userId, -1l);
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @param userId Specifies the ID of the user for whom to return the followers list.
* @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFollowersIDs(int userId, long cursor) throws WeiboException {
return new IDs(get(getBaseURL() + "followers/ids.xml?user_id=" + userId
+ "&cursor=" + cursor, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @param screenName Specfies the screen name of the user for whom to return the followers list.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFollowersIDs(String screenName) throws WeiboException {
return getFollowersIDs(screenName, -1l);
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @param screenName Specfies the screen name of the user for whom to return the followers list.
* @param cursor Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFriendsIDS(String userid,String username,Paging paging) instead.
*/
public IDs getFollowersIDs(String screenName, long cursor) throws WeiboException {
/* return new IDs(get(getBaseURL() + "followers/ids.xml?screen_name="
+ screenName + "&cursor=" + cursor, true));*/
return new IDs(get(getBaseURL() + "followers/ids.json?screen_name="
+ screenName + "&cursor=" + cursor, true),this);
}
private void addParameterToList(List<PostParameter> colors,
String paramName, String color) {
if(null != color){
colors.add(new PostParameter(paramName,color));
}
}
/**
* Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
* @param id String
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public User enableNotification(String id) throws WeiboException {
// return new User(http.post(getBaseURL() + "notifications/follow/" + id + ".xml", true), this);
return new User(http.post(getBaseURL() + "notifications/follow/" + id + ".json", true).asJSONObject());
}
/**
* Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
* @param id String
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public User disableNotification(String id) throws WeiboException {
// return new User(http.post(getBaseURL() + "notifications/leave/" + id + ".xml", true), this);
return new User(http.post(getBaseURL() + "notifications/leave/" + id + ".json", true).asJSONObject());
}
/* Saved Searches Methods */
/**
* Returns the authenticated user's saved search queries.
* @return Returns an array of numeric user ids the authenticating user is blocking.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public List<SavedSearch> getSavedSearches() throws WeiboException {
return SavedSearch.constructSavedSearches(get(getBaseURL() + "saved_searches.json", true));
}
/**
* Retrieve the data for a saved search owned by the authenticating user specified by the given id.
* @param id The id of the saved search to be retrieved.
* @return the data for a saved search
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public SavedSearch showSavedSearch(int id) throws WeiboException {
return new SavedSearch(get(getBaseURL() + "saved_searches/show/" + id
+ ".json", true));
}
/**
* Retrieve the data for a saved search owned by the authenticating user specified by the given id.
* @return the data for a created saved search
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public SavedSearch createSavedSearch(String query) throws WeiboException {
return new SavedSearch(http.post(getBaseURL() + "saved_searches/create.json"
, new PostParameter[]{new PostParameter("query", query)}, true));
}
/**
* Destroys a saved search for the authenticated user. The search specified by id must be owned by the authenticating user.
* @param id The id of the saved search to be deleted.
* @return the data for a destroyed saved search
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public SavedSearch destroySavedSearch(int id) throws WeiboException {
return new SavedSearch(http.post(getBaseURL() + "saved_searches/destroy/" + id
+ ".json", true));
}
/**
* Obtain the ListObject feed list
* @param uid User ID or screen_name
* @param listId The ID or slug of ListObject
* @param auth if true, the request will be sent with BASIC authentication header
* @return
* @throws WeiboException
*/
public List<Status> getListStatuses(String uid, String listId, boolean auth) throws WeiboException {
StringBuilder sb = new StringBuilder();
sb.append(getBaseURL()).append(uid).append("/lists/").append(listId).append("/statuses.xml").append("?source=").append(CONSUMER_KEY);
String httpMethod = "GET";
String url = sb.toString();
//
return Status.constructStatuses(http.httpRequest(url, null, auth, httpMethod), this);
}
/**
* Obtain ListObject member list
* @param uid User ID or screen_name
* @param listId The ID or slug of ListObject
* @param auth if true, the request will be sent with BASIC authentication header
* @return
* @throws WeiboException
*/
public UserWapper getListMembers(String uid, String listId, boolean auth) throws WeiboException {
StringBuilder sb = new StringBuilder();
sb.append(getBaseURL()).append(uid).append("/").append(listId).append("/members.xml").append("?source=").append(CONSUMER_KEY);
String httpMethod = "GET";
String url = sb.toString();
//
return User.constructWapperUsers(http.httpRequest(url, null, auth, httpMethod), this);
}
/**
* Obtain ListObject subscribe user's list
* @param uid User ID or screen_name
* @param listId The ID or slug of ListObject
* @param auth if true, the request will be sent with BASIC authentication header
* @return
* @throws WeiboException
*/
public UserWapper getListSubscribers(String uid, String listId, boolean auth) throws WeiboException {
StringBuilder sb = new StringBuilder();
sb.append(getBaseURL()).append(uid).append("/").append(listId).append("/subscribers.xml").append("?source=").append(CONSUMER_KEY);
String httpMethod = "GET";
String url = sb.toString();
//
return User.constructWapperUsers(http.httpRequest(url, null, auth, httpMethod), this);
}
/**
* confirm list member
* @param uid User ID or screen_name
* @param listId The ID or slug of ListObject
* @param targetUid Target user ID or screen_name
* @param auth if true, the request will be sent with BASIC authentication header
* @return
* @throws WeiboException
*/
public boolean isListMember(String uid, String listId, String targetUid, boolean auth)
throws WeiboException {
StringBuilder sb = new StringBuilder();
sb.append(getBaseURL()).append(uid).append("/").append(listId).append("/members/").append(targetUid)
.append(".xml").append("?source=").append(CONSUMER_KEY);
String url = sb.toString();
//
String httpMethod = "GET";
//
Document doc = http.httpRequest(url, null, auth, httpMethod).asDocument();
Element root = doc.getDocumentElement();
return "true".equals(root.getNodeValue());
}
/**
* confirm subscription list
* @param uid User ID or screen_name
* @param listId The ID or slug of ListObject
* @param targetUid Target user ID or screen_name
* @param auth if true, the request will be sent with BASIC authentication header
* @return
* @throws WeiboException
*/
public boolean isListSubscriber(String uid, String listId, String targetUid, boolean auth)
throws WeiboException {
StringBuilder sb = new StringBuilder();
sb.append(getBaseURL()).append(uid).append("/").append(listId).append("/subscribers/").append(targetUid)
.append(".xml").append("?source=").append(CONSUMER_KEY);
String url = sb.toString();
//
String httpMethod = "GET";
//
Document doc = http.httpRequest(url, null, auth, httpMethod).asDocument();
Element root = doc.getDocumentElement();
return "true".equals(root.getNodeValue());
}
/* Help Methods */
/**
* Returns the string "ok" in the requested format with a 200 OK HTTP status code.
* @return true if the API is working
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
*/
public boolean test() throws WeiboException {
return -1 != get(getBaseURL() + "help/test.json", false).
asString().indexOf("ok");
}
private SimpleDateFormat format = new SimpleDateFormat(
"EEE, d MMM yyyy HH:mm:ss z", Locale.ENGLISH);
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Weibo weibo = (Weibo) o;
if (!baseURL.equals(weibo.baseURL)) return false;
if (!format.equals(weibo.format)) return false;
if (!http.equals(weibo.http)) return false;
if (!searchBaseURL.equals(weibo.searchBaseURL)) return false;
if (!source.equals(weibo.source)) return false;
return true;
}
@Override
public int hashCode() {
int result = http.hashCode();
result = 31 * result + baseURL.hashCode();
result = 31 * result + searchBaseURL.hashCode();
result = 31 * result + source.hashCode();
result = 31 * result + format.hashCode();
return result;
}
@Override
public String toString() {
return "Weibo{" +
"http=" + http +
", baseURL='" + baseURL + '\'' +
", searchBaseURL='" + searchBaseURL + '\'' +
", source='" + source + '\'' +
", format=" + format +
'}';
}
/**
* Return your relationship with the details of a user
* @param target_id id of the befriended user
* @return jsonObject
* @throws WeiboException when Weibo service or network is unavailable
*/
public JSONObject showFriendships(String target_id) throws WeiboException {
return get(getBaseURL() + "friendships/show.json?target_id="+target_id, true).asJSONObject();
}
/**
* Return the details of the relationship between two users
* @param target_id id of the befriended user
* @return jsonObject
* @throws WeiboException when Weibo service or network is unavailable
* @Ricky Add source parameter&missing "="
*/
public JSONObject showFriendships(String source_id,String target_id) throws WeiboException {
return get(getBaseURL() + "friendships/show.json?target_id="+target_id+"&source_id="+source_id+"&source="+CONSUMER_KEY, true).asJSONObject();
}
/**
* Return infomation of current user
* @param ip a specified ip(Only open to invited partners)
* @param args User Information args[2]:nickname,args[3]:gender,args[4],password,args[5]:email
* @return jsonObject
* @throws WeiboException when Weibo service or network is unavailable
*/
public JSONObject register(String ip,String ...args) throws WeiboException {
return http.post(getBaseURL() + "account/register.json",
new PostParameter[]{new PostParameter("nick", args[2]),
new PostParameter("gender", args[3]),
new PostParameter("password", args[4]),
new PostParameter("email", args[5]),
new PostParameter("ip", ip)}, true).asJSONObject();
}
//--------------base method----------
public Weibo() {
super();
format.setTimeZone(TimeZone.getTimeZone("GMT"));
http.setRequestTokenURL(Configuration.getScheme() + "api.t.sina.com.cn/oauth/request_token");
http.setAuthorizationURL(Configuration.getScheme() + "api.t.sina.com.cn/oauth/authorize");
http.setAccessTokenURL(Configuration.getScheme() + "api.t.sina.com.cn/oauth/access_token");
}
/**
* Sets token information
* @param token
* @param tokenSecret
*/
public void setToken(String token, String tokenSecret) {
http.setToken(token, tokenSecret);
}
public Weibo(String baseURL) {
this();
this.baseURL = baseURL;
}
// public Weibo(String id, String password) {
// this();
// setUserId(id);
// setPassword(password);
// }
// public Weibo(String id, String password, String baseURL) {
// this();
// setUserId(id);
// setPassword(password);
// this.baseURL = baseURL;
// }
/**
* Sets the base URL
*
* @param baseURL String the base URL
*/
public void setBaseURL(String baseURL) {
this.baseURL = baseURL;
}
/**
* Returns the base URL
*
* @return the base URL
*/
public String getBaseURL() {
return this.baseURL;
}
/**
* Sets the search base URL
*
* @param searchBaseURL the search base URL
* @since Weibo4J 1.2.1
*/
public void setSearchBaseURL(String searchBaseURL) {
this.searchBaseURL = searchBaseURL;
}
/**
* Returns the search base url
* @return search base url
* @since Weibo4J 1.2.1
*/
public String getSearchBaseURL(){
return this.searchBaseURL;
}
/**
* Issues an HTTP GET request.
*
* @param url the request url
* @param authenticate if true, the request will be sent with BASIC authentication header
* @return the response
* @throws WeiboException when Weibo service or network is unavailable
*/
private Response get(String url, boolean authenticate) throws WeiboException {
return get(url, null, authenticate);
}
/**
* Issues an HTTP GET request.
*
* @param url the request url
* @param authenticate if true, the request will be sent with BASIC authentication header
* @param name1 the name of the first parameter
* @param value1 the value of the first parameter
* @return the response
* @throws WeiboException when Weibo service or network is unavailable
*/
protected Response get(String url, String name1, String value1, boolean authenticate) throws WeiboException {
return get(url, new PostParameter[]{new PostParameter(name1, value1)}, authenticate);
}
/**
* Issues an HTTP GET request.
*
* @param url the request url
* @param name1 the name of the first parameter
* @param value1 the value of the first parameter
* @param name2 the name of the second parameter
* @param value2 the value of the second parameter
* @param authenticate if true, the request will be sent with BASIC authentication header
* @return the response
* @throws WeiboException when Weibo service or network is unavailable
*/
protected Response get(String url, String name1, String value1, String name2, String value2, boolean authenticate) throws WeiboException {
return get(url, new PostParameter[]{new PostParameter(name1, value1), new PostParameter(name2, value2)}, authenticate);
}
/**
* Issues an HTTP GET request.
*
* @param url the request url
* @param params the request parameters
* @param authenticate if true, the request will be sent with BASIC authentication header
* @return the response
* @throws WeiboException when Weibo service or network is unavailable
*/
protected Response get(String url, PostParameter[] params, boolean authenticate) throws WeiboException {
if (null != params && params.length > 0) {
String encodedParams = HttpClient.encodeParameters(params);
if (-1 == url.indexOf("?")) {
url += "?" + encodedParams;
} else {
url += "&" + encodedParams;
}
}
return http.get(url, authenticate);
}
/**
* Issues an HTTP GET request.
*
* @param url the request url
* @param params the request parameters
* @param paging controls pagination
* @param authenticate if true, the request will be sent with BASIC authentication header
* @return the response
* @throws WeiboException when Weibo service or network is unavailable
*/
protected Response get(String url, PostParameter[] params, Paging paging, boolean authenticate) throws WeiboException {
if (null != paging) {
List<PostParameter> pagingParams = new ArrayList<PostParameter>(4);
if (-1 != paging.getMaxId()) {
pagingParams.add(new PostParameter("max_id", String.valueOf(paging.getMaxId())));
}
if (-1 != paging.getSinceId()) {
pagingParams.add(new PostParameter("since_id", String.valueOf(paging.getSinceId())));
}
if (-1 != paging.getPage()) {
pagingParams.add(new PostParameter("page", String.valueOf(paging.getPage())));
}
if (-1 != paging.getCount()) {
if (-1 != url.indexOf("search")) {
// search api takes "rpp"
pagingParams.add(new PostParameter("rpp", String.valueOf(paging.getCount())));
} else {
pagingParams.add(new PostParameter("count", String.valueOf(paging.getCount())));
}
}
PostParameter[] newparams = null;
PostParameter[] arrayPagingParams = pagingParams.toArray(new PostParameter[pagingParams.size()]);
if (null != params) {
newparams = new PostParameter[params.length + pagingParams.size()];
System.arraycopy(params, 0, newparams, 0, params.length);
System.arraycopy(arrayPagingParams, 0, newparams, params.length, pagingParams.size());
} else {
if (0 != arrayPagingParams.length) {
String encodedParams = HttpClient.encodeParameters(arrayPagingParams);
if (-1 != url.indexOf("?")) {
url += "&source=" + CONSUMER_KEY +
"&" + encodedParams;
} else {
url += "?source=" + CONSUMER_KEY +
"&" + encodedParams;
}
}
}
return get(url, newparams, authenticate);
} else {
return get(url, params, authenticate);
}
}
private PostParameter[] generateParameterArray(Map<String, String> parames)
throws WeiboException {
PostParameter[] array = new PostParameter[parames.size()];
int i = 0;
for (String key : parames.keySet()) {
if (parames.get(key) != null) {
array[i] = new PostParameter(key, parames.get(key));
i++;
}
}
return array;
}
public final static Device IM = new Device("im");
public final static Device SMS = new Device("sms");
public final static Device NONE = new Device("none");
static class Device {
final String DEVICE;
public Device(String device) {
DEVICE = device;
}
}
//---------------@deprecated---------------------------------------
/**
* Returns the user's friends, each with current status inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends.format
*
* @param id the ID or screen name of the user for whom to request a list of friends
* @param paging controls pagination
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @deprecated use getFriendsStatuses(id,paging) instead
*/
public List<User> getFriends(String id, Paging paging) throws WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the user's friends, each with current status inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends.format
*
* @param id the ID or screen name of the user for whom to request a list of friends
* @param page the number of page
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getFriendsStatuses(String id, Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
*/
public List<User> getFriends(String id, int page) throws WeiboException {
return getFriendsStatuses(id, page);
}
/**
* Returns the specified user's friends, each with current status inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends.format
*
* @param page number of page
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getFriendsStatuses(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
*/
public List<User> getFriends(int page) throws WeiboException {
return getFriendsStatuses(page);
}
/**
* Returns the specified user's friends, each with current status inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends.format
*
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @deprecated use getFriendsStatues() instead
*/
public List<User> getFriends() throws WeiboException {
return getFriendsStatuses();
}
/**
* Returns the specified user's friends, each with current status inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends.format
*
* @param paging controls pagination
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @deprecated Use getFriendsStatuses(Paging paging) instead
*/
public List<User> getFriends(Paging paging) throws WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the user's friends, each with current status inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends.format
*
* @param id the ID or screen name of the user for whom to request a list of friends
* @return the list of friends
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends">statuses/friends </a>
* @deprecated use getFriendsStatuses(id) instead
*/
public List<User> getFriends(String id) throws WeiboException {
return getFriendsStatuses(id);
}
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Weibo (this is going to be changed).
* <br>This method calls http://api.t.sina.com.cn/statuses/followers.format
*
* @param id The ID or screen name of the user for whom to request a list of followers.
* @param paging controls pagination
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
* @deprecated use getFollowersStatuses(id) instead
*/
public List<User> getFollowers(String id, Paging paging) throws WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Weibo (this is going to be changed).
* <br>This method calls http://api.t.sina.com.cn/statuses/followers.format
*
* @param id The ID or screen name of the user for whom to request a list of followers.
* @param page Retrieves the next 100 followers.
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getFollowersStatuses(String id, Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
*/
public List<User> getFollowers(String id, int page) throws WeiboException {
return getFollowersStatuses(id, page);
}
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Weibo (this is going to be changed).
* <br>This method calls http://api.t.sina.com.cn/statuses/followers.format
*
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
* @deprecated use getFollowersStatuses() instead
*/
public List<User> getFollowers() throws WeiboException {
return getFollowersStatuses();
}
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Weibo (this is going to be changed).
* <br>This method calls http://api.t.sina.com.cn/statuses/followers.format
*
* @param paging controls pagination
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
* @deprecated use getFollowersStatuses(paging)
*/
public List<User> getFollowers(Paging paging) throws WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Weibo (this is going to be changed).
* <br>This method calls http://api.t.sina.com.cn/statuses/followers.format
*
* @param page Retrieves the next 100 followers.
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getFollowersStatuses(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
*/
public List<User> getFollowers(int page) throws WeiboException {
return getFollowersStatuses(page);
}
/**
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Weibo (this is going to be changed).
* <br>This method calls http://api.t.sina.com.cn/statuses/followers.format
*
* @param id The ID or screen name of the user for whom to request a list of followers.
* @return List
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/followers">statuses/followers </a>
* @deprecated use getFollowersStatuses(id) instead
*/
public List<User> getFollowers(String id) throws WeiboException {
return getFollowersStatuses(id);
}
/**
* Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
* <br>This method calls http://api.t.sina.com.cn/statuses/public_timeline.format
*
* @param sinceID returns only public statuses with an ID greater than (that is, more recent than) the specified ID
* @return the 20 most recent statuses
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/public_timeline">statuses/public_timeline </a>
* @deprecated use getPublicTimeline(long sinceID) instead
*/
public List<Status> getPublicTimeline(int sinceID) throws
WeiboException {
return getPublicTimeline((long)sinceID);
}
/**
* Returns only public statuses with an ID greater than (that is, more recent than) the specified ID.
* <br>This method calls http://api.t.sina.com.cn/statuses/public_timeline.format
*
* @param sinceID returns only public statuses with an ID greater than (that is, more recent than) the specified ID
* @return the 20 most recent statuses
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/public_timeline">statuses/public_timeline </a>
* @deprecated user getPublicTimeline(int count,int baseApp) instead
*/
public List<Status> getPublicTimeline(long sinceID) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() +
"statuses/public_timeline.json", null, new Paging((long) sinceID)
, false));
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param page the number of page
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getFriendsTimeline(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
*/
public List<Status> getFriendsTimelineByPage(int page) throws
WeiboException {
return getFriendsTimeline(new Paging(page));
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param page the number of page
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getFriendsTimeline(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
*/
public List<Status> getFriendsTimeline(int page) throws
WeiboException {
return getFriendsTimeline(new Paging(page));
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @param page the number of page
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getFriendsTimeline(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
*/
public List<Status> getFriendsTimeline(long sinceId, int page) throws
WeiboException {
return getFriendsTimeline(new Paging(page).sinceId(sinceId));
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimeline(String id) throws
WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @param page the number of page
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimelineByPage(String id, int page) throws
WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @param page the number of page
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimeline(String id, int page) throws
WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @param page the number of page
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimeline(long sinceId, String id, int page) throws
WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @param paging controls pagination
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimeline(String id, Paging paging) throws
WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param since narrows the returned results to just those statuses created after the specified HTTP-formatted date
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getFriendsTimeline(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
*/
public List<Status> getFriendsTimeline(Date since) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/friends_timeline.xml",
"since", format.format(since), true), this);
}
/**
* Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated Use getFriendsTimeline(Paging paging) instead
*/
public List<Status> getFriendsTimeline(long sinceId) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/friends_timeline.xml",
"since_id", String.valueOf(sinceId), true), this);
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @param since narrows the returned results to just those statuses created after the specified HTTP-formatted date
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimeline(String id,Date since) throws WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/friends_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the friends_timeline
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @return list of the Friends Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/friends_timeline"> statuses/friends_timeline </a>
* @deprecated The Weibo API does not support this method anymore.
*/
public List<Status> getFriendsTimeline(String id, long sinceId) throws WeiboException {
throw new IllegalStateException("The Weibo API is not supporting this method anymore");
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the user_timeline
* @param count specifies the number of statuses to retrieve. May not be greater than 200 for performance purposes
* @param since narrows the returned results to just those statuses created after the specified HTTP-formatted date
* @return list of the user Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @deprecated using long sinceId is suggested.
*/
public List<Status> getUserTimeline(String id, int count
, Date since) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline/" + id + ".xml",
"since", format.format(since), "count", String.valueOf(count), http.isAuthenticationEnabled()), this);
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the user_timeline
* @param count specifies the number of statuses to retrieve. May not be greater than 200 for performance purposes
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @return list of the user Timeline
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @deprecated Use getUserTimeline(String id, Paging paging) instead
*/
public List<Status> getUserTimeline(String id, int count,long sinceId) throws WeiboException {
return getUserTimeline(id, new Paging(sinceId).count(count));
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the user_timeline
* @param since narrows the returned results to just those statuses created after the specified HTTP-formatted date
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @deprecated Use getUserTimeline(String id, Paging paging) instead
*/
public List<Status> getUserTimeline(String id, Date since) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline/" + id + ".xml",
"since", format.format(since), http.isAuthenticationEnabled()), this);
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the user_timeline
* @param count specifies the number of statuses to retrieve. May not be greater than 200 for performance purposes
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @deprecated Use getUserTimeline(String id, Paging paging) instead
*/
public List<Status> getUserTimeline(String id, int count) throws
WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline/" + id + ".xml",
"count", String.valueOf(count), http.isAuthenticationEnabled()), this);
}
/**
* Returns the most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param count specifies the number of statuses to retrieve. May not be greater than 200 for performance purposes
* @param since narrows the returned results to just those statuses created after the specified HTTP-formatted date
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @deprecated using long sinceId is suggested.
*/
public List<Status> getUserTimeline(int count, Date since) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/user_timeline.xml",
"since", format.format(since), "count", String.valueOf(count), true), this);
}
/**
* Returns the most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param count specifies the number of statuses to retrieve. May not be greater than 200 for performance purposes
* @param sinceId returns only statuses with an ID greater than (that is, more recent than) the specified ID.
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @since Weibo4J 1.2.1
* @deprecated Use getUserTimeline(String id, Paging paging) instead
*/
public List<Status> getUserTimeline(int count, long sinceId) throws WeiboException {
return getUserTimeline(new Paging(sinceId).count(count));
}
/**
* Returns the most recent statuses posted in the last 24 hours from the specified userid.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param id specifies the ID or screen name of the user for whom to return the user_timeline
* @param sinceId returns only statuses with an ID greater than (that is, more recent than) the specified ID.
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @since Weibo4J 1.2.1
* @deprecated Use getUserTimeline(String id, Paging paging) instead
*/
public List<Status> getUserTimeline(String id, long sinceId) throws WeiboException {
return getUserTimeline(id, new Paging(sinceId));
}
/**
* Returns the most recent statuses posted in the last 24 hours from the authenticating user.
* <br>This method calls http://api.t.sina.com.cn/statuses/user_timeline.format
*
* @param sinceId returns only statuses with an ID greater than (that is, more recent than) the specified ID.
* @return the 20 most recent statuses posted in the last 24 hours from the user
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/user_timeline">statuses/user_timeline</a>
* @since Weibo4J 1.2.1
* @deprecated Use getUserTimeline(Paging paging) instead
*/
public List<Status> getUserTimeline(long sinceId) throws
WeiboException {
return getUserTimeline(new Paging(sinceId));
}
/**
* 发布一条微博信息
* @param status 要发布的微博消息文本内容
* @return the latest status
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/update">statuses/update </a>
* @deprecated Use updateStatus(String status) instead
*/
public Status update(String status) throws WeiboException {
return updateStatus(status);
}
/**
*发布一条微博信息
* @param status 要发布的微博消息文本内容
* @param inReplyToStatusId 要转发的微博消息ID
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/update">statuses/update </a>
* @deprecated Use updateStatus(String status, long inReplyToStatusId) instead
*/
public Status update(String status, long inReplyToStatusId) throws WeiboException {
return updateStatus(status, inReplyToStatusId);
}
/**
* Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
* <br>This method calls http://api.t.sina.com.cn/statuses/reply.format
*
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getMentions() instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reply">statuses/reply </a>
*/
public List<Status> getReplies() throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/replies.xml", true), this);
}
/**
* Returns the 20 most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
* <br>This method calls http://api.t.sina.com.cn/statuses/reply.format
*
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getMentions(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reply">statuses/reply </a>
*/
public List<Status> getReplies(long sinceId) throws WeiboException {
return Status.constructStatuses(get(getBaseURL() + "statuses/replies.xml",
"since_id", String.valueOf(sinceId), true), this);
}
/**
* Returns the most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
* <br>This method calls http://api.t.sina.com.cn/statuses/reply.format
*
* @param page the number of page
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getMentions(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reply">statuses/reply </a>
*/
public List<Status> getRepliesByPage(int page) throws WeiboException {
if (page < 1) {
throw new IllegalArgumentException("page should be positive integer. passed:" + page);
}
return Status.constructStatuses(get(getBaseURL() + "statuses/replies.xml",
"page", String.valueOf(page), true), this);
}
/**
* Returns the most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
* <br>This method calls http://api.t.sina.com.cn/statuses/reply.format
*
* @param page the number of page
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getMentions(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reply">statuses/reply </a>
*/
public List<Status> getReplies(int page) throws WeiboException {
if (page < 1) {
throw new IllegalArgumentException("page should be positive integer. passed:" + page);
}
return Status.constructStatuses(get(getBaseURL() + "statuses/replies.xml",
"page", String.valueOf(page), true), this);
}
/**
* Returns the most recent replies (status updates prefixed with @username) to the authenticating user. Replies are only available to the authenticating user; you can not request a list of replies to another user whether public or protected.
* <br>This method calls http://api.t.sina.com.cn/statuses/reply.format
*
* @param sinceId Returns only statuses with an ID greater than (that is, more recent than) the specified ID
* @param page the number of page
* @return the 20 most recent replies
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use getMentions(Paging paging) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/reply">statuses/reply </a>
*/
public List<Status> getReplies(long sinceId, int page) throws WeiboException {
if (page < 1) {
throw new IllegalArgumentException("page should be positive integer. passed:" + page);
}
return Status.constructStatuses(get(getBaseURL() + "statuses/replies.xml",
"since_id", String.valueOf(sinceId),
"page", String.valueOf(page), true), this);
}
/**
* Returns a single status, specified by the id parameter. The status's author will be returned inline.
* @param id the numerical ID of the status you're trying to retrieve
* @return a single status
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use showStatus(long id) instead.
*/
public Status show(int id) throws WeiboException {
return showStatus((long)id);
}
/**
* Returns a single status, specified by the id parameter. The status's author will be returned inline.
* <br>This method calls http://api.t.sina.com.cn/statuses/show/id.format
*
* @param id the numerical ID of the status you're trying to retrieve
* @return a single status
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Statuses/show">statuses/show </a>
* @deprecated Use showStatus(long id) instead.
*/
public Status show(long id) throws WeiboException {
return new Status(get(getBaseURL() + "statuses/show/" + id + ".xml", false), this);
}
/**
* Returns extended information of a given user, specified by ID or screen name as per the required id parameter below. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
* <br>This method calls http://api.t.sina.com.cn/users/show.format
* @param id the ID or screen name of the user for whom to request the detail
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Users/show">users/show </a>
* @deprecated use showUser(id) instead
*/
public User getUserDetail(String id) throws WeiboException {
return showUser(id);
}
/**
* Befriends the user specified in the ID parameter as the authenticating user. Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful.
*
* @param id the ID or screen name of the user to be befriended
* @return the befriended user
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use createFriendship(String id) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/create">friendships/create </a>
*/
public User create(String id) throws WeiboException {
return createFriendship(id);
}
/**
* Discontinues friendship with the user specified in the ID parameter as the authenticating user. Returns the un-friended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful.
*
* @param id the ID or screen name of the user for whom to request a list of friends
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use destroyFriendship(String id) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/destroy">friendships/destroy </a>
*/
public User destroy(String id) throws WeiboException {
return destroyFriendship(id);
}
/**
* Tests if a friendship exists between two users.
*
* @param userA The ID or screen_name of the first user to test friendship for.
* @param userB The ID or screen_name of the second user to test friendship for.
* @return if a friendship exists between two users.
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use friendshipExists(String userA, String userB)
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friendships/exists">friendships/exists </a>
*/
public boolean exists(String userA, String userB) throws WeiboException {
return existsFriendship(userA, userB);
}
/**
* Returns an array of numeric IDs for every user the authenticating user is following.
* @param paging Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return an array of numeric IDs for every user the authenticating user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDs(long cursor) instead
*/
public IDs getFriendsIDs(Paging paging) throws WeiboException {
return new IDs(get(getBaseURL() + "friends/ids.xml", null, paging, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is following.
* @param userId Specifies the ID of the user for whom to return the friends list.
* @param paging Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return an array of numeric IDs for every user the specified user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDs(int userId, long cursor) instead
*/
public IDs getFriendsIDs(int userId, Paging paging) throws WeiboException {
return new IDs(get(getBaseURL() + "friends/ids.xml?user_id=" + userId, null
, paging, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is following.
* @param screenName Specfies the screen name of the user for whom to return the friends list.
* @param paging Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return an array of numeric IDs for every user the specified user is following
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Friends/ids">friends/ids</a>
* @deprecated use getFriendsIDs(String screenName, long cursor) instead
*/
public IDs getFriendsIDs(String screenName, Paging paging) throws WeiboException {
return new IDs(get(getBaseURL() + "friends/ids.xml?screen_name=" + screenName
, null, paging, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @param paging Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFollowersIDs(long cursor) instead
*/
public IDs getFollowersIDs(Paging paging) throws WeiboException {
return new IDs(get(getBaseURL() + "followers/ids.xml", null, paging
, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @param userId Specfies the ID of the user for whom to return the followers list.
* @param paging Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFollowersIDs(int userId, long cursor) instead
*/
public IDs getFollowersIDs(int userId, Paging paging) throws WeiboException {
return new IDs(get(getBaseURL() + "followers/ids.xml?user_id=" + userId, null
, paging, true));
}
/**
* Returns an array of numeric IDs for every user the specified user is followed by.
* @param screenName Specfies the screen name of the user for whom to return the followers list.
* @param paging Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
* @return The ID or screen_name of the user to retrieve the friends ID list for.
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Followers/ids">followers/ids </a>
* @deprecated use getFollowersIDs(String screenName, long cursor) instead
*/
public IDs getFollowersIDs(String screenName, Paging paging) throws WeiboException {
return new IDs(get(getBaseURL() + "followers/ids.xml?screen_name="
+ screenName, null, paging, true));
}
/**
* Updates the location
*
* @param location the current location of the user
* @return the updated user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use updateProfile(String name, String email, String url, String location, String description) instead
*/
public User updateLocation(String location) throws WeiboException {
return new User(http.post(getBaseURL() + "account/update_location.xml", new PostParameter[]{new PostParameter("location", location)}, true), this);
}
/**
* Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @deprecated Use getFavorited() instead
*/
public List<Status> favorites() throws WeiboException {
return getFavorites();
}
/**
* Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
* @param page the number of page
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @deprecated Use getFavorites(int page) instead
*/
public List<Status> favorites(int page) throws WeiboException {
return getFavorites(page);
}
/**
* Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
*
* @param id the ID or screen name of the user for whom to request a list of favorite statuses
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @deprecated Use getFavorites(String id) instead
*/
public List<Status> favorites(String id) throws WeiboException {
return getFavorites(id);
}
/**
* Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
*
* @param id the ID or screen name of the user for whom to request a list of favorite statuses
* @param page the number of page
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use getFavorites(String id, int page) instead
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
*/
public List<Status> favorites(String id, int page) throws WeiboException {
return getFavorites(id, page);
}
/**
* Enables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
*
* @param id String
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use enableNotification(String id) instead
*/
public User follow(String id) throws WeiboException {
return enableNotification(id);
}
/**
* Disables notifications for updates from the specified user to the authenticating user. Returns the specified user when successful.
* @param id String
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @deprecated Use disableNotification(String id) instead
*/
public User leave(String id) throws WeiboException {
return disableNotification(id);
}
/* Block Methods */
/**
* Blocks the user specified in the ID parameter as the authenticating user. Returns the blocked user in the requested format when successful.
* @param id the ID or screen_name of the user to block
* @return the blocked user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use createBlock(String id) instead
*/
public User block(String id) throws WeiboException {
return new User(http.post(getBaseURL() + "blocks/create/" + id + ".xml", true), this);
}
/**
* Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
* @param id the ID or screen_name of the user to block
* @return the unblocked user
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use destroyBlock(String id) instead
*/
public User unblock(String id) throws WeiboException {
return new User(http.post(getBaseURL() + "blocks/destroy/" + id + ".xml", true), this);
}
/**
* Returns extended information of the authenticated user. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.<br>
* The call Weibo.getAuthenticatedUser() is equivalent to the call:<br>
* weibo.getUserDetail(weibo.getUserId());
* @return User
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated Use verifyCredentials() instead
*/
public User getAuthenticatedUser() throws WeiboException {
return new User(get(getBaseURL() + "account/verify_credentials.xml", true),this);
}
/**
* @return the schedule
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.0.4
* @deprecated this method is not supported by the Weibo API anymore
*/
public String getDowntimeSchedule() throws WeiboException {
throw new WeiboException(
"this method is not supported by the Weibo API anymore"
, new NoSuchMethodException("this method is not supported by the Weibo API anymore"));
}
/**
* Returns the top 20 trending topics for each hour in a given day.
* @return the result
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated user getTreandDaily instead
*/
public List<Trends> getDailyTrends() throws WeiboException {
return Trends.constructTrendsList(get(searchBaseURL + "trends/daily.json", false));
}
/**
* Returns the top 20 trending topics for each hour in a given day.
* @param date Permits specifying a start date for the report.
* @param excludeHashTags Setting this to true will remove all hashtags from the trends list.
* @return the result
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated user getTreandDaily instead
*/
public List<Trends> getDailyTrends(Date date, boolean excludeHashTags) throws WeiboException {
return Trends.constructTrendsList(get(searchBaseURL
+ "trends/daily.json?date=" + toDateStr(date)
+ (excludeHashTags ? "&exclude=hashtags" : ""), false));
}
/**
* Returns the top 30 trending topics for each day in a given week.
* @return the result
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated use getTrendsWeekly instead
*/
public List<Trends> getWeeklyTrends() throws WeiboException {
return Trends.constructTrendsList(get(searchBaseURL
+ "trends/weekly.json", false));
}
/**
* Returns the top 30 trending topics for each day in a given week.
* @param date Permits specifying a start date for the report.
* @param excludeHashTags Setting this to true will remove all hashtags from the trends list.
* @return the result
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @deprecated use getTrendsWeekly instead
*/
public List<Trends> getWeeklyTrends(Date date, boolean excludeHashTags) throws WeiboException {
return Trends.constructTrendsList(get(searchBaseURL
+ "trends/weekly.json?date=" + toDateStr(date)
+ (excludeHashTags ? "&exclude=hashtags" : ""), false));
}
public void setToken(AccessToken accessToken) {
this.setToken(accessToken.getToken(), accessToken.getTokenSecret());
}
//----------------------------Tags接口 ----------------------------------------
/**
* Return to the list of tags specified user
* @param user_id
* @return tags
* @throws WeiboException
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags">Tags </a>
* @deprecated use getTags instead
*/
public List<Tag>gettags(String user_id)throws WeiboException{
return Tag.constructTags(http.get(getBaseURL()+"tags.json?"+"user_id="+user_id,true));
}
/**
* 返回用户感兴趣的标签
* @return a list of tags
* @throws WeiboException
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Tags/suggestions">Tags/suggestions </a>
* @deprecated use getSuggestionsTags
*/
public List<Tag> getSuggestions()throws WeiboException{
return Tag.constructTags(get(getBaseURL()+"tags/suggestions.json",true));
}
/**
*
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @since Weibo4J 1.2.1
* @deprecated
*/
public List<Status> getFavorites() throws WeiboException {
// return Status.constructStatuses(get(getBaseURL() + "favorites.xml", new PostParameter[0], true), this);
return Status.constructStatuses(get(getBaseURL() + "favorites.json", new PostParameter[0], true));
}
/**
* Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
*
* @param id the ID or screen name of the user for whom to request a list of favorite statuses
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @since Weibo4J 1.2.1
* @deprecated
*/
public List<Status> getFavorites(String id) throws WeiboException {
// return Status.constructStatuses(get(getBaseURL() + "favorites/" + id + ".xml", new PostParameter[0], true), this);
return Status.constructStatuses(get(getBaseURL() + "favorites/" + id + ".json", new PostParameter[0], true));
}
/**
* Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
*
* @param id the ID or screen name of the user for whom to request a list of favorite statuses
* @param page the number of page
* @return List<Status>
* @throws WeiboException when Weibo service or network is unavailable
* @since Weibo4J 1.2.1
* @see <a href="http://open.t.sina.com.cn/wiki/index.php/Favorites">favorites </a>
* @deprecated
*/
public List<Status> getFavorites(String id, int page) throws WeiboException {
// return Status.constructStatuses(get(getBaseURL() + "favorites/" + id + ".xml", "page", String.valueOf(page), true), this);
return Status.constructStatuses(get(getBaseURL() + "favorites/" + id + ".json", "page", String.valueOf(page), true));
}
}
|
[
"[email protected]"
] | |
57aa415e4582d1a35696f4f6978f8ac10247d276
|
5760470e48d46af7ffd871ec5ec34a279b5943da
|
/impl/src/main/java/org/jboss/arquillian/warp/shared/RequestPayload.java
|
bd3bdb5320ae1830d89e5b4fb4d90e1e51fbd153
|
[
"Apache-2.0"
] |
permissive
|
aslakknutsen/arquillian-extension-warp
|
042f3a1c90c8b9a41ecf592c8ad81b90aa0a0b30
|
d27654ff01262f1f5d97eb502949512c7e1120ab
|
refs/heads/master
| 2021-01-18T09:35:37.124986 | 2012-09-05T03:24:30 | 2012-09-05T03:24:30 | 5,873,920 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,254 |
java
|
/**
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.arquillian.warp.shared;
import java.io.Serializable;
import org.jboss.arquillian.warp.ServerAssertion;
public class RequestPayload implements Serializable {
private static final long serialVersionUID = -5537112559937896153L;
private ServerAssertion assertion;
public RequestPayload(ServerAssertion assertion) {
this.assertion = assertion;
}
public ServerAssertion getAssertion() {
return assertion;
}
}
|
[
"[email protected]"
] | |
4d3af40752e1d3d9d84d360d5fa48521dcf33f67
|
f3795a92745871041dd5cf0d684825d2da3729c1
|
/src/main/java/com/autotest/extension/AutoTestExtension.java
|
fdc12790272dbba7be6bf90f7da449a69890995d
|
[] |
no_license
|
Rayyliu/autotest-framework
|
380e5ebc228aae31c7d7b7067c17c76aea8e0b91
|
7751e69e9d896185b374f091ca7ec2cee92386cb
|
refs/heads/master
| 2022-02-14T04:39:03.592639 | 2019-07-30T09:44:04 | 2019-07-30T09:44:04 | 198,217,358 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 3,332 |
java
|
package com.autotest.extension;
import com.autotest.annotation.AutoTest;
import org.junit.jupiter.api.extension.*;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.ArgumentsProvider;
import org.junit.jupiter.params.provider.ArgumentsSource;
import org.junit.jupiter.params.support.AnnotationConsumerInitializer;
import org.junit.platform.commons.util.AnnotationUtils;
import org.junit.platform.commons.util.ExceptionUtils;
import org.junit.platform.commons.util.Preconditions;
import org.junit.platform.commons.util.ReflectionUtils;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import java.util.stream.Stream;
import static org.junit.platform.commons.util.AnnotationUtils.findAnnotation;
import static org.junit.platform.commons.util.AnnotationUtils.findRepeatableAnnotations;
public class AutoTestExtension implements TestTemplateInvocationContextProvider {
@Override
public boolean supportsTestTemplate(ExtensionContext context) {
return AnnotationUtils.isAnnotated(context.getTestMethod(), AutoTest.class);
}
@Override
public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContexts(ExtensionContext context) {
Method templateMethod = Preconditions.notNull(context.getTestMethod().orElse(null),
"test method must not be null");
AutoTestNameFormatter formatter = createNameFormatter(templateMethod);
AtomicLong invocationCount = new AtomicLong(0L);
return (Stream) findRepeatableAnnotations(templateMethod, ArgumentsSource.class)
.stream()
.map(ArgumentsSource::value)
.map(ReflectionUtils::newInstance)
.map(provider -> AnnotationConsumerInitializer.initialize(templateMethod, provider))
.flatMap(provider -> arguments(provider, context))
.map(Arguments::get)
.map((arguments) -> {
return new AutoTestInvocationContext(formatter, arguments);
})
.peek((invocationContext) -> {
invocationCount.incrementAndGet();
}).onClose(() -> {
Preconditions.condition(invocationCount.get() > 0L, () -> {
return "当使用注解 @" + AutoTest.class.getSimpleName() + " 的时候,测试方法需要至少一个参数";
});
});
}
private AutoTestNameFormatter createNameFormatter(Method templateMethod) {
AutoTest autoTest = findAnnotation(templateMethod, AutoTest.class).get();
String name = Preconditions.notBlank(autoTest.name().trim(),
() -> String.format(
"Configuration error: @ParameterizedTest on method [%s] must be declared with a non-empty name.",
templateMethod));
return new AutoTestNameFormatter(name);
}
protected static Stream<? extends Arguments> arguments(ArgumentsProvider provider, ExtensionContext context) {
try {
return provider.provideArguments(context);
}
catch (Exception e) {
throw ExceptionUtils.throwAsUncheckedException(e);
}
}
}
|
[
"[email protected]"
] | |
006ebc73b5a72e05915b682fb5825c290e69c6c6
|
5370639354b92d17eeef8639210354297730cded
|
/src/main/java/com/example/springboot/backend/apirest/models/entity/Cliente.java
|
c4ad7e88a3d601a87429da2de9ca643406b686ad
|
[] |
no_license
|
raziel7171/SpringBackend
|
782299cd732f853b829d72a195e65e02eebcb287
|
8a3dc6d16a6f759ab0fd097012cecab50785be94
|
refs/heads/master
| 2023-01-08T21:09:43.867931 | 2020-11-05T04:37:07 | 2020-11-05T04:37:07 | 308,658,510 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,073 |
java
|
package com.example.springboot.backend.apirest.models.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Entity
@Table(name="clientes")
public class Cliente implements Serializable{
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Long id;
//para especificar la columna y propiedades llegado el caso que se llamen diferente
@NotEmpty(message ="no puede estar vacío")
@Size(min=4, max= 12, message="el tamaño tiene que estar entre 4 y 12 caracteres")
@Column(nullable=false)
private String nombre;
@NotEmpty(message ="no puede estar vacío")
@Column(nullable=false)
private String apellido;
@NotEmpty(message ="no puede estar vacío")
@Email(message="no es una dirección de correo correcta")
@Column(nullable=false, unique=false)
private String email;
@NotNull(message ="no puede estar vacío")
@Column(name="create_at")
@Temporal(TemporalType.DATE)
private Date createAt;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getApellido() {
return apellido;
}
public void setApellido(String apellido) {
this.apellido = apellido;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Date getCreateAt() {
return createAt;
}
public void setCreateAt(Date createAt) {
this.createAt = createAt;
}
/**
*
*/
private static final long serialVersionUID = 1L;
}
|
[
"[email protected]"
] | |
7ab8e42cf6a49ba68f2c0e408d4d87ff2c429174
|
bcc5e7430c5582e83ba7802099edc2214f9ecf4b
|
/autoconfigure/src/main/java/com/sren/core/condition/OnSystemPropertyCondition.java
|
b07e8446a989bf0e3b849f374ab7587decba93d7
|
[] |
no_license
|
sren911/core
|
97382b3078e12f250cd347e6790040b9cba2051f
|
7faf4e0f57085c2c783354141fc7d6e73f39bcc9
|
refs/heads/master
| 2022-10-15T03:13:05.653981 | 2022-10-10T10:46:15 | 2022-10-10T10:46:15 | 206,521,894 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 842 |
java
|
package core.condition;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
import java.util.Map;
/**
* @author: renshuai
* @date: 2019/09/05 下午4:32
* @Description:
*/
public class OnSystemPropertyCondition implements Condition {
@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
Map<String, Object> attributes = metadata.getAnnotationAttributes(ConditionalOnSystemProperty.class.getName());
String propertyName = String.valueOf(attributes.get("name"));
String propertyValue = String.valueOf(attributes.get("value"));
String javaPropertyValue = "Mercy";
return propertyValue.equals(javaPropertyValue);
}
}
|
[
"[email protected]"
] | |
9ad9f56674a86fbeb4937eaba46d4f3253ff5b27
|
46390ed82b3c63bcd7134e0304849b3b215ade7c
|
/src/test/java/com/cegeka/bool/openclosed/exercise1/AreaCalculatorTest.java
|
4ada1463275042e3b6d98cce1d5232cd3015c60a
|
[] |
no_license
|
Maxlem1337/OpenClosed
|
62c42f649e8fa0d5fd86c0ef7eaeb416b5a1ee89
|
e535b27280ad51ff685582a8516256c37f8d9d47
|
refs/heads/master
| 2020-06-20T02:48:34.440318 | 2019-07-15T08:06:54 | 2019-07-15T08:06:54 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,669 |
java
|
package com.cegeka.bool.openclosed.exercise1;
import com.cegeka.bool.openclosed.exercise1.shapes.Rectangle;
import com.cegeka.bool.openclosed.exercise1.shapes.Triangle;
import javafx.scene.shape.Circle;
import org.assertj.core.api.Assertions;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.*;
import static org.junit.Assert.*;
public class AreaCalculatorTest {
private AreaCalculator areaCalculator;
@Before
public void setUp() throws Exception {
this.areaCalculator = new AreaCalculator();
}
@Test
public void calculateRectangleArea() {
Rectangle rectangle = new Rectangle(5d, 5d);
double area = areaCalculator.calculateRectangleArea(rectangle);
assertThat(area).isEqualTo(25d);
}
@Test
public void calculateTriangleArea() {
Triangle triangle = new Triangle(10d,5d);
double area = areaCalculator.calculateTriangleArea(triangle);
assertThat(area).isEqualTo(25d);
}
//*******************************************//
//**************Spoiler-Alert****************//
//*******Volgende testen bevatten hints******//
//*******************************************//
// @Test
// public void calculateCircleArea() {
// Circle circle = new Circle(10);
// double area = areaCalculator.calculateArea(circle);
//
// assertThat(area).isEqualTo(314d);
// }
//
// @Test
// public void calculateArea_UserShape(){
// Shape shape = new Usershape();
// double area = areaCalculator.calculateArea(shape);
//
// assertThat(area).isEqualTo(shape.getArea());
// }
}
|
[
"[email protected]"
] | |
59bd73e15ea38ef2858462bbbee6a31c53215a52
|
2bc3b05b04d7eb762310ba56d37068494c27054c
|
/pids-core-model/pids-core/src/main/java/pids/core/Anchor.java
|
17e159c2d83282c6797250293d527f8f1905b931
|
[] |
no_license
|
rasayana/pids
|
20df0973f9f110abbfcc109414c55bc30d6afa29
|
aaadfc7b8cbc6caa5bca9ac840e6e71b8443358a
|
refs/heads/master
| 2021-01-12T14:25:23.475789 | 2016-10-04T05:15:20 | 2016-10-04T05:15:20 | 69,936,343 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 191 |
java
|
package pids.core;
@SuppressWarnings("rawtypes")
public interface Anchor extends Toggle<Anchor> {
DeviceInfo[] devices();
Anchor set(DeviceInfo device);
Anchor unSet(DeviceInfo device);
}
|
[
"[email protected]"
] | |
e5730836ce54c5324f7605393a5812c4d945c200
|
b29dfe0b1f0c77548cd34b90ea4b60efb4d30388
|
/DP4_Doc/src/model/OutroAssunto.java
|
e0c3ad98bcb6336602e9d6659cdf30ce98bb84b5
|
[] |
no_license
|
brunodevesa/DesignPatterns
|
b8a8ecb83acbecc3e5adea576e4660ff01caf2ab
|
e1be73a66c5164c6d013bd6d0304fef08e9d939b
|
refs/heads/master
| 2021-01-18T02:33:19.907681 | 2015-07-17T14:00:00 | 2015-07-17T14:00:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 238 |
java
|
package model;
/**
* Created by bruno.devesa on 17-07-2015.
*/
public class OutroAssunto implements StrategyDocument {
@Override
public void process() {
System.out.println("im processing another assunto type");
}
}
|
[
"[email protected]"
] | |
bc19c1982a3a6cd47de3815c44f7a3865cda6a31
|
c68a0d2ba1380e6c998547428df5cd5e0e18a055
|
/OOP_ex6_text_indexing_and_searching/src/dataStructures/naive/NaiveIndexer.java
|
6603b05038ec3514f3f704301ecde39248db62b8
|
[] |
no_license
|
daniellevin233/Java_projects
|
2ed6d269ddb5c1e44aa310087a7e6ce5f3d4c155
|
f429e07c579e63e813e4a648a9bda3cb94a191d6
|
refs/heads/master
| 2022-12-18T19:41:05.404265 | 2020-09-24T19:34:40 | 2020-09-24T19:34:40 | 298,377,237 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,707 |
java
|
package dataStructures.naive;
import dataStructures.Aindexer;
import processing.parsingRules.IparsingRule;
import processing.searchStrategies.NaiveSearch;
import processing.searchStrategies.NaiveSearchRK;
import processing.textStructure.Corpus;
import utils.WrongMD5ChecksumException;
import java.io.FileNotFoundException;
/**
* A "naive" indexer. This approach forgoes actually preprocessing the file, and simply loads the text and searches directly on it.
*/
public class NaiveIndexer extends Aindexer<NaiveSearch> {
public static final IndexTypes TYPE_NAME = IndexTypes.NAIVE;
private final boolean isRK;
/**
* Basic constructor
* @param corpus The corpus to search over
* @param RK Whether or not to use Rabin-Karp search strategy
*/
public NaiveIndexer(Corpus corpus, boolean RK){
super(corpus);
this.isRK = RK;
}
public NaiveIndexer(Corpus corpus) {
super(corpus);
this.isRK = false;
}
@Override
protected void indexCorpus() {
// does nothing
}
@Override
protected void readIndexedFile() throws FileNotFoundException, WrongMD5ChecksumException {
// does nothing
}
// @Override
protected void castRawData(Object readObject) {
// does nothing
}
@Override
protected void writeIndexFile() {
// does nothing
}
/**
* Get the source Corpus of this indexer
* @return
*/
public Corpus getOrigin() {
return this.origin;
}
@Override
public IparsingRule getParseRule() {
return this.origin.getParsingRule();
}
@Override
public NaiveSearch asSearchInterface() {
return this.isRK ? new NaiveSearch(this.origin) : new NaiveSearchRK(this.origin);
}
}
|
[
"[email protected]"
] | |
a7e17c44663836fbd5fd31bb27cab17a75bba9a6
|
ea8fb0b11aa54658068ce9d1bf7ba0a39aaa5ebe
|
/modules/citrus-core/src/main/java/com/consol/citrus/config/xml/SyncMessageChannelSenderParser.java
|
0f154b9e7d1b8c8979de6aa0ee3693c9e5185d75
|
[
"Apache-2.0"
] |
permissive
|
philkom/citrus
|
6d67a0fba812d1a8c28e44bfaa2f7d1f1ce090e2
|
e6c5dda5f94279ecfffab98a2f90fe5e7f285a72
|
refs/heads/master
| 2021-01-17T23:07:07.953868 | 2010-09-14T13:02:43 | 2010-09-14T13:02:43 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,277 |
java
|
/*
* Copyright 2006-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.consol.citrus.config.xml;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.util.StringUtils;
import org.w3c.dom.Element;
/**
* Bean definition parser for sync-message-channel-sender configuration.
*
* @author Christoph Deppisch
*/
public class SyncMessageChannelSenderParser extends AbstractMessageChannelTemplateAwareParser {
/**
* @see com.consol.citrus.config.xml.AbstractMessageChannelTemplateAwareParser#doParseComponent(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext)
*/
@Override
protected BeanDefinitionBuilder doParseComponent(Element element, ParserContext parserContext) {
BeanDefinitionBuilder builder = BeanDefinitionBuilder
.genericBeanDefinition("com.consol.citrus.channel.SyncMessageChannelSender");
String replyTimeout = element.getAttribute("reply-timeout");
if (StringUtils.hasText(replyTimeout)) {
builder.addPropertyValue("replyTimeout", replyTimeout);
}
String replyHandler = element.getAttribute("reply-handler");
if (StringUtils.hasText(replyHandler)) {
builder.addPropertyReference("replyMessageHandler", replyHandler);
}
String replyMessageCorrelator = element.getAttribute("reply-message-correlator");
if (StringUtils.hasText(replyMessageCorrelator)) {
builder.addPropertyReference("correlator", replyMessageCorrelator);
}
return builder;
}
}
|
[
"[email protected]"
] | |
b89412cc97524b971d3a5b38662c2a657f91df02
|
0bc54b6ccd0d8ab4cfdf5bcbf6bb7546b433ea0a
|
/src/main/java/com/in28minutes/springboot/dao/UserDaoService.java
|
d516ec11e3ca57b020380d7fa282900bb1430757
|
[] |
no_license
|
MahmoudMosaad/Spring-Boot-First-RESTfull
|
94d40f2bf6d456cd2698a918e6514a1571af1d3a
|
1da26ef9b2656ea21f70d4a8bd9229076f5a141b
|
refs/heads/master
| 2022-12-23T00:09:09.161638 | 2020-10-06T13:00:56 | 2020-10-06T13:00:56 | 301,173,158 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,037 |
java
|
package com.in28minutes.springboot.dao;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.springframework.stereotype.Component;
@Component
public class UserDaoService {
private static List<User> users = new ArrayList<>();
private static int usersCount = 3;
static {
users.add(new User(1, "Adam", new Date()));
users.add(new User(2, "Eve", new Date()));
users.add(new User(3, "Jack", new Date()));
}
public List<User> findAll() {
return users;
}
public User save(User user) {
if (user.getId() == null) {
user.setId(++usersCount);
}
users.add(user);
return user;
}
public User findOne(int id) {
for (User user : users) {
if (user.getId() == id) {
return user;
}
}
return null;
}
public User deleteById(int id) {
Iterator<User> iterator = users.iterator();
while (iterator.hasNext()) {
User user = iterator.next();
if (user.getId() == id) {
iterator.remove();
return user;
}
}
return null;
}
}
|
[
"[email protected]"
] | |
6586cf2c09363f54ca34c2017c3ad80e545a77e4
|
378b44b5c513c3584d7926adab9ae5ab368a8f38
|
/Gmail_Incubyte/src/baseClass/LaunchBrowser.java
|
d92e0970896d8f6aba98752935cbfa9213df367e
|
[] |
no_license
|
SruthiSundar1596/SeleniumProject
|
a5eee74df71b8849a6e57fab0de9420196e690a5
|
77df26d5094d2ead5985bd11d38ca8e80e51fbca
|
refs/heads/main
| 2023-03-29T10:45:51.408370 | 2021-04-07T07:11:41 | 2021-04-07T07:11:41 | 355,448,271 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,192 |
java
|
package baseClass;
import java.io.IOException;
import java.util.Properties;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
import utilities.PropertyRead;
public class LaunchBrowser {
static Properties prop;
public static WebDriver driver;
@Test
public static void browserLaunch() throws IOException
{
//Defining the object for property
prop=PropertyRead.prop();
//Getting path of chrome driver
String chromeDriverPath = prop.getProperty("chromePath");
//Setting thh property of chrome driver
System.setProperty("webdriver.chrome.driver", chromeDriverPath);
//Initializing and opening the browser
driver=new ChromeDriver();
//Getting url from a method
String url=LaunchBrowser.getUrl();
//Sending Url to browser
driver.get(url);
//Maximizing the browser
driver.manage().window().maximize();
}
public static String getUrl() {
//Getting browser url from Property file
String url=prop.getProperty("url");
String Url=null;
try
{
if (url != null)
Url=url;
}
catch(Exception e)
{
throw new RuntimeException("url is not found");
}
return Url;
}
}
|
[
"[email protected]"
] | |
e3a2573d0389a14c1748ca836e674a66ad0fdd0e
|
4d693a55ce862cce152a5ef1da3476e186e0b5b4
|
/src/org/androidpn/server/dao/hibernate/UserDaoHibernate.java
|
9c4e235161d55fd4d7d4dc5e97bf37866419ac19
|
[] |
no_license
|
kanandian/Androidpn-tomcat
|
ec30be20599a69dd556db7c36563672c98c7b837
|
9a60cc3f05b33864512a15f60a0a5257a2c23243
|
refs/heads/master
| 2018-09-20T14:06:35.487429 | 2018-06-06T13:40:50 | 2018-06-06T13:40:50 | 120,586,901 | 2 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 4,779 |
java
|
/*
* Copyright (C) 2010 Moduad Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
package org.androidpn.server.dao.hibernate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.androidpn.server.dao.UserDao;
import org.androidpn.server.model.Bussiness;
import org.androidpn.server.model.Collection;
import org.androidpn.server.model.User;
import org.androidpn.server.service.UserNotFoundException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
/**
* This class is the implementation of UserDAO using Spring's HibernateTemplate.
*
* @author Sehwan Noh ([email protected])
*/
public class UserDaoHibernate extends HibernateDaoSupport implements UserDao {
public User getUser(Long id) {
return (User) getHibernateTemplate().get(User.class, id);
}
public User saveUser(User user) {
getHibernateTemplate().saveOrUpdate(user);
getHibernateTemplate().flush();
return user;
}
public void removeUser(Long id) {
getHibernateTemplate().delete(getUser(id));
}
public boolean exists(Long id) {
User user = (User) getHibernateTemplate().get(User.class, id);
return user != null;
}
@SuppressWarnings("unchecked")
public List<User> getUsers() {
return getHibernateTemplate().find(
"from User u order by u.createdDate desc");
}
@SuppressWarnings("unchecked")
public List<User> getUsersFromCreatedDate(Date createDate) {
return getHibernateTemplate()
.find("from User u where u.createdDate >= ? order by u.createdDate desc",
createDate);
}
@SuppressWarnings("unchecked")
public User getUserByUsername(String username) throws UserNotFoundException {
List users = getHibernateTemplate().find("from User where username=?",
username);
if (users == null || users.isEmpty()) {
throw new UserNotFoundException("User '" + username + "' not found");
} else {
return (User) users.get(0);
}
}
@Override
public User getUserByMobile(String mobile) {
List<User> users = getHibernateTemplate().find("from User u where u.mobile = ?", mobile);
if (users == null || users.isEmpty()) {
return null;
}
return users.get(0);
}
@Override
public void addCollection(Collection collection) {
getHibernateTemplate().saveOrUpdate(collection);
}
@Override
public void removeCollection(String userName, long bussinessId) {
List<Collection> collectionList = getHibernateTemplate().find("from Collection c where c.userName = ? and c.bussinessId = ?", new Object[]{userName, bussinessId});
getHibernateTemplate().deleteAll(collectionList);
}
@Override
public boolean existCollection(String userName, long bussinessId) {
List<Collection> collectionList = getHibernateTemplate().find("from Collection c where c.userName = ? and c.bussinessId = ?", new Object[]{userName, bussinessId});
if (collectionList == null || collectionList.isEmpty()) {
return false;
}
return true;
}
@Override
public List<Long> getCollectedBussinessesId(String userName) {
List<Collection> collectionList = getHibernateTemplate().find("from Collection c where c.userName = ?", userName);
List<Long> idlist = new ArrayList<Long>();
for (Collection collection : collectionList) {
idlist.add(collection.getBussinessId());
}
return idlist;
}
@Override
public List<Bussiness> getBussinessesByIds(List<Long> idlist) {
if (idlist == null || idlist.isEmpty()) {
return new ArrayList<Bussiness>();
}
StringBuilder buf = new StringBuilder();
buf.append("('").append(idlist.get(0)).append("'");
for (int i=1;i<idlist.size();i++) {
buf.append(",'").append(idlist.get(i).intValue()).append("'");
}
buf.append(")");
String query = "from Bussiness b where b.bussinessId in "+buf.toString();
return getHibernateTemplate().find("from Bussiness b where b.bussinessId in "+buf.toString());
}
// @SuppressWarnings("unchecked")
// public User findUserByUsername(String username) {
// List users = getHibernateTemplate().find("from User where username=?",
// username);
// return (users == null || users.isEmpty()) ? null : (User) users.get(0);
// }
}
|
[
"[email protected]"
] | |
004e3c4bcef849a6dfded1e41239284a9ac0dc8f
|
f087dc471f333bfb984174189370bf46866837de
|
/engine/src/main/java/tk/approach/dengine/android/ResourceHandler.java
|
9b29a321056c5f3318f2ab1b77b2114e95c86500
|
[
"MIT"
] |
permissive
|
darsto/dengine
|
4b086fcaf81f5374d872bd8dda80daafdf51c52c
|
95642ebf1d9ea3d45e1708aa31623cf3a9198ee3
|
refs/heads/master
| 2021-05-04T11:16:41.421576 | 2017-01-20T18:34:12 | 2017-01-20T18:34:12 | 43,150,029 | 0 | 1 | null | null | null | null |
UTF-8
|
Java
| false | false | 218 |
java
|
package tk.approach.dengine.android;
/**
* A part of DEngine project.
* Created by Darek Stojaczyk.
*/
public interface ResourceHandler {
int[] getMusics();
int[] getSounds();
int[] getTextures();
}
|
[
"[email protected]"
] | |
b90c2dda4bae0a614aa45ac8024e0751c92e09bf
|
5bef03cc4ace92a90ccb2899f2cdda8cfb05a362
|
/src/main/java/com/br/sfb/repository/PasswordResetTokenRepository.java
|
dc817052f908f46b0bb35b79ddeeb169eafc016b
|
[] |
no_license
|
johnlfreire/login-spring-thymeleaf
|
00e8d82ca2c96ec9c050098a6ffbbc3d19676800
|
4580d39583bb481f3068ab597c1db21fbaf5edeb
|
refs/heads/master
| 2022-12-04T16:04:57.470360 | 2020-08-02T01:02:10 | 2020-08-02T01:02:10 | 264,278,174 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 305 |
java
|
package com.br.sfb.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.br.sfb.model.PasswordResetToken;
@Repository
public interface PasswordResetTokenRepository extends CrudRepository<PasswordResetToken, Long> {
}
|
[
"[email protected]"
] | |
5469dc682910f3335ffcbd55398b3360e636f11a
|
61602d4b976db2084059453edeafe63865f96ec5
|
/mtopsdk/mtop/common/a/b.java
|
843ae730b1723caaa6beee6a1388415f0270d681
|
[] |
no_license
|
ZoranLi/thunder
|
9d18fd0a0ec0a5bb3b3f920f9413c1ace2beb4d0
|
0778679ef03ba1103b1d9d9a626c8449b19be14b
|
refs/heads/master
| 2020-03-20T23:29:27.131636 | 2018-06-19T06:43:26 | 2018-06-19T06:43:26 | 137,848,886 | 12 | 1 | null | null | null | null |
UTF-8
|
Java
| false | false | 191 |
java
|
package mtopsdk.mtop.common.a;
import mtopsdk.mtop.common.d;
import mtopsdk.mtop.common.k;
public final class b extends a implements d {
public b(k kVar) {
super(kVar);
}
}
|
[
"[email protected]"
] | |
8f436ec7b50c83f6af0d8052d1a67775d54b4d36
|
e2a600115a35249143b3cf0087b20ea3f07e96ab
|
/app/src/main/java/com/cyl/musiclake/ui/youtube/YoutubeActivity.java
|
26a74256fed639878be8e54b60bcef06f831ad79
|
[
"Apache-2.0"
] |
permissive
|
caixiaodao/MusicLake
|
7da9d832e3c06aa4d4898e4c6f12b19ad4b440e3
|
6f679c6a7be5d39c95f8663c175b9cc37398250d
|
refs/heads/develop
| 2022-07-26T22:40:50.570450 | 2022-06-10T05:03:12 | 2022-06-10T05:03:12 | 223,573,993 | 0 | 0 |
Apache-2.0
| 2022-07-10T08:24:56 | 2019-11-23T10:56:38 |
Kotlin
|
UTF-8
|
Java
| false | false | 3,369 |
java
|
package com.cyl.musiclake.ui.youtube;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import com.cyl.musiclake.R;
import com.cyl.musiclake.utils.LogUtil;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.YouTubePlayer;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.listeners.AbstractYouTubePlayerListener;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.utils.YouTubePlayerUtils;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView;
public class YoutubeActivity extends AppCompatActivity {
private YouTubePlayerView youTubePlayerView;
private String videoId;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_youtube);
videoId = getIntent().getStringExtra("videoId");
LogUtil.d("YoutubeActivity", "|videoId " + videoId);
initYouTubePlayerView();
}
private void initYouTubePlayerView() {
youTubePlayerView = findViewById(R.id.youtube_player_view);
getLifecycle().addObserver(youTubePlayerView);
initPictureInPicture(youTubePlayerView);
youTubePlayerView.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {
@Override
public void onReady(@NonNull YouTubePlayer youTubePlayer) {
YouTubePlayerUtils.loadOrCueVideo(
youTubePlayer, getLifecycle(),
videoId, 0f
);
}
});
}
private void initPictureInPicture(YouTubePlayerView youTubePlayerView) {
ImageView pictureInPictureIcon = new ImageView(this);
pictureInPictureIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_picture_in_picture));
pictureInPictureIcon.setOnClickListener(view -> {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
boolean supportsPIP = getPackageManager().hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE);
if (supportsPIP)
enterPictureInPictureMode();
} else {
new AlertDialog.Builder(this)
.setTitle("Can't enter picture in picture mode")
.setMessage("In order to enter picture in picture mode you need a SDK version >= N.")
.show();
}
});
youTubePlayerView.getPlayerUiController().addView(pictureInPictureIcon);
}
@Override
public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Configuration newConfig) {
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig);
if (isInPictureInPictureMode) {
youTubePlayerView.enterFullScreen();
youTubePlayerView.getPlayerUiController().showUi(false);
} else {
youTubePlayerView.exitFullScreen();
youTubePlayerView.getPlayerUiController().showUi(true);
}
}
}
|
[
"[email protected]"
] | |
4b06478000a5229a080c8963ee46471df06af2cb
|
3051e0c0fbf50f6871088db16db04a941bd5f8e3
|
/src/main/java/com/compdevbooks/util/RegularExpressionsEnum.java
|
e101e7817a1edf4688b06d9c4446225bc46693b8
|
[] |
no_license
|
compdevbooks/modeloarquitetural
|
b7bb7e4826765dfa0b69ed24bc8962203d5f6dab
|
18893e2f643d2a04017bae1dc675511bd5099d0c
|
refs/heads/master
| 2020-05-20T07:27:19.938535 | 2016-10-30T23:34:35 | 2016-10-30T23:34:35 | 65,837,471 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 899 |
java
|
package com.compdevbooks.util;
import java.util.ResourceBundle;
public enum RegularExpressionsEnum {
NAME("[A-Za-z]{5,60}","name"),
PHONE("([0-9]{2,3} [0-9]{3,5}-[0-9]{4}","phone"),
NATIONAL_REGISTER("\\w+","nationalRegister"),
TITLE("","");
private final String regExp;
private String errorMsg;
RegularExpressionsEnum(String exp, String msg) {
regExp = exp;
errorMsg = "Unable to load. RegularExpressionsEnum.properties file must be in the same directory as the RegularExpressionsEnum.class";
try {
ResourceBundle bundle = ResourceBundle.getBundle("RegularExpressions");
errorMsg = bundle.getString(msg);
} catch(Exception e) {
// e.printStackTrace();
}
}
public String getRegExp() {
return regExp;
}
public String getErrorMsg() {
return errorMsg;
}
}
|
[
"[email protected]"
] | |
691c56d2d46464687481b827d559977b9ba8b108
|
c43c5f2c2354d8e0465257b8cb899c67895e59e3
|
/PlaneCallButtons.java
|
7a7501693eb96914dd6c9ae79119b28a98326bb9
|
[] |
no_license
|
rweatherman/CEN_3024_Module2_Assignment
|
8a0a86c8b8dddbb22a29157e7831e974a47f422f
|
4aa0fae3392c94d32d224f6c0139f48373092d40
|
refs/heads/master
| 2020-03-28T02:43:59.827186 | 2018-09-05T23:51:01 | 2018-09-05T23:51:01 | 147,592,248 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 4,672 |
java
|
package weathermanModule01;
import java.util.Scanner;;
public final class PlaneCallButtons
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
// set system variables
boolean isLanding = false;
int passengerOutput;
int count = 0;
boolean isCalled = false;
int callCount = 0;
int landingOutput;
int attendantOutput;
// set number of seats on the plane
System.out.println("How many seats are on this plane? only enter integers.");
Scanner numSeatsInput = new Scanner(System.in);
int numSeatsOutput = numSeatsInput.nextInt();
// Initialize the AttendantControl
AttendantControl [] buttons = new AttendantControl[numSeatsOutput];
for(int i = 0; i < buttons.length; i++)
{
String seat = "Seat " + Integer.toString(i + 1);
buttons[i] = new AttendantControl(seat);
}
// main program. Keep it running while plane is not landing
while(!isLanding)
{
// get passenger responses
System.out.println("If you would like to call the attendant? Type- seat number 1 - 5. Example- 5, then hit enter.");
Scanner passengerInput = new Scanner(System.in);
passengerOutput = passengerInput.nextInt();
// this would be a click event on passenger pressing a call button
callAttendant(buttons, passengerOutput - 1);
// display a status board for passenger lights
System.out.println("Passenger Call Button Status Board:");
for(int i = 0; i < buttons.length; i++)
{
lightStatus(buttons, i);
}
// see if there are any outstanding calls lights
for(int i = 0; i < buttons.length; i++)
{
if(buttons[i].getLit())
{
callCount++;
}
}
// if there are calls prompt attendant to answer the call or clear all calls if plane is landing
if(callCount > 0)
{
System.out.println("Attendant can you answer a call light? type 1 for yes and 0 for no. (Also type 1 to clear all lights)");
Scanner attendantBusyInput = new Scanner(System.in);
attendantOutput = attendantBusyInput.nextInt();
if(attendantOutput != 0)
{
System.out.println("Attendant, Type seat number from the status board, or type -1 to clear all call lights if plane is landing.");
Scanner attendantInput = new Scanner(System.in);
attendantOutput = attendantInput.nextInt();
attendantAnswer(buttons, attendantOutput - 1);
}
}
// display status board again
System.out.println("Passenger Call Button Status Board:");
for(int i = 0; i < buttons.length; i++)
{
lightStatus(buttons, i);
}
// check if plane is landing
for(int i = 0; i < buttons.length; i++)
{
if(buttons[i].getIsLanding())
{
count++;
}
}
if(count > 0)
{
isLanding = true;
}
}
}
public static void callAttendant(AttendantControl [] buttons, int seat)
{
int passengerOutput;
// this would be a click event that gets called when a passenger presses the call button
// passes in the entire AttnedantControl and the seat that presses the button
// if invalid response prompt passenger to enter seat num again or cancel
try
{
buttons[seat].buttonPressed(true);
buttons[seat].setLit(true);
}
catch(Exception ex)
{
System.out.println("Invalid response, type seat number again or 0 to cancel the call.");
Scanner passengerInput = new Scanner(System.in);
passengerOutput = passengerInput.nextInt();
if(passengerOutput != 0)
{
callAttendant(buttons, passengerOutput - 1);
}
}
}
public static void attendantAnswer(AttendantControl [] buttons, int seat)
{
// takes attendants response to a set number or takes in a cancel buttons int and clears all lights.
// on invalid response prompt attendant to re-enter the seat number.
try
{
if(seat != -2)
{
System.out.println(buttons[seat].acknowledgeSeatCall(true, seat));
}
else
{
for(int i = 0; i < buttons.length; i++)
{
buttons[i].setIsLanding(true);
buttons[i].clearCallLight(true);
buttons[i].setIndicatorLight("Not Lit");
}
System.out.println("Ladies and gentlemen we are getting ready to land. All call lights will be cleared.");
}
}
catch(Exception ex)
{
System.out.println("Invalid response.");
attendantAnswer(buttons, seat);
}
}
public static void lightStatus(AttendantControl [] buttons, int seat)
{
// displays toString() method
System.out.println(buttons[seat].toString());
}
}
|
[
"[email protected]"
] | |
694a40aca1431c7a92bd5a841f132db283fa76ce
|
36a528cdde8771f390b602ea7eed75a2a0e552ec
|
/app/src/main/java/com/davidulloa/examendavidantonioulloarodriguez/di/AppInjector.java
|
c3ad7661a0a4fadc8d984fd3a1dba4f82a5db39c
|
[] |
no_license
|
dulloar/examen2
|
bfb80a4686ee49bd5117781b7a2f423f50e74c05
|
724d07a816532a8bbdb92ebb74d97de35b885f73
|
refs/heads/master
| 2023-03-16T09:04:50.800429 | 2021-03-23T14:32:17 | 2021-03-23T14:32:17 | 348,393,576 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,556 |
java
|
package com.davidulloa.examendavidantonioulloarodriguez.di;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import com.davidulloa.examendavidantonioulloarodriguez.app.App;
import dagger.android.AndroidInjection;
import dagger.android.support.AndroidSupportInjection;
import dagger.android.support.HasSupportFragmentInjector;
public class AppInjector {
public AppInjector() {
}
public static void init(App app ){
DaggerAppComponent.builder().application(app).build().inject(app);
app.registerActivityLifecycleCallbacks(new Application.ActivityLifecycleCallbacks() {
@Override
public void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {
handleActivity(activity);
}
@Override
public void onActivityStarted(@NonNull Activity activity) {
}
@Override
public void onActivityResumed(@NonNull Activity activity) {
}
@Override
public void onActivityPaused(@NonNull Activity activity) {
}
@Override
public void onActivityStopped(@NonNull Activity activity) {
}
@Override
public void onActivitySaveInstanceState(@NonNull Activity activity, @NonNull Bundle outState) {
}
@Override
public void onActivityDestroyed(@NonNull Activity activity) {
}
});
}
private static void handleActivity(Activity activity){
if(activity instanceof HasSupportFragmentInjector){
AndroidInjection.inject(activity);
}
if(activity instanceof FragmentActivity){
((FragmentActivity) activity).getSupportFragmentManager()
.registerFragmentLifecycleCallbacks(new FragmentManager.FragmentLifecycleCallbacks() {
@Override
public void onFragmentCreated(@NonNull FragmentManager fm, @NonNull Fragment f, @Nullable Bundle savedInstanceState) {
if(f instanceof Injectable){
AndroidSupportInjection.inject(f);
}
}
}, true);
}
}
}
|
[
"[email protected]"
] | |
823cbb75f459972391d495f29781a5f57f500710
|
dd8998349c6b0c7e8cd900d0f18e8459f34e8f98
|
/src/No91.java
|
f9e5edb50250341d8ad5a358b6706a27c42d193f
|
[] |
no_license
|
Caesaer/leetcode
|
a86bffc2eed8b8ee78e3b3c6b31b6125f405b8bc
|
9d92a6e21ee51393709bbf7e05534999fc72af8f
|
refs/heads/master
| 2021-06-11T05:30:59.421915 | 2019-03-18T21:49:22 | 2019-03-18T21:49:22 | 128,585,459 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 781 |
java
|
public class No91 {
public int numDecodings(String s) {
if (s == null || s.length() == 0)
return 0;
int[] dp = new int[s.length()+1];
dp[0] = 1;
dp[1] = (s.charAt(0) == '0')? 0: 1;
for (int i = 2; i <= s.length(); i++){
int onedig = Integer.valueOf(s.substring(i-1,i));
int twodigs = Integer.valueOf(s.substring(i-2,i));
if (onedig > 0 && onedig < 10)
dp[i] += dp[i-1];
if (twodigs >= 10 && twodigs <= 26)
dp[i] += dp[i-2];
}
return dp[s.length()];
}
public static void main(String[] args){
String s = "1011071";
System.out.println(new No91().numDecodings(s));
}
}
/*
* 2 2 0 6
*
*
*
* */
|
[
"[email protected]"
] | |
d6b9418a9d834ee5eedbcdc7fb041d5d05d3d1b6
|
6d09516618454fb94c5fe56eeda6151e335ad6b2
|
/EulerProblem03.java
|
607dc1dd6d1b07173a900c249a25207f70b3ebb9
|
[] |
no_license
|
danielgalvaoguerra/Euler-Project-Solutions
|
be886e4bb2a3190d59214418227020886fe2fa93
|
ec90a1227c9f96dec33e93f188bee8b4548f0e9f
|
refs/heads/master
| 2021-01-19T05:15:47.287833 | 2016-08-05T20:58:09 | 2016-08-05T20:58:09 | 64,338,649 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 776 |
java
|
/*
* What is the largest prime factor of the number 600851475143 ?
* Author: Daniel Galvao Guerra
* Date: April 25, 2013
*/
public class EulerProblem03 {
public static void main(String args[])
{
new EulerProblem03().run();
}
private void run()
{
long N = 600851475143L;
/*
* Algorithm: Get divisors of number N from largest to smallest, and stop when a prime one is reached (meaning it's the largest prime factor)
*/
long i;
for (i=2; i<=N; i++)
{
if(N%i==0)
{
N/=i;
if(isPrime(N))
{
System.out.println(N);
break;
}
}
}
}
private boolean isPrime(long i)
{
for(long j=2; j<i; j++)
{
if(i%j==0){ return false; }
}
return true;
}
}
|
[
"[email protected]"
] | |
af347a2c54f91acf8b8dfaa5a898ff2dbb2080fe
|
300f9a5476d80533b4cec1081a621d156cb934b2
|
/mmm-client/mmm-client-impl-gwt/src/main/java/net/sf/mmm/client/impl/gwt/gin/package-info.java
|
58c6f2784078767c2b80ce1e4fc273fd94ad43f4
|
[
"Apache-2.0"
] |
permissive
|
cbonami/mmm
|
931157236175aa749280e71851fda1d8f5a4c5dc
|
cd69e59a9696ff44e87678ab1cc879d20d7188f7
|
refs/heads/master
| 2021-01-20T17:12:37.355366 | 2014-01-29T22:27:15 | 2014-01-29T22:27:15 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 455 |
java
|
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
/**
* Contains the GIN configuration for this client framework.
* <a name="documentation"/><h2>Client Impl GIN (GWT)</h2>
* This package contains the GIN (GWT INject) configuration for this GWT based implementation of the
* {@link net.sf.mmm.client.api Client API}.
*/
package net.sf.mmm.client.impl.gwt.gin;
|
[
"[email protected]"
] | |
6b368aedae865d57392997d60a1ebf3c928aa4db
|
2a89a0c51d38cbd6a462a7ede59b01f083f0b27c
|
/src/main/java/org/iesalandalus/programacion/reservasaulas/modelo/vista/Consola.java
|
e9b095f4346870a2ef0911bc94fd5ff6d481d259
|
[] |
no_license
|
GalinaKatulskaja/ReservasAulas-v0
|
e8608cb9ba5325cd5417b4e3d118486810eb3006
|
b4da2fed78079d8932b3533ea81d71a400627969
|
refs/heads/master
| 2020-04-16T15:23:56.620897 | 2019-02-11T16:46:05 | 2019-02-11T16:46:05 | 165,701,127 | 0 | 0 | null | 2019-01-14T17:07:32 | 2019-01-14T17:07:31 | null |
UTF-8
|
Java
| false | false | 3,158 |
java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.iesalandalus.programacion.reservasaulas.modelo.vista;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import org.iesalandalus.programacion.utilidades.Entrada;
import org.iesalandalus.programacion.reservasaulas.modelo.dominio.*;
/**
*
* @author Galina
*/
public class Consola {
private static final DateTimeFormatter FORMATO_DIA = DateTimeFormatter.ofPattern("dd/mm/aaaa");
private Consola(){
}
public static void mostrarMenu(){
mostrarCabecera("Reservas de aulas");
for(Opcion opcion: Opcion.values()){
System.out.println(opcion);
}
}
public static void mostrarCabecera(String mensaje){
System.out.printf("%n%s%n", mensaje);
String cadena = "%0" + mensaje.length() + "d%n";
System.out.println(String.format(cadena, 0).replace("0", "-"));
}
public static int elegirOpcion() {
int opcion;
do {
System.out.print("\nElige una opción: ");
opcion = Entrada.entero();
} while (!Opcion.esOrdinalValido(opcion));
return opcion;
}
public static Aula leerAula(){
Aula aula = new Aula(leerNombreAula());
return aula;
}
public static String leerNombreAula(){
String nombre = null;
do{
System.out.println("Introduce el nombre del Aula");
nombre = Entrada.cadena();
}while(nombre == null || nombre == "");
return nombre;
}
public static Profesor leerProfesor(){
Profesor profesor = new Profesor(leerNombreProfesor(),null);
return profesor;
}
public static String leerNombreProfesor(){
String nombre = null;
do{
System.out.println("Introduce nombre del Profesor");
nombre = Entrada.cadena();
}while(nombre == null || nombre == "");
return nombre ;
}
public static Tramo leerTramo(){
int indice = 0;
do{
System.out.println("Selecciona horario de la reserva: ");
System.out.println("1) " +Tramo.MANANA );
System.out.println("2) " +Tramo.TARDE);
indice = Entrada.entero();
}while(indice<1 ||indice>2);
return Tramo.values()[indice-1];
}
static LocalDate leerDia(){
String fecha;
boolean valido = false;
do{
System.out.println("Introduce la fecha (dd/mm/aaaa)");
fecha = Entrada.cadena();
try{
LocalDate.parse(fecha, FORMATO_DIA);
valido = true;
}catch (DateTimeParseException e){
valido = false;
}
}while(!valido);
return LocalDate.parse(fecha, FORMATO_DIA); }
}
|
[
"[email protected]"
] | |
6211fa1ca824afc4072da71fd5d60ba55e18ef79
|
779bab1800fbeb55aaa8e3aef06f4a20ef7ab173
|
/hbase-sync-client/src/test/java/com/mon4h/framework/hbase/client/ED.java
|
39863ef882da9c8696d8aed036d8994dbc1c41e8
|
[] |
no_license
|
bruceleexiaokan/mon4h
|
4b7f6761edeb5f510ca180dda111a31308797ba5
|
993b216183f122bc0d3f84a60e761dd520c2f083
|
refs/heads/master
| 2020-05-17T16:39:56.495470 | 2013-08-18T23:22:16 | 2013-08-18T23:22:16 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 708 |
java
|
package com.mon4h.framework.hbase.client;
import java.nio.charset.Charset;
/**
* @author: xingchaowang
* @date: 4/28/13 8:59 PM
*/
public class ED {
public static void main(String[] args) {
String s = "无线下单模块";
byte[] bs = s.getBytes(Charset.forName("GBK"));
String s2 = new String(bs);
System.out.println(s2);
printAsHex(s.getBytes());
printAsHex(s2.getBytes());
printAsHex(bs);
}
public static void printAsHex(byte[] bytes) {
StringBuilder sb = new StringBuilder();
for (byte b : bytes) {
sb.append(String.format("%02X ", b));
}
System.out.println(sb.toString());
}
}
|
[
"[email protected]"
] | |
b314450706f0cf5080f5fae97d1367a3c0c54b41
|
469e1241fc84f46285b804eddcb9d5236e23a356
|
/LabSheet6/DataSentinelWhile3.java
|
c6de23f5fe001242c1a5414e09edaa2a573fbb34
|
[] |
no_license
|
TSchutz99/StructureProgramming1
|
51dbd0551cd473ec38090335c4b74e9a8b1f2b0c
|
d85dedab861e32dbfbc466abba8c10ac82df4257
|
refs/heads/master
| 2022-12-31T03:13:41.971770 | 2020-10-19T21:17:24 | 2020-10-19T21:17:24 | 305,509,517 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,466 |
java
|
package LabSheet6;
/* DataSentinelWhile3 Java Program
* by: Faun Schutz
* start date: 25/10/2019
* finish date: 25/10/2019
*
* This program uses a data-sentinelcontrolled while loop to read in a sentence of arbitary length from
* the user, terminal with a full-stop. In then determins the exact number of lowercase letters, uppercase
* letters, digits and punctuations characters in the sentence.
*/
import java.util.Scanner;
public class DataSentinelWhile3{
public static void main(String args[])
{
String sentence;
char ch;
int index = 0, lowerLetters = 0, upperLetters = 0, digits = 0, punctuation = 0;
Scanner input = new Scanner(System.in);
System.out.println("Please enter any sentence you like (terminated by a full-stop)\n");
sentence = input.nextLine();
ch = sentence.charAt(index); //extract the 1st character from sentence
while(ch != '.')
{
if(ch>='a' && ch<='z')
lowerLetters++;
else if(ch>='A' && ch<='Z')
upperLetters++;
else if(ch>='0' && ch<='9')
digits++;
else
punctuation++;
index++; // increase index by 1
ch = sentence.charAt(index); // extract the next characterfrom the sentence
}
System.out.println("\n\n******Lexical Analysis of Your Sentence******" +
"\n\nLowercase letters: " + lowerLetters +
"\nUppercase letters: " + upperLetters +
"\nDigits: " + digits +
"\nPunctuation symbols: " + (punctuation+1));
}
}
|
[
"[email protected]"
] | |
94050c0ea8d59001d5bd6ec84aaf4fc888e15063
|
d42b896362ba1f403faf01602050181ccfeeb69a
|
/DAWD_Assignment09/app/src/main/java/com/example/qq/dawd_assignment09/EmployeeManagerActivity.java
|
4e4c8e536753fbe8d6a84e4b325825614d8df52b
|
[] |
no_license
|
anhtuan161295/AndroidStudioProjects
|
c523636a4ec8005101e72b80f75a0312efdf828b
|
2cd9aa4ad5a005251f9bdaf29a7f61b7b0a6a93a
|
refs/heads/master
| 2020-03-23T15:46:27.139872 | 2018-07-21T02:13:17 | 2018-07-21T02:13:17 | 141,773,581 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 5,402 |
java
|
package com.example.qq.dawd_assignment09;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
public class EmployeeManagerActivity extends AppCompatActivity {
EditText etId, etName, etDateofbirth, etEmail;
ArrayList<Employee> arrEmployee = new ArrayList<>();
ArrayAdapter adapter;
String informations = "";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_employee_manager);
etId = (EditText) findViewById(R.id.etId);
etName = (EditText) findViewById(R.id.etName);
etDateofbirth = (EditText) findViewById(R.id.etDateofbirth);
etEmail = (EditText) findViewById(R.id.etEmail);
}
public void add(View view) {
String id = etId.getText().toString().trim();
String name = etName.getText().toString().trim();
String dateofbirth = etDateofbirth.getText().toString().trim();
String email = etEmail.getText().toString().trim();
if (id.isEmpty()) {
Toast.makeText(this, "Id is required", Toast.LENGTH_SHORT).show();
etId.selectAll();
etId.requestFocus();
return;
} else if (name.isEmpty()) {
Toast.makeText(this, "Name is required", Toast.LENGTH_SHORT).show();
etName.selectAll();
etName.requestFocus();
return;
} else if (dateofbirth.isEmpty()) {
Toast.makeText(this, "Date of birth is required", Toast.LENGTH_SHORT).show();
etDateofbirth.selectAll();
etDateofbirth.requestFocus();
return;
} else if (email.isEmpty()) {
Toast.makeText(this, "Email is required", Toast.LENGTH_SHORT).show();
etEmail.selectAll();
etEmail.requestFocus();
return;
} else {
Employee emp = new Employee(Integer.parseInt(id), name, dateofbirth, email);
MyDBHandler handler = new MyDBHandler(this, null, null, 1);
handler.add(emp);
Toast.makeText(this, "Thêm nhân viên thành công", Toast.LENGTH_SHORT).show();
handler.close();
}
}
public void display(View view) {
Intent intent = new Intent(EmployeeManagerActivity.this, DisplayActivity.class);
MyDBHandler handler = new MyDBHandler(this, null, null, 1);
arrEmployee = (ArrayList<Employee>) handler.display();
Bundle bundle = new Bundle();
bundle.putSerializable("arrEmployee", arrEmployee);
intent.putExtras(bundle);
startActivity(intent);
handler.close();
}
public void find(View view) {
Intent intent = new Intent(EmployeeManagerActivity.this, FindActivity.class);
startActivity(intent);
}
public void updateInfomation() {
informations = "";
MyDBHandler handler = new MyDBHandler(this, null, null, 1);
arrEmployee = (ArrayList<Employee>) handler.display();
for (Employee e : arrEmployee) {
informations += "Id: " + e.getId() + "\n"
+ "Tên: " + e.getName() + "\n"
+ "Ngày sinh: " + e.getDateofbirth() + "\n"
+ "Email: " + e.getEmail() + "\n"
+ "\n";
}
handler.close();
}
public void write(View view) {
updateInfomation();
try {
FileOutputStream out = openFileOutput("employee.txt", MODE_PRIVATE);
OutputStreamWriter writer = new OutputStreamWriter(out);
writer.write(informations);
writer.close();
Toast.makeText(this, "Lưu file thành công", Toast.LENGTH_SHORT).show();
} catch (Exception e) {
e.printStackTrace();
}
}
public void read(View view) {
try {
FileInputStream in = openFileInput("employee.txt");
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String data = "";
StringBuilder builder = new StringBuilder();
while ((data = reader.readLine()) != null) {
builder.append(data);
builder.append("\n");
}
in.close();
// Xử lý hiển thị dữ liệu trong 1 Activity có tên là DisplayActivity
// Tạo Intent để mở DisplayActivity
Intent myIntent = new Intent(EmployeeManagerActivity.this, ReadFileActivity.class);
// Khai báo Bundle
Bundle bundle = new Bundle();
// Đưa dữ liệu kiểu string vào bundle
bundle.putString("informations", builder.toString());
// Đưa bundle vào Intent
myIntent.putExtra("MyPackage", bundle);
// Mở Activity DisplayActivity
startActivity(myIntent);
} catch (Exception e) {
e.printStackTrace();
}
}
public void exit(View view) {
finish();
}
}
|
[
"[email protected]"
] | |
45f5579e17b3245b44d1bf01211d196ac46ef1a0
|
aceef16ed6e49d6dee60c0db47867c337261c1cd
|
/src/party/command/LivingroomLightOffCommand.java
|
346680c35bcb4dfe5ebe41862a70e1494d6977c4
|
[] |
no_license
|
geekbing/Command
|
648f29368c8920ca56fc96b2a3af30999bcf9697
|
9f7a81354589289ba0cad261ecb74ae5d6499588
|
refs/heads/master
| 2020-05-22T19:20:26.213394 | 2017-03-12T10:31:53 | 2017-03-12T10:31:53 | 84,717,489 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 334 |
java
|
package party.command;
import party.onject.Light;
public class LivingroomLightOffCommand implements Command {
private Light light;
public LivingroomLightOffCommand(Light light) {
this.light = light;
}
public void execute() {
light.off();
}
public void undo() {
light.on();
}
}
|
[
"[email protected]"
] | |
5180dd807deb23906788b3d6e61d574fc3bd8827
|
40d844c1c780cf3618979626282cf59be833907f
|
/src/testcases/CWE190_Integer_Overflow/s06/CWE190_Integer_Overflow__short_max_postinc_31.java
|
d732cece5d62cf589dea1b8e3760641af338b6b3
|
[] |
no_license
|
rubengomez97/juliet
|
f9566de7be198921113658f904b521b6bca4d262
|
13debb7a1cc801977b9371b8cc1a313cd1de3a0e
|
refs/heads/master
| 2023-06-02T00:37:24.532638 | 2021-06-23T17:22:22 | 2021-06-23T17:22:22 | 379,676,259 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 3,235 |
java
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__short_max_postinc_31.java
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-31.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: max Set data to the max value for short
* GoodSource: A hardcoded non-zero, non-min, non-max, even number
* Sinks: increment
* GoodSink: Ensure there will not be an overflow before incrementing data
* BadSink : Increment data, which can cause an overflow
* Flow Variant: 31 Data flow: make a copy of data within the same method
*
* */
package testcases.CWE190_Integer_Overflow.s06;
import testcasesupport.*;
import javax.servlet.http.*;
public class CWE190_Integer_Overflow__short_max_postinc_31 extends AbstractTestCase
{
public void bad() throws Throwable
{
short dataCopy;
{
short data;
/* POTENTIAL FLAW: Use the maximum size of the data type */
data = Short.MAX_VALUE;
dataCopy = data;
}
{
short data = dataCopy;
/* POTENTIAL FLAW: if data == Short.MAX_VALUE, this will overflow */
data++;
short result = (short)(data);
IO.writeLine("result: " + result);
}
}
public void good() throws Throwable
{
goodG2B();
goodB2G();
}
/* goodG2B() - use goodsource and badsink */
private void goodG2B() throws Throwable
{
short dataCopy;
{
short data;
/* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */
data = 2;
dataCopy = data;
}
{
short data = dataCopy;
/* POTENTIAL FLAW: if data == Short.MAX_VALUE, this will overflow */
data++;
short result = (short)(data);
IO.writeLine("result: " + result);
}
}
/* goodB2G() - use badsource and goodsink */
private void goodB2G() throws Throwable
{
short dataCopy;
{
short data;
/* POTENTIAL FLAW: Use the maximum size of the data type */
data = Short.MAX_VALUE;
dataCopy = data;
}
{
short data = dataCopy;
/* FIX: Add a check to prevent an overflow from occurring */
if (data < Short.MAX_VALUE)
{
data++;
short result = (short)(data);
IO.writeLine("result: " + result);
}
else
{
IO.writeLine("data value is too large to increment.");
}
}
}
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
public static void main(String[] args) throws ClassNotFoundException,
InstantiationException, IllegalAccessException
{
mainFromParent(args);
}
}
|
[
"[email protected]"
] | |
04099c73349ec29188dc11accc7b5da5c6ca7563
|
ae2b7e1880c13c5d4bfcb709b7c8afd4094a0439
|
/src/test/java/tutorial/mvc/BlogEntryControllerTest.java
|
9bb5470e141fc2b7df2c0805cd934a3e5226369a
|
[] |
no_license
|
prudveer/basic-web-app
|
ec52d0fb5b31fc0ca1ed6514779e1523c01232e0
|
e1f617027523026497643007e98daea8fe76cb75
|
refs/heads/master
| 2016-09-12T21:19:01.379151 | 2016-05-02T19:53:26 | 2016-05-02T19:53:26 | 57,352,645 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 4,231 |
java
|
/*
package tutorial.mvc;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import tutorial.core.models.entities.Blog;
import tutorial.core.models.entities.BlogEntry;
import tutorial.core.services.BlogEntryService;
import tutorial.rest.mvc.BlogEntryController;
import static org.hamcrest.Matchers.*;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
*/
/**
* Created by Chris on 6/19/14.
*//*
public class BlogEntryControllerTest {
@InjectMocks
private BlogEntryController controller;
@Mock
private BlogEntryService service;
private MockMvc mockMvc;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
mockMvc = MockMvcBuilders.standaloneSetup(controller).build();
}
@Test
public void getExistingBlogEntry() throws Exception {
BlogEntry entry = new BlogEntry();
entry.setId(1L);
entry.setTitle("Test Title");
Blog blog = new Blog();
blog.setId(1L);
entry.setBlog(blog);
when(service.findBlogEntry(1L)).thenReturn(entry);
mockMvc.perform(get("/rest/blog-entries/1"))
.andExpect(jsonPath("$.title", is(entry.getTitle())))
.andExpect(jsonPath("$.links[*].href",
hasItems(endsWith("/blogs/1"), endsWith("/blog-entries/1"))))
.andExpect(jsonPath("$.links[*].rel",
hasItems(is("self"), is("blog"))))
.andExpect(status().isOk());
}
@Test
public void getNonExistingBlogEntry() throws Exception {
when(service.findBlogEntry(1L)).thenReturn(null);
mockMvc.perform(get("/rest/blog-entries/1"))
.andExpect(status().isNotFound());
}
@Test
public void deleteExistingBlogEntry() throws Exception {
BlogEntry deletedBlogEntry = new BlogEntry();
deletedBlogEntry.setId(1L);
deletedBlogEntry.setTitle("Test Title");
when(service.deleteBlogEntry(1L)).thenReturn(deletedBlogEntry);
mockMvc.perform(delete("/rest/blog-entries/1"))
.andExpect(jsonPath("$.title", is(deletedBlogEntry.getTitle())))
.andExpect(jsonPath("$.links[*].href", hasItem(endsWith("/blog-entries/1"))))
.andExpect(status().isOk());
}
@Test
public void deleteNonExistingBlogEntry() throws Exception {
when(service.deleteBlogEntry(1L)).thenReturn(null);
mockMvc.perform(delete("/rest/blog-entries/1"))
.andExpect(status().isNotFound());
}
@Test
public void updateExistingBlogEntry() throws Exception {
BlogEntry updatedEntry = new BlogEntry();
updatedEntry.setId(1L);
updatedEntry.setTitle("Test Title");
when(service.updateBlogEntry(eq(1L), any(BlogEntry.class)))
.thenReturn(updatedEntry);
mockMvc.perform(put("/rest/blog-entries/1")
.content("{\"title\":\"Test Title\"}")
.contentType(MediaType.APPLICATION_JSON))
.andExpect(jsonPath("$.title", is(updatedEntry.getTitle())))
.andExpect(jsonPath("$.links[*].href", hasItem(endsWith("/blog-entries/1"))))
.andExpect(status().isOk());
}
@Test
public void updateNonExistingBlogEntry() throws Exception {
when(service.updateBlogEntry(eq(1L), any(BlogEntry.class)))
.thenReturn(null);
mockMvc.perform(put("/rest/blog-entries/1")
.content("{\"title\":\"Test Title\"}")
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isNotFound());
}
}
*/
|
[
"[email protected]"
] | |
cf871737e9642ac8689c000e72d4818d5751889f
|
291ee123108a5051d87b9c928eae9559f5135620
|
/src/CurlVoltage.java
|
40497e6d030d6e556adecc3c9ba38f19c0268946
|
[] |
no_license
|
smhmb110/Proj-term-2
|
2bdf833ff7ab1c276a8e28536ea59e4f2a760001
|
a8aabc227db63114e5d2b329cbcd44aa6607d991
|
refs/heads/master
| 2022-12-08T00:52:30.445446 | 2020-08-06T04:20:21 | 2020-08-06T04:20:21 | 282,473,770 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 3,783 |
java
|
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
public class CurlVoltage extends JPanel {
public static double max = 0;
CurlVoltage() {
setSize(800,600);
setVisible(true);
}
@Override
public void paintComponent(Graphics g) {
g.setColor(Color.BLACK);
Graphics2D g2 = (Graphics2D) g;
Stroke stroke = new BasicStroke(4);
g2.setStroke(stroke);
g2.drawLine(150,300,750,300);
g2.drawLine(150,550,150,50);
int j = (int) Math.round(Main.sa/Circuit.dt);
int a;
int k = (int) Math.round(Main.ea/Circuit.dt);
ArrayList<Double> initial = new ArrayList<Double>();
for (a=j; a<k+1; a++)
initial.add(Main.element.voltages.get(a));
ArrayList<Integer> x = new ArrayList<Integer>();
ArrayList<Integer> y = new ArrayList<Integer>();
x.add(150);
y.add(300);
Double d2 = Double.valueOf(initial.size());
for (a=0; a<initial.size(); a++) {
try {
Double d = Double.valueOf(a);
x.add((int) Math.round((d + 1) / d2 * 580 + 150));
y.add((int) Math.round(-initial.get(a)/max*220+300));
} catch (Exception e) { y.add(300); }
}
//System.out.println(max);
//System.out.println(x);
//System.out.println(y);
g.setColor(Color.RED);
Stroke s = new BasicStroke(2);
((Graphics2D) g).setStroke(s);
for (a=1; a<x.size(); a++)
g.drawLine(x.get(a-1),y.get(a-1),x.get(a),y.get(a));
}
public static void pass( ) {
JFrame frame = new JFrame("VOLTAGE");
frame.setSize(800,600);
frame.setVisible(true);
frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
JLabel label = new JLabel("VOLTAGE OF " + Main.element.name);
frame.add(label);
label.setBounds(50,20,100,20);
JLabel labelA = new JLabel(String.format("%.4f",Main.sa));
JLabel labelB = new JLabel(String.format("%.4f",(Main.sa+Main.ea)/2));
JLabel labelC = new JLabel(String.format("%.4f",Main.ea));
frame.add(labelA);
frame.add(labelB);
frame.add(labelC);
labelA.setBounds(155,305,100,20);
labelB.setBounds(440,305,100,20);
labelC.setBounds(730,305,100,20);
int j = (int) Math.round(Main.sa/Circuit.dt);
int a;
int k = (int) Math.round(Main.ea/Circuit.dt);
max = 0;
for (a=j ; a<k+1; a++) {
if (Math.abs(Main.element.voltages.get(a)) > max)
max = Math.abs(Main.element.voltages.get(a));
}
//if (Main.element.voltages.get(j) != 0 || Main.element.voltages.get(k) != 0)
// max = Math.max(Math.abs(Main.element.voltages.get(j))
// , Math.abs(Main.element.voltages.get(k)));
if (max != 0) {
JLabel labelM1 = new JLabel(String.format("%.4f",max), SwingConstants.RIGHT);
frame.add(labelM1);
labelM1.setBounds(30, 70, 110, 20);
JLabel labelM2 = new JLabel(String.format("%.4f",-max), SwingConstants.RIGHT);
frame.add(labelM2);
labelM2.setBounds(30, 510, 110, 20);
JLabel labelM3 = new JLabel(String.format("%.4f",0.0000), SwingConstants.RIGHT);
frame.add(labelM3, SwingConstants.RIGHT);
labelM3.setBounds(30, 290, 110, 20);
}
else {
JLabel labelM1 = new JLabel(String.format("%.4f",0.0000), SwingConstants.RIGHT);
frame.add(labelM1, SwingConstants.RIGHT);
labelM1.setBounds(30, 290, 110, 20);
}
JPanel voltage = new CurlVoltage();
frame.add(voltage);
}
}
|
[
"[email protected]"
] | |
66fd097d826be908f446ee890bfcf00005be56ef
|
637817184196b8d73130958fc1fc0b27833d8d92
|
/aprint-core/src/main/java/org/barrelorgandiscovery/model/steps/scripts/ModelGroovyScript.java
|
f1f615e09141c96120980f4242d0a5c59c5a11c5
|
[] |
no_license
|
barrelorgandiscovery/aprintproject
|
daad59e1e52e6e8e4187f943de95b79622827c81
|
ebc932c50d3116a4bbe9802910eac097151b1625
|
refs/heads/master
| 2023-06-28T03:11:25.779074 | 2023-05-08T12:15:27 | 2023-05-08T12:15:27 | 258,808,541 | 2 | 0 | null | 2023-05-08T09:50:33 | 2020-04-25T15:24:59 |
Java
|
UTF-8
|
Java
| false | false | 1,653 |
java
|
package org.barrelorgandiscovery.model.steps.scripts;
import java.util.Collection;
import java.util.Map;
import org.barrelorgandiscovery.model.ModelParameter;
import org.barrelorgandiscovery.model.ModelType;
import org.barrelorgandiscovery.model.SinkSource;
import org.barrelorgandiscovery.model.type.GenericSimpleType;
import org.barrelorgandiscovery.model.type.JavaType;
import org.barrelorgandiscovery.virtualbook.Hole;
/**
* base class for model script, provide helpers for implementing model scripts
*
* @author pfreydiere
*
*/
public abstract class ModelGroovyScript {
public String getLabel() {
return "Script box";
}
/**
* configure stage parameters
*
* @return
* @throws Exception
*/
public abstract ModelParameter[] configureParameters() throws Exception;
/**
* create a hole type
*
* @return
*/
protected ModelType newHolesType() {
return new GenericSimpleType(Collection.class, new Class[] { Hole.class });
}
/**
* create a simple java type
* @param clazz
* @return
*/
protected ModelType newJavaType(Class clazz) {
return new JavaType(clazz);
}
/**
* create a new parameter
*
* @param isIn
* @param name
* @param type
* @return
*/
protected ModelParameter newParameter(boolean isIn, String name, ModelType type) {
ModelParameter p = new ModelParameter();
p.setName(name);
p.setIn(isIn);
p.setType(type);
return p;
}
/**
* execute the step
*
* @param parameterValues
* @return output parameters values
* @throws Exception
*/
public abstract Map<String, Object> execute(Map<String, Object> parameterValues) throws Exception;
}
|
[
"[email protected]"
] | |
3fba511f6ebcfd406e2322342000ff3f46c89d21
|
8baaa3bbcf916e66ec5f69c45d9192ae92f07251
|
/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/header/HeaderExchangeHandler.java
|
6dd20208f82a82495d940d3125bd43c424235b89
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
gitchenhe/dubbo
|
ef2621b605dd912d38d6c5fdc3d6e8418cb0dc2d
|
0d423aa851859c2cd3252543cb5c586399d11b55
|
refs/heads/master
| 2022-12-25T05:20:52.635670 | 2019-10-16T10:22:14 | 2019-10-16T10:22:14 | 207,946,533 | 0 | 0 |
Apache-2.0
| 2022-12-14T20:37:28 | 2019-09-12T02:22:17 |
Java
|
UTF-8
|
Java
| false | false | 10,329 |
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.remoting.exchange.support.header;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.logger.Logger;
import org.apache.dubbo.common.logger.LoggerFactory;
import org.apache.dubbo.common.utils.NetUtils;
import org.apache.dubbo.common.utils.StringUtils;
import org.apache.dubbo.remoting.Channel;
import org.apache.dubbo.remoting.ChannelHandler;
import org.apache.dubbo.remoting.Constants;
import org.apache.dubbo.remoting.ExecutionException;
import org.apache.dubbo.remoting.RemotingException;
import org.apache.dubbo.remoting.exchange.ExchangeChannel;
import org.apache.dubbo.remoting.exchange.ExchangeHandler;
import org.apache.dubbo.remoting.exchange.Request;
import org.apache.dubbo.remoting.exchange.Response;
import org.apache.dubbo.remoting.exchange.support.DefaultFuture;
import org.apache.dubbo.remoting.transport.ChannelHandlerDelegate;
import java.net.InetSocketAddress;
import java.util.concurrent.CompletionStage;
/**
* ExchangeReceiver
*/
public class HeaderExchangeHandler implements ChannelHandlerDelegate {
protected static final Logger logger = LoggerFactory.getLogger(HeaderExchangeHandler.class);
public static final String KEY_READ_TIMESTAMP = HeartbeatHandler.KEY_READ_TIMESTAMP;
public static final String KEY_WRITE_TIMESTAMP = HeartbeatHandler.KEY_WRITE_TIMESTAMP;
private final ExchangeHandler handler;
public HeaderExchangeHandler(ExchangeHandler handler) {
if (handler == null) {
throw new IllegalArgumentException("handler == null");
}
this.handler = handler;
}
static void handleResponse(Channel channel, Response response) throws RemotingException {
logger.debug("处理响应:"+response);
//响应不为空,并且不是心跳检测
if (response != null && !response.isHeartbeat()) {
DefaultFuture.received(channel, response);
}
}
private static boolean isClientSide(Channel channel) {
InetSocketAddress address = channel.getRemoteAddress();
URL url = channel.getUrl();
return url.getPort() == address.getPort() &&
NetUtils.filterLocalHost(url.getIp())
.equals(NetUtils.filterLocalHost(address.getAddress().getHostAddress()));
}
void handlerEvent(Channel channel, Request req) throws RemotingException {
if (req.getData() != null && req.getData().equals(Request.READONLY_EVENT)) {
channel.setAttribute(Constants.CHANNEL_ATTRIBUTE_READONLY_KEY, Boolean.TRUE);
}
}
void handleRequest(final ExchangeChannel channel, Request req) throws RemotingException {
Response res = new Response(req.getId(), req.getVersion());
if (req.isBroken()) {
Object data = req.getData();
String msg;
if (data == null) {
msg = null;
} else if (data instanceof Throwable) {
msg = StringUtils.toString((Throwable) data);
} else {
msg = data.toString();
}
res.setErrorMessage("Fail to decode request due to: " + msg);
res.setStatus(Response.BAD_REQUEST);
channel.send(res);
return;
}
// find handler by message class.
Object msg = req.getData();
try {
CompletionStage<Object> future = handler.reply(channel, msg);
future.whenComplete((appResult, t) -> {
try {
if (t == null) {
res.setStatus(Response.OK);
res.setResult(appResult);
} else {
res.setStatus(Response.SERVICE_ERROR);
res.setErrorMessage(StringUtils.toString(t));
}
channel.send(res);
} catch (RemotingException e) {
logger.warn("Send result to consumer failed, channel is " + channel + ", msg is " + e);
} finally {
// HeaderExchangeChannel.removeChannelIfDisconnected(channel);
}
});
} catch (Throwable e) {
res.setStatus(Response.SERVICE_ERROR);
res.setErrorMessage(StringUtils.toString(e));
channel.send(res);
}
}
@Override
public void connected(Channel channel) throws RemotingException {
channel.setAttribute(KEY_READ_TIMESTAMP, System.currentTimeMillis());
channel.setAttribute(KEY_WRITE_TIMESTAMP, System.currentTimeMillis());
ExchangeChannel exchangeChannel = HeaderExchangeChannel.getOrAddChannel(channel);
try {
handler.connected(exchangeChannel);
} finally {
HeaderExchangeChannel.removeChannelIfDisconnected(channel);
}
}
@Override
public void disconnected(Channel channel) throws RemotingException {
channel.setAttribute(KEY_READ_TIMESTAMP, System.currentTimeMillis());
channel.setAttribute(KEY_WRITE_TIMESTAMP, System.currentTimeMillis());
ExchangeChannel exchangeChannel = HeaderExchangeChannel.getOrAddChannel(channel);
try {
handler.disconnected(exchangeChannel);
} finally {
DefaultFuture.closeChannel(channel);
HeaderExchangeChannel.removeChannelIfDisconnected(channel);
}
}
@Override
public void sent(Channel channel, Object message) throws RemotingException {
Throwable exception = null;
try {
channel.setAttribute(KEY_WRITE_TIMESTAMP, System.currentTimeMillis());
ExchangeChannel exchangeChannel = HeaderExchangeChannel.getOrAddChannel(channel);
try {
handler.sent(exchangeChannel, message);
} finally {
HeaderExchangeChannel.removeChannelIfDisconnected(channel);
}
} catch (Throwable t) {
exception = t;
}
if (message instanceof Request) {
Request request = (Request) message;
DefaultFuture.sent(channel, request);
}
if (exception != null) {
if (exception instanceof RuntimeException) {
throw (RuntimeException) exception;
} else if (exception instanceof RemotingException) {
throw (RemotingException) exception;
} else {
throw new RemotingException(channel.getLocalAddress(), channel.getRemoteAddress(),
exception.getMessage(), exception);
}
}
}
@Override
public void received(Channel channel, Object message) throws RemotingException {
channel.setAttribute(KEY_READ_TIMESTAMP, System.currentTimeMillis());
final ExchangeChannel exchangeChannel = HeaderExchangeChannel.getOrAddChannel(channel);
try {
if (message instanceof Request) {
// handle request.
Request request = (Request) message;
if (request.isEvent()) {
handlerEvent(channel, request);
} else {
if (request.isTwoWay()) {
handleRequest(exchangeChannel, request);
} else {
handler.received(exchangeChannel, request.getData());
}
}
} else if (message instanceof Response) {
handleResponse(channel, (Response) message);
} else if (message instanceof String) {
if (isClientSide(channel)) {
Exception e = new Exception("Dubbo client can not supported string message: " + message + " in channel: " + channel + ", url: " + channel.getUrl());
logger.error(e.getMessage(), e);
} else {
String echo = handler.telnet(channel, (String) message);
if (echo != null && echo.length() > 0) {
channel.send(echo);
}
}
} else {
handler.received(exchangeChannel, message);
}
} finally {
HeaderExchangeChannel.removeChannelIfDisconnected(channel);
}
}
@Override
public void caught(Channel channel, Throwable exception) throws RemotingException {
if (exception instanceof ExecutionException) {
ExecutionException e = (ExecutionException) exception;
Object msg = e.getRequest();
if (msg instanceof Request) {
Request req = (Request) msg;
if (req.isTwoWay() && !req.isHeartbeat()) {
Response res = new Response(req.getId(), req.getVersion());
res.setStatus(Response.SERVER_ERROR);
res.setErrorMessage(StringUtils.toString(e));
channel.send(res);
return;
}
}
}
ExchangeChannel exchangeChannel = HeaderExchangeChannel.getOrAddChannel(channel);
try {
handler.caught(exchangeChannel, exception);
} finally {
HeaderExchangeChannel.removeChannelIfDisconnected(channel);
}
}
@Override
public ChannelHandler getHandler() {
if (handler instanceof ChannelHandlerDelegate) {
return ((ChannelHandlerDelegate) handler).getHandler();
} else {
return handler;
}
}
}
|
[
"[email protected]"
] | |
6ec700b3b259a7df23a38db3f60dc76a6eec72de
|
94129826b9a6423164a406dfda14c11f8cacb467
|
/cqrsdemo/src/main/java/com/codeience/cqrsdemo/config/AxonConfig.java
|
8099387869b5cb4787032fea2420d81f035d7f6f
|
[] |
no_license
|
mmathpal/cqrs
|
e372a83da44c4bc9e6b893b46d782ef028d74bf7
|
5d4e38b53d6c233fd72013f2e15fb1a0d1aa9d9a
|
refs/heads/main
| 2023-03-06T23:06:31.642049 | 2021-02-22T21:26:55 | 2021-02-22T21:26:55 | 341,341,859 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 687 |
java
|
package com.codeience.cqrsdemo.config;
import com.codeience.cqrsdemo.aggregates.AccountAggregate;
import org.axonframework.eventsourcing.EventSourcingRepository;
import org.axonframework.eventsourcing.eventstore.EventStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AxonConfig {
@Bean
EventSourcingRepository<AccountAggregate> accountAggregateEventSourcingRepository(EventStore eventStore){
EventSourcingRepository<AccountAggregate> repository = EventSourcingRepository.builder(AccountAggregate.class).eventStore(eventStore).build();
return repository;
}
}
|
[
"[email protected]"
] | |
4280df172b1ea256efa2bfa3f1253eebc6b1132c
|
1cf16764dd251339042bce475b5e6db188d162c5
|
/xa-controller/src/main/java/com/xinnet/xa/controller/service/MonitorService.java
|
1f6d0c66e3d666399f74f500f336dbaacbbb21af
|
[] |
no_license
|
janck13/xinnet-analysis
|
d317d42dabb76e2b815376cf87477644f23fd533
|
227c1a152ed3719d0bf8964d39aaf6732353e17a
|
refs/heads/master
| 2020-05-23T15:43:28.024702 | 2015-12-10T10:08:28 | 2015-12-10T10:08:28 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 5,893 |
java
|
package com.xinnet.xa.controller.service;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.xinnet.xa.controller.common.ControllerConstant;
import com.xinnet.xa.controller.dao.CompExceptionMessageDao;
import com.xinnet.xa.controller.dao.CompMonitorDao;
import com.xinnet.xa.controller.dao.ComponentDao;
import com.xinnet.xa.controller.dao.RuleDao;
import com.xinnet.xa.controller.dao.TomcatMonitorDao;
import com.xinnet.xa.controller.model.CompExceptionMessage;
import com.xinnet.xa.controller.model.CompMonitor;
import com.xinnet.xa.controller.model.Component;
import com.xinnet.xa.controller.model.Rule;
import com.xinnet.xa.controller.model.TomcatMonitor;
import com.xinnet.xa.core.utils.DateUtil;
import com.xinnet.xa.core.utils.HttpClientUtil;
import com.xinnet.xa.core.utils.SendMailUtil;
import com.xinnet.xa.core.utils.Utils;
import com.xinnet.xa.core.vo.CompMonitorData;
import com.xinnet.xa.core.vo.MailParams;
import com.xinnet.xa.core.vo.TomcatMonitorData;
@Service
public class MonitorService implements InitializingBean{
private Logger logger = Logger.getLogger(MonitorService.class);
@Autowired
private ComponentDao componentDao;
@Autowired
private RuleDao ruleDao;
@Autowired
private SendMailUtil sendMailUtil;
@Autowired
private TomcatMonitorDao tomcatMonitorDao;
@Autowired
private CompMonitorDao compMonitorDao;
@Autowired
private CompExceptionMessageDao compExceptionMessageDao;
public void startMonitor() {
new MonitorTomcatThread().start();
}
public void sendMonitorUrl(Component component, String subUrl) {
String url = component.createCompUrl() + subUrl;
String result = "";
try {
result = HttpClientUtil.get(url, "utf-8", null);
logger.info(result);
analyResult(result, component, subUrl);
} catch (Exception e) {
logger.error(e.getMessage(), e);
setCompErrorState(component);
sendErrorMessageMail(component.getId().getIp(), component.getId()
.getPort(), component.getType(), e.getMessage(),
Utils.getExceptionStacks(e));
}
}
public void analyResult(String result, Component component, String subUrl)
throws IllegalAccessException, InvocationTargetException {
if (StringUtils.isNotBlank(result)) {
if (subUrl.equals(ControllerConstant.MONITOR_TOMCAT_URL)) {
analyTomcatResult(result, component);
}
if (subUrl.equals(ControllerConstant.MONITOR_COMP_URL)) {
analyCompResult(result, component);
}
}
}
public void analyTomcatResult(String result, Component component)
throws IllegalAccessException, InvocationTargetException {
TomcatMonitorData data = JSON.parseObject(result,
TomcatMonitorData.class);
TomcatMonitor tomcatMonitor = new TomcatMonitor();
BeanUtils.copyProperties(tomcatMonitor, data);
tomcatMonitor.setIp(component.getId().getIp());
tomcatMonitor.setPort(component.getId().getPort());
tomcatMonitorDao.save(tomcatMonitor);
}
public void analyCompResult(String result, Component component)
throws IllegalAccessException, InvocationTargetException {
CompMonitorData data = JSON.parseObject(result, CompMonitorData.class);
CompMonitor cm = new CompMonitor();
BeanUtils.copyProperties(cm, data);
cm.setIp(component.getId().getIp());
cm.setPort(component.getId().getPort());
compMonitorDao.save(cm);
}
public void setCompErrorState(Component component) {
component.setState(ControllerConstant.ComponentState.ERROR.getValue());
componentDao.save(component);
}
public void saveErrorMessage(String ip, int port, String compType,
String message, String stacks) {
CompExceptionMessage compExceptionMessage = new CompExceptionMessage();
compExceptionMessage.setIp(ip);
compExceptionMessage.setPort(port);
compExceptionMessage.setCompType(compType);
compExceptionMessage.setMessage(message);
compExceptionMessageDao.save(compExceptionMessage);
sendErrorMessageMail(ip, port, compType, message, stacks);
}
public void sendErrorMessageMail(String ip, int port, String compType,
String message, String stacks) {
MailParams mailParams = new MailParams();
mailParams.setSubject(ControllerConstant.MAIL_ERROR_SUBJECT);
Map<String, String> params = new HashMap<String, String>();
params.put("ip", ip);
params.put("port", String.valueOf(port));
params.put("type", compType);
params.put("errorMessage", message);
params.put("errorStack", stacks);
String text = sendMailUtil.getHtmlTextFromFreeMarker("errorMail.ftl",
params);
mailParams.setBody(text);
mailParams.setHtml(true);
mailParams.setTo(ControllerConstant.MAIL_TO);
try {
sendMailUtil.sendMail(mailParams);
} catch (Exception t) {
logger.error(t.getMessage(), t);
}
}
class MonitorTomcatThread extends Thread {
@Override
public void run() {
while (true) {
monitor();
}
}
private void monitor() {
Rule monitorRule = ruleDao.getRuleByName("monitorTime");
int time = Integer.valueOf(monitorRule.getRuleValue());
try {
Thread.sleep(time * DateUtil.MILLIS_PER_MINUTE);
} catch (InterruptedException e) {
logger.error(e.getMessage(), e);
}
List<Component> components = componentDao
.getComponentsByState(ControllerConstant.ComponentState.NORMAL
.getValue());
for (Component component : components) {
sendMonitorUrl(component, ControllerConstant.MONITOR_TOMCAT_URL);
sendMonitorUrl(component, ControllerConstant.MONITOR_COMP_URL);
}
}
}
@Override
public void afterPropertiesSet() throws Exception {
startMonitor();
}
}
|
[
"[email protected]"
] | |
c56df9d8f2c1d484d8135fd163aceb10fc603083
|
391256db33014b7143a2f52b5760fdfb5ed4ee3e
|
/src/java/data_profile.java
|
ff4b94eb22e1675c4abf44f344e814ed48613247
|
[] |
no_license
|
ht1625/java_note_webpage
|
8bc708c42bdbeec82350103a1f3c0c8d3befa054
|
23b36264591c4e12a7e5a68e16c01b91e4a92093
|
refs/heads/master
| 2023-07-05T00:27:18.991989 | 2021-08-29T19:09:59 | 2021-08-29T19:09:59 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,058 |
java
|
public class data_profile {
public data_profile() {
}
private String phonenumber;
private String birthday;
private String email;
private String username;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public data_profile( String username, String phonenumber, String birthday, String email) {
this.username=username;
this.phonenumber = phonenumber;
this.birthday = birthday;
this.email = email;
}
public String getPhonenumber() {
return phonenumber;
}
public void setPhonenumber(String phonenumber) {
this.phonenumber = phonenumber;
}
public String getBirthday() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}
|
[
"[email protected]"
] | |
82b794ce1207bd89800dbe9a6b042f96b7e7b5eb
|
fded741b39bc34584364d86811774d8a8357a479
|
/src/main/java/cn/lhfei/hadoop/mean/standarddeviation/StandardDeviationMapper.java
|
a266e0f78fb4b353b2eb3ec9a4a9e55cf50dc986
|
[
"Apache-2.0"
] |
permissive
|
lhfei/hadoop-in-action
|
7ed4ca2a14474213d7808e2ec555f17ccc553690
|
014cb2dec559a124e17f5a73f5ef3a8a553319ce
|
refs/heads/master
| 2021-01-18T22:58:49.314926 | 2018-03-16T01:17:33 | 2018-03-16T01:17:33 | 25,499,217 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,931 |
java
|
/*
* Copyright 2010-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.lhfei.hadoop.mean.standarddeviation;
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @version 0.1
*
* @author Hefei Li
*
* @since Jan 21, 2016
*/
public class StandardDeviationMapper extends Mapper<LongWritable, Text, LongWritable, Text> {
private static final Logger log = LoggerFactory.getLogger(StandardDeviationMapper.class);
@Override
protected void map(LongWritable key, Text value, Mapper<LongWritable, Text, LongWritable, Text>.Context context)
throws IOException, InterruptedException {
String result = "";
Configuration conf = context.getConfiguration();
NumberFormat formatter = new DecimalFormat(StandardMeanConstant.STANDARD_MEAN_FORMATER);
Double mean = Double.parseDouble(conf.get(StandardMeanConstant.STANDARD_MEAN_NAME));
Double radix = Double.parseDouble(value.toString());
result += "\t" +formatter.format(radix);
result += "\t" +formatter.format(radix - mean);
log.info("Key = {}, value = {}", key, value);
context.write(key, new Text(result));
}
}
|
[
"[email protected]"
] | |
3dc49548ce2f2c04f1f7ad97f6005a1d1c0d4897
|
8d51256d9752e1c11fa5f37d66b28392d62b0931
|
/chapter01/DooBee.java
|
d2a854e6330be3ad746afe4521377e2272668bc4
|
[] |
no_license
|
marcenzo/headfirstjava
|
5beb683c11d0632efcf641e819997b90e3288110
|
511be586a3271b73c4f9c660f3caebbe27b77823
|
refs/heads/master
| 2021-01-24T02:53:02.823481 | 2018-02-25T19:23:19 | 2018-02-25T19:23:19 | 122,865,144 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 272 |
java
|
package br.com.headfirstjava.chapter01;
public class DooBee
{
public static void main(String[] args)
{
int x = 1;
while(x < 3)
{
System.out.print("Doo");
System.out.print("Bee");
x = x + 1;
}
if (x == 3)
{
System.out.print("Do");
}
}
}
|
[
"[email protected]"
] | |
2292dc13185162f8b3567600627d50a751d8b306
|
2a96a93897105259fc3177c1fc2c834df22a9329
|
/furnitureshop-backend/src/main/java/service/impl/RoleServiceImpl.java
|
e241b7b22df3520965d1a06808a6244c91d808f6
|
[] |
no_license
|
AliakseiShvants/Furniture_Shop
|
634b641ccf790337e6b8cc2f08f6fb1fec39ba82
|
724cd05f8c83aae2aa8aa0f88b0299dc51653f02
|
refs/heads/master
| 2020-03-07T22:06:17.373331 | 2018-11-24T18:33:52 | 2018-11-24T18:33:52 | 127,744,998 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 732 |
java
|
package service.impl;
import entity.user.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import repo.user.RoleRepo;
import service.user.RoleService;
import java.util.List;
/**
* A implementation of {@link RoleService} interface
*/
@Service
public class RoleServiceImpl implements RoleService {
@Autowired
private RoleRepo roleRepo;
@Override
public Role findRoleByTitle(String title) {
return roleRepo.findRoleByTitle(title);
}
@Override
public List<Role> findAllRoles() {
return roleRepo.findAll();
}
@Override
public Role getRoleById(Long id) {
return roleRepo.findById(id).get();
}
}
|
[
"[email protected]"
] | |
cc4babab343920d9b163e7529d6a73735290a081
|
969cc3e499089eafc2503ecba638673625d8f98d
|
/1.7.10/1/AM2-1.7.10-FakePlayers-1.4.0.009/sources/src/main/java/am2/spell/components/Light.java
|
fbb5375774986c67d215d4dd11f5e407eaa80e42
|
[] |
no_license
|
will-git-eng/FixedMods
|
d33895820eb48caabbbc4dbfd82a47ea409df603
|
ffbea738863505cf74bccac3f02ab62cd894d99f
|
refs/heads/master
| 2020-06-06T10:52:12.121044 | 2019-06-19T15:08:59 | 2019-06-19T15:08:59 | 192,719,248 | 0 | 1 | null | null | null | null |
UTF-8
|
Java
| false | false | 6,472 |
java
|
package am2.spell.components;
import java.util.EnumSet;
import java.util.Random;
import ru.will.git.am2.ModUtils;
import ru.will.git.reflectionmedic.util.EventUtils;
import am2.AMCore;
import am2.RitualShapeHelper;
import am2.api.blocks.MultiblockStructureDefinition;
import am2.api.power.IPowerNode;
import am2.api.spell.component.interfaces.IRitualInteraction;
import am2.api.spell.component.interfaces.ISpellComponent;
import am2.api.spell.component.interfaces.ISpellModifier;
import am2.api.spell.enums.Affinity;
import am2.api.spell.enums.SpellModifiers;
import am2.blocks.BlocksCommonProxy;
import am2.buffs.BuffEffectIllumination;
import am2.items.ItemOre;
import am2.items.ItemRune;
import am2.items.ItemsCommonProxy;
import am2.particles.AMParticle;
import am2.power.PowerNodeRegistry;
import am2.spell.SpellUtils;
import am2.spell.modifiers.Colour;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemDye;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class Light implements ISpellComponent, IRitualInteraction
{
@Override
public boolean applyEffectBlock(ItemStack stack, World world, int x, int y, int z, int face, double impactX, double impactY, double impactZ, EntityLivingBase caster)
{
if (world.getBlock(x, y, z) == BlocksCommonProxy.obelisk)
{
ItemStack[] reagents = RitualShapeHelper.instance.checkForRitual(this, world, x, y, z);
if (reagents != null)
{
EntityPlayer player = caster instanceof EntityPlayer ? (EntityPlayer) caster : ModUtils.getModFake(world);
if (EventUtils.cantBreak(player, x, y, z))
return false;
if (!world.isRemote)
{
RitualShapeHelper.instance.consumeRitualReagents(this, world, x, y, z);
RitualShapeHelper.instance.consumeRitualShape(this, world, x, y, z);
world.setBlock(x, y, z, BlocksCommonProxy.celestialPrism);
PowerNodeRegistry.For(world).registerPowerNode((IPowerNode) world.getTileEntity(x, y, z));
}
return true;
}
}
if (world.getBlock(x, y, z) == Blocks.air)
face = -1;
if (face != -1)
switch (face)
{
case 0:
--y;
break;
case 1:
++y;
break;
case 2:
--z;
break;
case 3:
++z;
break;
case 4:
--x;
break;
case 5:
++x;
}
if (world.getBlock(x, y, z) != Blocks.air)
return false;
else
{
EntityPlayer player = caster instanceof EntityPlayer ? (EntityPlayer) caster : ModUtils.getModFake(world);
if (EventUtils.cantBreak(player, x, y, z))
return false;
if (!world.isRemote)
world.setBlock(x, y, z, BlocksCommonProxy.blockMageTorch, this.getColorMeta(stack), 2);
return true;
}
}
private int getColorMeta(ItemStack spell)
{
int meta = 15;
int color = 16777215;
if (SpellUtils.instance.modifierIsPresent(SpellModifiers.COLOR, spell, 0))
{
ISpellModifier[] mods = SpellUtils.instance.getModifiersForStage(spell, 0);
int ordinalCount = 0;
for (ISpellModifier mod : mods)
if (mod instanceof Colour)
{
byte[] data = SpellUtils.instance.getModifierMetadataFromStack(spell, mod, 0, ordinalCount++);
color = (int) mod.getModifier(SpellModifiers.COLOR, (EntityLivingBase) null, (Entity) null, (World) null, data);
}
}
for (int i = 0; i < 16; ++i)
{
ItemDye var10000 = (ItemDye) Items.dye;
if (ItemDye.field_150922_c[i] == color)
{
meta = i;
break;
}
}
return meta;
}
@Override
public boolean applyEffectEntity(ItemStack stack, World world, EntityLivingBase caster, Entity target)
{
if (target instanceof EntityLivingBase)
{
if (target.isDead || EventUtils.cantDamage(caster, target))
return false;
int duration = SpellUtils.instance.getModifiedInt_Mul(600, stack, caster, target, world, 0, SpellModifiers.DURATION);
duration = SpellUtils.instance.modifyDurationBasedOnArmor(caster, duration);
if (!world.isRemote)
((EntityLivingBase) target).addPotionEffect(new BuffEffectIllumination(duration, SpellUtils.instance.countModifiers(SpellModifiers.BUFF_POWER, stack, 0)));
return true;
}
else
return false;
}
@Override
public float manaCost(EntityLivingBase caster)
{
return 50.0F;
}
@Override
public float burnout(EntityLivingBase caster)
{
return 10.0F;
}
@Override
public ItemStack[] reagents(EntityLivingBase caster)
{
return null;
}
@Override
public void spawnParticles(World world, double x, double y, double z, EntityLivingBase caster, Entity target, Random rand, int colorModifier)
{
for (int i = 0; i < 5; ++i)
{
AMParticle particle = (AMParticle) AMCore.proxy.particleManager.spawn(world, "sparkle2", x, y, z);
if (particle != null)
{
particle.addRandomOffset(1.0D, 0.5D, 1.0D);
particle.addVelocity(rand.nextDouble() * 0.2D - 0.1D, rand.nextDouble() * 0.2D, rand.nextDouble() * 0.2D - 0.1D);
particle.setAffectedByGravity();
particle.setDontRequireControllers();
particle.setMaxAge(5);
particle.setParticleScale(0.1F);
particle.setRGBColorF(0.6F, 0.2F, 0.8F);
if (colorModifier > -1)
particle.setRGBColorF((colorModifier >> 16 & 255) / 255.0F, (colorModifier >> 8 & 255) / 255.0F, (colorModifier & 255) / 255.0F);
}
}
}
@Override
public EnumSet<Affinity> getAffinity()
{
return EnumSet.of(Affinity.NONE);
}
@Override
public int getID()
{
return 33;
}
@Override
public Object[] getRecipeItems()
{
Object[] var10000 = new Object[4];
ItemRune var10007 = ItemsCommonProxy.rune;
var10000[0] = new ItemStack(ItemsCommonProxy.rune, 1, 15);
var10000[1] = BlocksCommonProxy.cerublossom;
var10000[2] = Blocks.torch;
var10000[3] = BlocksCommonProxy.vinteumTorch;
return var10000;
}
@Override
public float getAffinityShift(Affinity affinity)
{
return 0.01F;
}
@Override
public MultiblockStructureDefinition getRitualShape()
{
return RitualShapeHelper.instance.purification;
}
@Override
public ItemStack[] getReagents()
{
ItemStack[] var10000 = new ItemStack[2];
ItemOre var10007 = ItemsCommonProxy.itemOre;
var10000[0] = new ItemStack(ItemsCommonProxy.itemOre, 1, 7);
var10000[1] = new ItemStack(ItemsCommonProxy.manaFocus);
return var10000;
}
@Override
public int getReagentSearchRadius()
{
return 3;
}
}
|
[
"[email protected]"
] | |
a132ad2e3f5bb1aa00e093840710e13e5f5263a5
|
6bfd152459f39476a5b1fe7c0b190365e57bbdc0
|
/src/main/java/de/algorythm/jddb/ui/jfx/taskQueue/FXTransactionTask.java
|
9fe803f913850bd3893381dfa775db7f89db334c
|
[] |
no_license
|
mgoltzsche/jddb
|
f62af7b5b8fea0b917a4b64f2734d0ed613d8f1c
|
316f0491f8790052a05e3ea0d691c4e039ac132f
|
refs/heads/master
| 2020-04-08T05:39:40.409061 | 2018-11-25T22:28:53 | 2018-11-25T22:34:21 | 159,068,876 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,687 |
java
|
package de.algorythm.jddb.ui.jfx.taskQueue;
import javafx.application.Platform;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure0;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import de.algorythm.jddb.model.dao.IDAOTransactionContext;
import de.algorythm.jddb.ui.jfx.model.FXEntity;
import de.algorythm.jddb.ui.jfx.model.FXEntityReference;
import de.algorythm.jddb.ui.jfx.model.propertyValue.IFXPropertyValue;
public class FXTransactionTask {
private final FXEntity entity;
private Procedure1<IDAOTransactionContext<FXEntity,IFXPropertyValue<?>,FXEntityReference>> task;
private Procedure0 onBefore;
private Procedure0 onSuccess;
private Procedure0 onFailed;
public FXTransactionTask(final FXEntity entity) {
this.entity = entity;
}
public FXEntity getEntity() {
return entity;
}
public void run(final IDAOTransactionContext<FXEntity,IFXPropertyValue<?>,FXEntityReference> tx) {
task.apply(tx);
}
public void onBefore() {
onBefore.apply();
}
public void onSuccess() {
Platform.runLater(new Runnable() {
@Override
public void run() {
onSuccess.apply();
}
});
}
public void onFailed() {
Platform.runLater(new Runnable() {
@Override
public void run() {
onFailed.apply();
}
});
}
public void setTask(
final Procedure1<IDAOTransactionContext<FXEntity, IFXPropertyValue<?>, FXEntityReference>> task) {
this.task = task;
}
public void setOnBefore(final Procedure0 onBefore) {
this.onBefore = onBefore;
}
public void setOnSuccess(final Procedure0 onSuccess) {
this.onSuccess = onSuccess;
}
public void setOnFailed(final Procedure0 onFailed) {
this.onFailed = onFailed;
}
}
|
[
"[email protected]"
] | |
976c645386907099d4e4d088f9dff459352fb692
|
6cbbdc9bfd93b4313bc0921fc7695c562454fc93
|
/Auxiliary/RainTicker.java
|
c3bbdeb66979f8038ce3c8acb38c9f3d12c48847
|
[] |
no_license
|
Graagh/DragonAPI
|
3e3e5eb346c9afd5b2aa277f985727bf75096e2f
|
696f7ff7953578a0d517308327c9f61ea7c245bf
|
refs/heads/master
| 2021-01-01T17:25:02.117007 | 2017-07-18T01:33:00 | 2017-07-18T01:33:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,569 |
java
|
/*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2016
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************************************/
package Reika.DragonAPI.Auxiliary;
import java.util.EnumSet;
import java.util.Random;
import java.util.Set;
import net.minecraft.block.Block;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.storage.ExtendedBlockStorage;
import Reika.DragonAPI.Auxiliary.Trackers.TickRegistry.TickHandler;
import Reika.DragonAPI.Auxiliary.Trackers.TickRegistry.TickType;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
public class RainTicker implements TickHandler {
private int updateLCG = new Random().nextInt();
private static final int TICKS_PER_CHUNK = 2; // base vanilla is 3
public static final RainTicker instance = new RainTicker();
private RainTicker() {
}
@Override
public void tick(TickType type, Object... tickData) {
World world = (World)tickData[0];
if (world.isRaining()) {
for (ChunkCoordIntPair c : ((Set<ChunkCoordIntPair>)world.activeChunkSet)) {
Chunk chunk = world.getChunkFromChunkCoords(c.chunkXPos, c.chunkZPos);
int cx = c.chunkXPos << 4;
int cz = c.chunkZPos << 4;
ExtendedBlockStorage[] ext = chunk.getBlockStorageArray();
for (int idx = 0; idx < ext.length; ++idx) {
ExtendedBlockStorage extb = ext[idx];
if (extb != null && extb.getNeedsRandomTick()) {
int cy = extb.getYLocation();
for (int n = 0; n < TICKS_PER_CHUNK; n++) {
updateLCG = updateLCG * 3 + 1013904223;
int pos = updateLCG >> 2;
int dx = pos & 15;
int dz = pos >> 8 & 15;
BiomeGenBase b = world.getBiomeGenForCoords(dx, dz);
if (b.canSpawnLightningBolt()) {
int dy = pos >> 16 & 15;
if (world.canBlockSeeTheSky(dx, dy + 1, dz)) {
Block block = extb.getBlockByExtId(dx, dy, dz);
if (block.getTickRandomly()) {
block.updateTick(world, cx + dx, cy + dy, cz + dz, world.rand);
}
}
}
}
}
}
}
}
}
@Override
public EnumSet<TickType> getType() {
return EnumSet.of(TickType.WORLD);
}
@Override
public boolean canFire(Phase p) {
return p == Phase.START;
}
@Override
public String getLabel() {
return "Rain Tick";
}
}
|
[
"[email protected]"
] | |
48afcdc980d9011dd0c59cdcd725e1b80a561a7a
|
c0e6fc6a0c715c91a24cb598b79da276c4e39d22
|
/src/main/java/yandex/cloud/api/mdb/postgresql/v1/config/Host10.java
|
76ba772d0658e4608abc40682fea60df51c17a5a
|
[
"MIT"
] |
permissive
|
yandex-cloud/java-genproto
|
9bbffd1a6ae346562ddc7a69a6a2e0afb194a63c
|
2b28369a6af1e497200058446aef473bd95af846
|
refs/heads/master
| 2023-09-04T05:34:01.719629 | 2023-08-28T09:31:29 | 2023-08-28T09:31:29 | 206,794,093 | 2 | 3 | null | null | null | null |
UTF-8
|
Java
| false | true | 579,784 |
java
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/postgresql/v1/config/host10.proto
package yandex.cloud.api.mdb.postgresql.v1.config;
public final class Host10 {
private Host10() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PostgresqlHostConfig10OrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
* @return Whether the recoveryMinApplyDelay field is set.
*/
boolean hasRecoveryMinApplyDelay();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
* @return The recoveryMinApplyDelay.
*/
com.google.protobuf.Int64Value getRecoveryMinApplyDelay();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getRecoveryMinApplyDelayOrBuilder();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
* @return Whether the sharedBuffers field is set.
*/
boolean hasSharedBuffers();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
* @return The sharedBuffers.
*/
com.google.protobuf.Int64Value getSharedBuffers();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getSharedBuffersOrBuilder();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
* @return Whether the tempBuffers field is set.
*/
boolean hasTempBuffers();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
* @return The tempBuffers.
*/
com.google.protobuf.Int64Value getTempBuffers();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getTempBuffersOrBuilder();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
* @return Whether the workMem field is set.
*/
boolean hasWorkMem();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
* @return The workMem.
*/
com.google.protobuf.Int64Value getWorkMem();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getWorkMemOrBuilder();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
* @return Whether the replacementSortTuples field is set.
*/
boolean hasReplacementSortTuples();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
* @return The replacementSortTuples.
*/
com.google.protobuf.Int64Value getReplacementSortTuples();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getReplacementSortTuplesOrBuilder();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
* @return Whether the tempFileLimit field is set.
*/
boolean hasTempFileLimit();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
* @return The tempFileLimit.
*/
com.google.protobuf.Int64Value getTempFileLimit();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getTempFileLimitOrBuilder();
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
* @return Whether the backendFlushAfter field is set.
*/
boolean hasBackendFlushAfter();
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
* @return The backendFlushAfter.
*/
com.google.protobuf.Int64Value getBackendFlushAfter();
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getBackendFlushAfterOrBuilder();
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
* @return Whether the oldSnapshotThreshold field is set.
*/
boolean hasOldSnapshotThreshold();
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
* @return The oldSnapshotThreshold.
*/
com.google.protobuf.Int64Value getOldSnapshotThreshold();
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getOldSnapshotThresholdOrBuilder();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
* @return Whether the maxStandbyStreamingDelay field is set.
*/
boolean hasMaxStandbyStreamingDelay();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
* @return The maxStandbyStreamingDelay.
*/
com.google.protobuf.Int64Value getMaxStandbyStreamingDelay();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getMaxStandbyStreamingDelayOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return The enum numeric value on the wire for constraintExclusion.
*/
int getConstraintExclusionValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return The constraintExclusion.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion getConstraintExclusion();
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
* @return Whether the cursorTupleFraction field is set.
*/
boolean hasCursorTupleFraction();
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
* @return The cursorTupleFraction.
*/
com.google.protobuf.DoubleValue getCursorTupleFraction();
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
com.google.protobuf.DoubleValueOrBuilder getCursorTupleFractionOrBuilder();
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return Whether the fromCollapseLimit field is set.
*/
boolean hasFromCollapseLimit();
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return The fromCollapseLimit.
*/
com.google.protobuf.Int64Value getFromCollapseLimit();
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getFromCollapseLimitOrBuilder();
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return Whether the joinCollapseLimit field is set.
*/
boolean hasJoinCollapseLimit();
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return The joinCollapseLimit.
*/
com.google.protobuf.Int64Value getJoinCollapseLimit();
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getJoinCollapseLimitOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return The enum numeric value on the wire for forceParallelMode.
*/
int getForceParallelModeValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return The forceParallelMode.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode getForceParallelMode();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return The enum numeric value on the wire for clientMinMessages.
*/
int getClientMinMessagesValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return The clientMinMessages.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getClientMinMessages();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return The enum numeric value on the wire for logMinMessages.
*/
int getLogMinMessagesValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return The logMinMessages.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getLogMinMessages();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return The enum numeric value on the wire for logMinErrorStatement.
*/
int getLogMinErrorStatementValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return The logMinErrorStatement.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getLogMinErrorStatement();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
* @return Whether the logMinDurationStatement field is set.
*/
boolean hasLogMinDurationStatement();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
* @return The logMinDurationStatement.
*/
com.google.protobuf.Int64Value getLogMinDurationStatement();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getLogMinDurationStatementOrBuilder();
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
* @return Whether the logCheckpoints field is set.
*/
boolean hasLogCheckpoints();
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
* @return The logCheckpoints.
*/
com.google.protobuf.BoolValue getLogCheckpoints();
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
com.google.protobuf.BoolValueOrBuilder getLogCheckpointsOrBuilder();
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
* @return Whether the logConnections field is set.
*/
boolean hasLogConnections();
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
* @return The logConnections.
*/
com.google.protobuf.BoolValue getLogConnections();
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
com.google.protobuf.BoolValueOrBuilder getLogConnectionsOrBuilder();
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
* @return Whether the logDisconnections field is set.
*/
boolean hasLogDisconnections();
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
* @return The logDisconnections.
*/
com.google.protobuf.BoolValue getLogDisconnections();
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
com.google.protobuf.BoolValueOrBuilder getLogDisconnectionsOrBuilder();
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
* @return Whether the logDuration field is set.
*/
boolean hasLogDuration();
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
* @return The logDuration.
*/
com.google.protobuf.BoolValue getLogDuration();
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
com.google.protobuf.BoolValueOrBuilder getLogDurationOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return The enum numeric value on the wire for logErrorVerbosity.
*/
int getLogErrorVerbosityValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return The logErrorVerbosity.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity getLogErrorVerbosity();
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
* @return Whether the logLockWaits field is set.
*/
boolean hasLogLockWaits();
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
* @return The logLockWaits.
*/
com.google.protobuf.BoolValue getLogLockWaits();
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
com.google.protobuf.BoolValueOrBuilder getLogLockWaitsOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return The enum numeric value on the wire for logStatement.
*/
int getLogStatementValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return The logStatement.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement getLogStatement();
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
* @return Whether the logTempFiles field is set.
*/
boolean hasLogTempFiles();
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
* @return The logTempFiles.
*/
com.google.protobuf.Int64Value getLogTempFiles();
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getLogTempFilesOrBuilder();
/**
* <code>string search_path = 27;</code>
* @return The searchPath.
*/
java.lang.String getSearchPath();
/**
* <code>string search_path = 27;</code>
* @return The bytes for searchPath.
*/
com.google.protobuf.ByteString
getSearchPathBytes();
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
* @return Whether the rowSecurity field is set.
*/
boolean hasRowSecurity();
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
* @return The rowSecurity.
*/
com.google.protobuf.BoolValue getRowSecurity();
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
com.google.protobuf.BoolValueOrBuilder getRowSecurityOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return The enum numeric value on the wire for defaultTransactionIsolation.
*/
int getDefaultTransactionIsolationValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return The defaultTransactionIsolation.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation getDefaultTransactionIsolation();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
* @return Whether the statementTimeout field is set.
*/
boolean hasStatementTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
* @return The statementTimeout.
*/
com.google.protobuf.Int64Value getStatementTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getStatementTimeoutOrBuilder();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
* @return Whether the lockTimeout field is set.
*/
boolean hasLockTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
* @return The lockTimeout.
*/
com.google.protobuf.Int64Value getLockTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getLockTimeoutOrBuilder();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
* @return Whether the idleInTransactionSessionTimeout field is set.
*/
boolean hasIdleInTransactionSessionTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
* @return The idleInTransactionSessionTimeout.
*/
com.google.protobuf.Int64Value getIdleInTransactionSessionTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getIdleInTransactionSessionTimeoutOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return The enum numeric value on the wire for byteaOutput.
*/
int getByteaOutputValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return The byteaOutput.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput getByteaOutput();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return The enum numeric value on the wire for xmlbinary.
*/
int getXmlbinaryValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return The xmlbinary.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary getXmlbinary();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return The enum numeric value on the wire for xmloption.
*/
int getXmloptionValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return The xmloption.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption getXmloption();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
* @return Whether the ginPendingListLimit field is set.
*/
boolean hasGinPendingListLimit();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
* @return The ginPendingListLimit.
*/
com.google.protobuf.Int64Value getGinPendingListLimit();
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getGinPendingListLimitOrBuilder();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
* @return Whether the deadlockTimeout field is set.
*/
boolean hasDeadlockTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
* @return The deadlockTimeout.
*/
com.google.protobuf.Int64Value getDeadlockTimeout();
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getDeadlockTimeoutOrBuilder();
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
* @return Whether the maxLocksPerTransaction field is set.
*/
boolean hasMaxLocksPerTransaction();
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
* @return The maxLocksPerTransaction.
*/
com.google.protobuf.Int64Value getMaxLocksPerTransaction();
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getMaxLocksPerTransactionOrBuilder();
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
* @return Whether the maxPredLocksPerTransaction field is set.
*/
boolean hasMaxPredLocksPerTransaction();
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
* @return The maxPredLocksPerTransaction.
*/
com.google.protobuf.Int64Value getMaxPredLocksPerTransaction();
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
com.google.protobuf.Int64ValueOrBuilder getMaxPredLocksPerTransactionOrBuilder();
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
* @return Whether the arrayNulls field is set.
*/
boolean hasArrayNulls();
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
* @return The arrayNulls.
*/
com.google.protobuf.BoolValue getArrayNulls();
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
com.google.protobuf.BoolValueOrBuilder getArrayNullsOrBuilder();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return The enum numeric value on the wire for backslashQuote.
*/
int getBackslashQuoteValue();
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return The backslashQuote.
*/
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote getBackslashQuote();
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
* @return Whether the defaultWithOids field is set.
*/
boolean hasDefaultWithOids();
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
* @return The defaultWithOids.
*/
com.google.protobuf.BoolValue getDefaultWithOids();
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
com.google.protobuf.BoolValueOrBuilder getDefaultWithOidsOrBuilder();
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
* @return Whether the escapeStringWarning field is set.
*/
boolean hasEscapeStringWarning();
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
* @return The escapeStringWarning.
*/
com.google.protobuf.BoolValue getEscapeStringWarning();
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEscapeStringWarningOrBuilder();
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
* @return Whether the loCompatPrivileges field is set.
*/
boolean hasLoCompatPrivileges();
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
* @return The loCompatPrivileges.
*/
com.google.protobuf.BoolValue getLoCompatPrivileges();
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
com.google.protobuf.BoolValueOrBuilder getLoCompatPrivilegesOrBuilder();
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
* @return Whether the operatorPrecedenceWarning field is set.
*/
boolean hasOperatorPrecedenceWarning();
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
* @return The operatorPrecedenceWarning.
*/
com.google.protobuf.BoolValue getOperatorPrecedenceWarning();
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
com.google.protobuf.BoolValueOrBuilder getOperatorPrecedenceWarningOrBuilder();
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
* @return Whether the quoteAllIdentifiers field is set.
*/
boolean hasQuoteAllIdentifiers();
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
* @return The quoteAllIdentifiers.
*/
com.google.protobuf.BoolValue getQuoteAllIdentifiers();
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
com.google.protobuf.BoolValueOrBuilder getQuoteAllIdentifiersOrBuilder();
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
* @return Whether the standardConformingStrings field is set.
*/
boolean hasStandardConformingStrings();
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
* @return The standardConformingStrings.
*/
com.google.protobuf.BoolValue getStandardConformingStrings();
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
com.google.protobuf.BoolValueOrBuilder getStandardConformingStringsOrBuilder();
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
* @return Whether the synchronizeSeqscans field is set.
*/
boolean hasSynchronizeSeqscans();
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
* @return The synchronizeSeqscans.
*/
com.google.protobuf.BoolValue getSynchronizeSeqscans();
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
com.google.protobuf.BoolValueOrBuilder getSynchronizeSeqscansOrBuilder();
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
* @return Whether the transformNullEquals field is set.
*/
boolean hasTransformNullEquals();
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
* @return The transformNullEquals.
*/
com.google.protobuf.BoolValue getTransformNullEquals();
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
com.google.protobuf.BoolValueOrBuilder getTransformNullEqualsOrBuilder();
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
* @return Whether the exitOnError field is set.
*/
boolean hasExitOnError();
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
* @return The exitOnError.
*/
com.google.protobuf.BoolValue getExitOnError();
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
com.google.protobuf.BoolValueOrBuilder getExitOnErrorOrBuilder();
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
* @return Whether the seqPageCost field is set.
*/
boolean hasSeqPageCost();
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
* @return The seqPageCost.
*/
com.google.protobuf.DoubleValue getSeqPageCost();
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
com.google.protobuf.DoubleValueOrBuilder getSeqPageCostOrBuilder();
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
* @return Whether the randomPageCost field is set.
*/
boolean hasRandomPageCost();
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
* @return The randomPageCost.
*/
com.google.protobuf.DoubleValue getRandomPageCost();
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
com.google.protobuf.DoubleValueOrBuilder getRandomPageCostOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
* @return Whether the enableBitmapscan field is set.
*/
boolean hasEnableBitmapscan();
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
* @return The enableBitmapscan.
*/
com.google.protobuf.BoolValue getEnableBitmapscan();
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableBitmapscanOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
* @return Whether the enableHashagg field is set.
*/
boolean hasEnableHashagg();
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
* @return The enableHashagg.
*/
com.google.protobuf.BoolValue getEnableHashagg();
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableHashaggOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
* @return Whether the enableHashjoin field is set.
*/
boolean hasEnableHashjoin();
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
* @return The enableHashjoin.
*/
com.google.protobuf.BoolValue getEnableHashjoin();
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableHashjoinOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
* @return Whether the enableIndexscan field is set.
*/
boolean hasEnableIndexscan();
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
* @return The enableIndexscan.
*/
com.google.protobuf.BoolValue getEnableIndexscan();
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableIndexscanOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
* @return Whether the enableIndexonlyscan field is set.
*/
boolean hasEnableIndexonlyscan();
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
* @return The enableIndexonlyscan.
*/
com.google.protobuf.BoolValue getEnableIndexonlyscan();
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableIndexonlyscanOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
* @return Whether the enableMaterial field is set.
*/
boolean hasEnableMaterial();
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
* @return The enableMaterial.
*/
com.google.protobuf.BoolValue getEnableMaterial();
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableMaterialOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
* @return Whether the enableMergejoin field is set.
*/
boolean hasEnableMergejoin();
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
* @return The enableMergejoin.
*/
com.google.protobuf.BoolValue getEnableMergejoin();
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableMergejoinOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
* @return Whether the enableNestloop field is set.
*/
boolean hasEnableNestloop();
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
* @return The enableNestloop.
*/
com.google.protobuf.BoolValue getEnableNestloop();
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableNestloopOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
* @return Whether the enableSeqscan field is set.
*/
boolean hasEnableSeqscan();
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
* @return The enableSeqscan.
*/
com.google.protobuf.BoolValue getEnableSeqscan();
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableSeqscanOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
* @return Whether the enableSort field is set.
*/
boolean hasEnableSort();
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
* @return The enableSort.
*/
com.google.protobuf.BoolValue getEnableSort();
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableSortOrBuilder();
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
* @return Whether the enableTidscan field is set.
*/
boolean hasEnableTidscan();
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
* @return The enableTidscan.
*/
com.google.protobuf.BoolValue getEnableTidscan();
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
com.google.protobuf.BoolValueOrBuilder getEnableTidscanOrBuilder();
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
* @return Whether the maxParallelWorkers field is set.
*/
boolean hasMaxParallelWorkers();
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
* @return The maxParallelWorkers.
*/
com.google.protobuf.Int64Value getMaxParallelWorkers();
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getMaxParallelWorkersOrBuilder();
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
* @return Whether the maxParallelWorkersPerGather field is set.
*/
boolean hasMaxParallelWorkersPerGather();
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
* @return The maxParallelWorkersPerGather.
*/
com.google.protobuf.Int64Value getMaxParallelWorkersPerGather();
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getMaxParallelWorkersPerGatherOrBuilder();
/**
* <code>string timezone = 67;</code>
* @return The timezone.
*/
java.lang.String getTimezone();
/**
* <code>string timezone = 67;</code>
* @return The bytes for timezone.
*/
com.google.protobuf.ByteString
getTimezoneBytes();
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
* @return Whether the effectiveIoConcurrency field is set.
*/
boolean hasEffectiveIoConcurrency();
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
* @return The effectiveIoConcurrency.
*/
com.google.protobuf.Int64Value getEffectiveIoConcurrency();
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getEffectiveIoConcurrencyOrBuilder();
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
* @return Whether the effectiveCacheSize field is set.
*/
boolean hasEffectiveCacheSize();
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
* @return The effectiveCacheSize.
*/
com.google.protobuf.Int64Value getEffectiveCacheSize();
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
com.google.protobuf.Int64ValueOrBuilder getEffectiveCacheSizeOrBuilder();
}
/**
* <pre>
* Options and structure of `PostgresqlHostConfig` reflects PostgreSQL configuration file
* parameters whose detailed description is available in
* [PostgreSQL documentation](https://www.postgresql.org/docs/10/runtime-config.html).
* </pre>
*
* Protobuf type {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10}
*/
public static final class PostgresqlHostConfig10 extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10)
PostgresqlHostConfig10OrBuilder {
private static final long serialVersionUID = 0L;
// Use PostgresqlHostConfig10.newBuilder() to construct.
private PostgresqlHostConfig10(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PostgresqlHostConfig10() {
constraintExclusion_ = 0;
forceParallelMode_ = 0;
clientMinMessages_ = 0;
logMinMessages_ = 0;
logMinErrorStatement_ = 0;
logErrorVerbosity_ = 0;
logStatement_ = 0;
searchPath_ = "";
defaultTransactionIsolation_ = 0;
byteaOutput_ = 0;
xmlbinary_ = 0;
xmloption_ = 0;
backslashQuote_ = 0;
timezone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostgresqlHostConfig10();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostgresqlHostConfig10(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (recoveryMinApplyDelay_ != null) {
subBuilder = recoveryMinApplyDelay_.toBuilder();
}
recoveryMinApplyDelay_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(recoveryMinApplyDelay_);
recoveryMinApplyDelay_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (sharedBuffers_ != null) {
subBuilder = sharedBuffers_.toBuilder();
}
sharedBuffers_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sharedBuffers_);
sharedBuffers_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (tempBuffers_ != null) {
subBuilder = tempBuffers_.toBuilder();
}
tempBuffers_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tempBuffers_);
tempBuffers_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (workMem_ != null) {
subBuilder = workMem_.toBuilder();
}
workMem_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workMem_);
workMem_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (replacementSortTuples_ != null) {
subBuilder = replacementSortTuples_.toBuilder();
}
replacementSortTuples_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(replacementSortTuples_);
replacementSortTuples_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (tempFileLimit_ != null) {
subBuilder = tempFileLimit_.toBuilder();
}
tempFileLimit_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tempFileLimit_);
tempFileLimit_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (backendFlushAfter_ != null) {
subBuilder = backendFlushAfter_.toBuilder();
}
backendFlushAfter_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backendFlushAfter_);
backendFlushAfter_ = subBuilder.buildPartial();
}
break;
}
case 66: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (oldSnapshotThreshold_ != null) {
subBuilder = oldSnapshotThreshold_.toBuilder();
}
oldSnapshotThreshold_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(oldSnapshotThreshold_);
oldSnapshotThreshold_ = subBuilder.buildPartial();
}
break;
}
case 74: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxStandbyStreamingDelay_ != null) {
subBuilder = maxStandbyStreamingDelay_.toBuilder();
}
maxStandbyStreamingDelay_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxStandbyStreamingDelay_);
maxStandbyStreamingDelay_ = subBuilder.buildPartial();
}
break;
}
case 80: {
int rawValue = input.readEnum();
constraintExclusion_ = rawValue;
break;
}
case 90: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (cursorTupleFraction_ != null) {
subBuilder = cursorTupleFraction_.toBuilder();
}
cursorTupleFraction_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cursorTupleFraction_);
cursorTupleFraction_ = subBuilder.buildPartial();
}
break;
}
case 98: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (fromCollapseLimit_ != null) {
subBuilder = fromCollapseLimit_.toBuilder();
}
fromCollapseLimit_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fromCollapseLimit_);
fromCollapseLimit_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (joinCollapseLimit_ != null) {
subBuilder = joinCollapseLimit_.toBuilder();
}
joinCollapseLimit_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(joinCollapseLimit_);
joinCollapseLimit_ = subBuilder.buildPartial();
}
break;
}
case 112: {
int rawValue = input.readEnum();
forceParallelMode_ = rawValue;
break;
}
case 120: {
int rawValue = input.readEnum();
clientMinMessages_ = rawValue;
break;
}
case 128: {
int rawValue = input.readEnum();
logMinMessages_ = rawValue;
break;
}
case 136: {
int rawValue = input.readEnum();
logMinErrorStatement_ = rawValue;
break;
}
case 146: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (logMinDurationStatement_ != null) {
subBuilder = logMinDurationStatement_.toBuilder();
}
logMinDurationStatement_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logMinDurationStatement_);
logMinDurationStatement_ = subBuilder.buildPartial();
}
break;
}
case 154: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (logCheckpoints_ != null) {
subBuilder = logCheckpoints_.toBuilder();
}
logCheckpoints_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logCheckpoints_);
logCheckpoints_ = subBuilder.buildPartial();
}
break;
}
case 162: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (logConnections_ != null) {
subBuilder = logConnections_.toBuilder();
}
logConnections_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logConnections_);
logConnections_ = subBuilder.buildPartial();
}
break;
}
case 170: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (logDisconnections_ != null) {
subBuilder = logDisconnections_.toBuilder();
}
logDisconnections_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logDisconnections_);
logDisconnections_ = subBuilder.buildPartial();
}
break;
}
case 178: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (logDuration_ != null) {
subBuilder = logDuration_.toBuilder();
}
logDuration_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logDuration_);
logDuration_ = subBuilder.buildPartial();
}
break;
}
case 184: {
int rawValue = input.readEnum();
logErrorVerbosity_ = rawValue;
break;
}
case 194: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (logLockWaits_ != null) {
subBuilder = logLockWaits_.toBuilder();
}
logLockWaits_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logLockWaits_);
logLockWaits_ = subBuilder.buildPartial();
}
break;
}
case 200: {
int rawValue = input.readEnum();
logStatement_ = rawValue;
break;
}
case 210: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (logTempFiles_ != null) {
subBuilder = logTempFiles_.toBuilder();
}
logTempFiles_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logTempFiles_);
logTempFiles_ = subBuilder.buildPartial();
}
break;
}
case 218: {
java.lang.String s = input.readStringRequireUtf8();
searchPath_ = s;
break;
}
case 226: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (rowSecurity_ != null) {
subBuilder = rowSecurity_.toBuilder();
}
rowSecurity_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rowSecurity_);
rowSecurity_ = subBuilder.buildPartial();
}
break;
}
case 232: {
int rawValue = input.readEnum();
defaultTransactionIsolation_ = rawValue;
break;
}
case 242: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (statementTimeout_ != null) {
subBuilder = statementTimeout_.toBuilder();
}
statementTimeout_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(statementTimeout_);
statementTimeout_ = subBuilder.buildPartial();
}
break;
}
case 250: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (lockTimeout_ != null) {
subBuilder = lockTimeout_.toBuilder();
}
lockTimeout_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lockTimeout_);
lockTimeout_ = subBuilder.buildPartial();
}
break;
}
case 258: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (idleInTransactionSessionTimeout_ != null) {
subBuilder = idleInTransactionSessionTimeout_.toBuilder();
}
idleInTransactionSessionTimeout_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(idleInTransactionSessionTimeout_);
idleInTransactionSessionTimeout_ = subBuilder.buildPartial();
}
break;
}
case 264: {
int rawValue = input.readEnum();
byteaOutput_ = rawValue;
break;
}
case 272: {
int rawValue = input.readEnum();
xmlbinary_ = rawValue;
break;
}
case 280: {
int rawValue = input.readEnum();
xmloption_ = rawValue;
break;
}
case 290: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (ginPendingListLimit_ != null) {
subBuilder = ginPendingListLimit_.toBuilder();
}
ginPendingListLimit_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ginPendingListLimit_);
ginPendingListLimit_ = subBuilder.buildPartial();
}
break;
}
case 298: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (deadlockTimeout_ != null) {
subBuilder = deadlockTimeout_.toBuilder();
}
deadlockTimeout_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deadlockTimeout_);
deadlockTimeout_ = subBuilder.buildPartial();
}
break;
}
case 306: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxLocksPerTransaction_ != null) {
subBuilder = maxLocksPerTransaction_.toBuilder();
}
maxLocksPerTransaction_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxLocksPerTransaction_);
maxLocksPerTransaction_ = subBuilder.buildPartial();
}
break;
}
case 314: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxPredLocksPerTransaction_ != null) {
subBuilder = maxPredLocksPerTransaction_.toBuilder();
}
maxPredLocksPerTransaction_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxPredLocksPerTransaction_);
maxPredLocksPerTransaction_ = subBuilder.buildPartial();
}
break;
}
case 322: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (arrayNulls_ != null) {
subBuilder = arrayNulls_.toBuilder();
}
arrayNulls_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(arrayNulls_);
arrayNulls_ = subBuilder.buildPartial();
}
break;
}
case 328: {
int rawValue = input.readEnum();
backslashQuote_ = rawValue;
break;
}
case 338: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (defaultWithOids_ != null) {
subBuilder = defaultWithOids_.toBuilder();
}
defaultWithOids_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultWithOids_);
defaultWithOids_ = subBuilder.buildPartial();
}
break;
}
case 346: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (escapeStringWarning_ != null) {
subBuilder = escapeStringWarning_.toBuilder();
}
escapeStringWarning_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(escapeStringWarning_);
escapeStringWarning_ = subBuilder.buildPartial();
}
break;
}
case 354: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (loCompatPrivileges_ != null) {
subBuilder = loCompatPrivileges_.toBuilder();
}
loCompatPrivileges_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loCompatPrivileges_);
loCompatPrivileges_ = subBuilder.buildPartial();
}
break;
}
case 362: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (operatorPrecedenceWarning_ != null) {
subBuilder = operatorPrecedenceWarning_.toBuilder();
}
operatorPrecedenceWarning_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operatorPrecedenceWarning_);
operatorPrecedenceWarning_ = subBuilder.buildPartial();
}
break;
}
case 370: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (quoteAllIdentifiers_ != null) {
subBuilder = quoteAllIdentifiers_.toBuilder();
}
quoteAllIdentifiers_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(quoteAllIdentifiers_);
quoteAllIdentifiers_ = subBuilder.buildPartial();
}
break;
}
case 378: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (standardConformingStrings_ != null) {
subBuilder = standardConformingStrings_.toBuilder();
}
standardConformingStrings_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(standardConformingStrings_);
standardConformingStrings_ = subBuilder.buildPartial();
}
break;
}
case 386: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (synchronizeSeqscans_ != null) {
subBuilder = synchronizeSeqscans_.toBuilder();
}
synchronizeSeqscans_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(synchronizeSeqscans_);
synchronizeSeqscans_ = subBuilder.buildPartial();
}
break;
}
case 394: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (transformNullEquals_ != null) {
subBuilder = transformNullEquals_.toBuilder();
}
transformNullEquals_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transformNullEquals_);
transformNullEquals_ = subBuilder.buildPartial();
}
break;
}
case 402: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (exitOnError_ != null) {
subBuilder = exitOnError_.toBuilder();
}
exitOnError_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exitOnError_);
exitOnError_ = subBuilder.buildPartial();
}
break;
}
case 410: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (seqPageCost_ != null) {
subBuilder = seqPageCost_.toBuilder();
}
seqPageCost_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(seqPageCost_);
seqPageCost_ = subBuilder.buildPartial();
}
break;
}
case 418: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (randomPageCost_ != null) {
subBuilder = randomPageCost_.toBuilder();
}
randomPageCost_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(randomPageCost_);
randomPageCost_ = subBuilder.buildPartial();
}
break;
}
case 434: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableBitmapscan_ != null) {
subBuilder = enableBitmapscan_.toBuilder();
}
enableBitmapscan_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableBitmapscan_);
enableBitmapscan_ = subBuilder.buildPartial();
}
break;
}
case 442: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableHashagg_ != null) {
subBuilder = enableHashagg_.toBuilder();
}
enableHashagg_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableHashagg_);
enableHashagg_ = subBuilder.buildPartial();
}
break;
}
case 450: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableHashjoin_ != null) {
subBuilder = enableHashjoin_.toBuilder();
}
enableHashjoin_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableHashjoin_);
enableHashjoin_ = subBuilder.buildPartial();
}
break;
}
case 458: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableIndexscan_ != null) {
subBuilder = enableIndexscan_.toBuilder();
}
enableIndexscan_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableIndexscan_);
enableIndexscan_ = subBuilder.buildPartial();
}
break;
}
case 466: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableIndexonlyscan_ != null) {
subBuilder = enableIndexonlyscan_.toBuilder();
}
enableIndexonlyscan_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableIndexonlyscan_);
enableIndexonlyscan_ = subBuilder.buildPartial();
}
break;
}
case 474: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableMaterial_ != null) {
subBuilder = enableMaterial_.toBuilder();
}
enableMaterial_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableMaterial_);
enableMaterial_ = subBuilder.buildPartial();
}
break;
}
case 482: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableMergejoin_ != null) {
subBuilder = enableMergejoin_.toBuilder();
}
enableMergejoin_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableMergejoin_);
enableMergejoin_ = subBuilder.buildPartial();
}
break;
}
case 490: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableNestloop_ != null) {
subBuilder = enableNestloop_.toBuilder();
}
enableNestloop_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableNestloop_);
enableNestloop_ = subBuilder.buildPartial();
}
break;
}
case 498: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableSeqscan_ != null) {
subBuilder = enableSeqscan_.toBuilder();
}
enableSeqscan_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableSeqscan_);
enableSeqscan_ = subBuilder.buildPartial();
}
break;
}
case 506: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableSort_ != null) {
subBuilder = enableSort_.toBuilder();
}
enableSort_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableSort_);
enableSort_ = subBuilder.buildPartial();
}
break;
}
case 514: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableTidscan_ != null) {
subBuilder = enableTidscan_.toBuilder();
}
enableTidscan_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableTidscan_);
enableTidscan_ = subBuilder.buildPartial();
}
break;
}
case 522: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxParallelWorkers_ != null) {
subBuilder = maxParallelWorkers_.toBuilder();
}
maxParallelWorkers_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxParallelWorkers_);
maxParallelWorkers_ = subBuilder.buildPartial();
}
break;
}
case 530: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxParallelWorkersPerGather_ != null) {
subBuilder = maxParallelWorkersPerGather_.toBuilder();
}
maxParallelWorkersPerGather_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxParallelWorkersPerGather_);
maxParallelWorkersPerGather_ = subBuilder.buildPartial();
}
break;
}
case 538: {
java.lang.String s = input.readStringRequireUtf8();
timezone_ = s;
break;
}
case 546: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (effectiveIoConcurrency_ != null) {
subBuilder = effectiveIoConcurrency_.toBuilder();
}
effectiveIoConcurrency_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(effectiveIoConcurrency_);
effectiveIoConcurrency_ = subBuilder.buildPartial();
}
break;
}
case 554: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (effectiveCacheSize_ != null) {
subBuilder = effectiveCacheSize_.toBuilder();
}
effectiveCacheSize_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(effectiveCacheSize_);
effectiveCacheSize_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.class, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion}
*/
public enum ConstraintExclusion
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>CONSTRAINT_EXCLUSION_UNSPECIFIED = 0;</code>
*/
CONSTRAINT_EXCLUSION_UNSPECIFIED(0),
/**
* <code>CONSTRAINT_EXCLUSION_ON = 1;</code>
*/
CONSTRAINT_EXCLUSION_ON(1),
/**
* <code>CONSTRAINT_EXCLUSION_OFF = 2;</code>
*/
CONSTRAINT_EXCLUSION_OFF(2),
/**
* <code>CONSTRAINT_EXCLUSION_PARTITION = 3;</code>
*/
CONSTRAINT_EXCLUSION_PARTITION(3),
UNRECOGNIZED(-1),
;
/**
* <code>CONSTRAINT_EXCLUSION_UNSPECIFIED = 0;</code>
*/
public static final int CONSTRAINT_EXCLUSION_UNSPECIFIED_VALUE = 0;
/**
* <code>CONSTRAINT_EXCLUSION_ON = 1;</code>
*/
public static final int CONSTRAINT_EXCLUSION_ON_VALUE = 1;
/**
* <code>CONSTRAINT_EXCLUSION_OFF = 2;</code>
*/
public static final int CONSTRAINT_EXCLUSION_OFF_VALUE = 2;
/**
* <code>CONSTRAINT_EXCLUSION_PARTITION = 3;</code>
*/
public static final int CONSTRAINT_EXCLUSION_PARTITION_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConstraintExclusion valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConstraintExclusion forNumber(int value) {
switch (value) {
case 0: return CONSTRAINT_EXCLUSION_UNSPECIFIED;
case 1: return CONSTRAINT_EXCLUSION_ON;
case 2: return CONSTRAINT_EXCLUSION_OFF;
case 3: return CONSTRAINT_EXCLUSION_PARTITION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ConstraintExclusion>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConstraintExclusion> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ConstraintExclusion>() {
public ConstraintExclusion findValueByNumber(int number) {
return ConstraintExclusion.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(0);
}
private static final ConstraintExclusion[] VALUES = values();
public static ConstraintExclusion valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ConstraintExclusion(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode}
*/
public enum ForceParallelMode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>FORCE_PARALLEL_MODE_UNSPECIFIED = 0;</code>
*/
FORCE_PARALLEL_MODE_UNSPECIFIED(0),
/**
* <code>FORCE_PARALLEL_MODE_ON = 1;</code>
*/
FORCE_PARALLEL_MODE_ON(1),
/**
* <code>FORCE_PARALLEL_MODE_OFF = 2;</code>
*/
FORCE_PARALLEL_MODE_OFF(2),
/**
* <code>FORCE_PARALLEL_MODE_REGRESS = 3;</code>
*/
FORCE_PARALLEL_MODE_REGRESS(3),
UNRECOGNIZED(-1),
;
/**
* <code>FORCE_PARALLEL_MODE_UNSPECIFIED = 0;</code>
*/
public static final int FORCE_PARALLEL_MODE_UNSPECIFIED_VALUE = 0;
/**
* <code>FORCE_PARALLEL_MODE_ON = 1;</code>
*/
public static final int FORCE_PARALLEL_MODE_ON_VALUE = 1;
/**
* <code>FORCE_PARALLEL_MODE_OFF = 2;</code>
*/
public static final int FORCE_PARALLEL_MODE_OFF_VALUE = 2;
/**
* <code>FORCE_PARALLEL_MODE_REGRESS = 3;</code>
*/
public static final int FORCE_PARALLEL_MODE_REGRESS_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ForceParallelMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ForceParallelMode forNumber(int value) {
switch (value) {
case 0: return FORCE_PARALLEL_MODE_UNSPECIFIED;
case 1: return FORCE_PARALLEL_MODE_ON;
case 2: return FORCE_PARALLEL_MODE_OFF;
case 3: return FORCE_PARALLEL_MODE_REGRESS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ForceParallelMode>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ForceParallelMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ForceParallelMode>() {
public ForceParallelMode findValueByNumber(int number) {
return ForceParallelMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(1);
}
private static final ForceParallelMode[] VALUES = values();
public static ForceParallelMode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ForceParallelMode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel}
*/
public enum LogLevel
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>LOG_LEVEL_UNSPECIFIED = 0;</code>
*/
LOG_LEVEL_UNSPECIFIED(0),
/**
* <code>LOG_LEVEL_DEBUG5 = 1;</code>
*/
LOG_LEVEL_DEBUG5(1),
/**
* <code>LOG_LEVEL_DEBUG4 = 2;</code>
*/
LOG_LEVEL_DEBUG4(2),
/**
* <code>LOG_LEVEL_DEBUG3 = 3;</code>
*/
LOG_LEVEL_DEBUG3(3),
/**
* <code>LOG_LEVEL_DEBUG2 = 4;</code>
*/
LOG_LEVEL_DEBUG2(4),
/**
* <code>LOG_LEVEL_DEBUG1 = 5;</code>
*/
LOG_LEVEL_DEBUG1(5),
/**
* <code>LOG_LEVEL_LOG = 6;</code>
*/
LOG_LEVEL_LOG(6),
/**
* <code>LOG_LEVEL_NOTICE = 7;</code>
*/
LOG_LEVEL_NOTICE(7),
/**
* <code>LOG_LEVEL_WARNING = 8;</code>
*/
LOG_LEVEL_WARNING(8),
/**
* <code>LOG_LEVEL_ERROR = 9;</code>
*/
LOG_LEVEL_ERROR(9),
/**
* <code>LOG_LEVEL_FATAL = 10;</code>
*/
LOG_LEVEL_FATAL(10),
/**
* <code>LOG_LEVEL_PANIC = 11;</code>
*/
LOG_LEVEL_PANIC(11),
UNRECOGNIZED(-1),
;
/**
* <code>LOG_LEVEL_UNSPECIFIED = 0;</code>
*/
public static final int LOG_LEVEL_UNSPECIFIED_VALUE = 0;
/**
* <code>LOG_LEVEL_DEBUG5 = 1;</code>
*/
public static final int LOG_LEVEL_DEBUG5_VALUE = 1;
/**
* <code>LOG_LEVEL_DEBUG4 = 2;</code>
*/
public static final int LOG_LEVEL_DEBUG4_VALUE = 2;
/**
* <code>LOG_LEVEL_DEBUG3 = 3;</code>
*/
public static final int LOG_LEVEL_DEBUG3_VALUE = 3;
/**
* <code>LOG_LEVEL_DEBUG2 = 4;</code>
*/
public static final int LOG_LEVEL_DEBUG2_VALUE = 4;
/**
* <code>LOG_LEVEL_DEBUG1 = 5;</code>
*/
public static final int LOG_LEVEL_DEBUG1_VALUE = 5;
/**
* <code>LOG_LEVEL_LOG = 6;</code>
*/
public static final int LOG_LEVEL_LOG_VALUE = 6;
/**
* <code>LOG_LEVEL_NOTICE = 7;</code>
*/
public static final int LOG_LEVEL_NOTICE_VALUE = 7;
/**
* <code>LOG_LEVEL_WARNING = 8;</code>
*/
public static final int LOG_LEVEL_WARNING_VALUE = 8;
/**
* <code>LOG_LEVEL_ERROR = 9;</code>
*/
public static final int LOG_LEVEL_ERROR_VALUE = 9;
/**
* <code>LOG_LEVEL_FATAL = 10;</code>
*/
public static final int LOG_LEVEL_FATAL_VALUE = 10;
/**
* <code>LOG_LEVEL_PANIC = 11;</code>
*/
public static final int LOG_LEVEL_PANIC_VALUE = 11;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LogLevel valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static LogLevel forNumber(int value) {
switch (value) {
case 0: return LOG_LEVEL_UNSPECIFIED;
case 1: return LOG_LEVEL_DEBUG5;
case 2: return LOG_LEVEL_DEBUG4;
case 3: return LOG_LEVEL_DEBUG3;
case 4: return LOG_LEVEL_DEBUG2;
case 5: return LOG_LEVEL_DEBUG1;
case 6: return LOG_LEVEL_LOG;
case 7: return LOG_LEVEL_NOTICE;
case 8: return LOG_LEVEL_WARNING;
case 9: return LOG_LEVEL_ERROR;
case 10: return LOG_LEVEL_FATAL;
case 11: return LOG_LEVEL_PANIC;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<LogLevel>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogLevel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<LogLevel>() {
public LogLevel findValueByNumber(int number) {
return LogLevel.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(2);
}
private static final LogLevel[] VALUES = values();
public static LogLevel valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private LogLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity}
*/
public enum LogErrorVerbosity
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>LOG_ERROR_VERBOSITY_UNSPECIFIED = 0;</code>
*/
LOG_ERROR_VERBOSITY_UNSPECIFIED(0),
/**
* <code>LOG_ERROR_VERBOSITY_TERSE = 1;</code>
*/
LOG_ERROR_VERBOSITY_TERSE(1),
/**
* <code>LOG_ERROR_VERBOSITY_DEFAULT = 2;</code>
*/
LOG_ERROR_VERBOSITY_DEFAULT(2),
/**
* <code>LOG_ERROR_VERBOSITY_VERBOSE = 3;</code>
*/
LOG_ERROR_VERBOSITY_VERBOSE(3),
UNRECOGNIZED(-1),
;
/**
* <code>LOG_ERROR_VERBOSITY_UNSPECIFIED = 0;</code>
*/
public static final int LOG_ERROR_VERBOSITY_UNSPECIFIED_VALUE = 0;
/**
* <code>LOG_ERROR_VERBOSITY_TERSE = 1;</code>
*/
public static final int LOG_ERROR_VERBOSITY_TERSE_VALUE = 1;
/**
* <code>LOG_ERROR_VERBOSITY_DEFAULT = 2;</code>
*/
public static final int LOG_ERROR_VERBOSITY_DEFAULT_VALUE = 2;
/**
* <code>LOG_ERROR_VERBOSITY_VERBOSE = 3;</code>
*/
public static final int LOG_ERROR_VERBOSITY_VERBOSE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LogErrorVerbosity valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static LogErrorVerbosity forNumber(int value) {
switch (value) {
case 0: return LOG_ERROR_VERBOSITY_UNSPECIFIED;
case 1: return LOG_ERROR_VERBOSITY_TERSE;
case 2: return LOG_ERROR_VERBOSITY_DEFAULT;
case 3: return LOG_ERROR_VERBOSITY_VERBOSE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<LogErrorVerbosity>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogErrorVerbosity> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<LogErrorVerbosity>() {
public LogErrorVerbosity findValueByNumber(int number) {
return LogErrorVerbosity.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(3);
}
private static final LogErrorVerbosity[] VALUES = values();
public static LogErrorVerbosity valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private LogErrorVerbosity(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement}
*/
public enum LogStatement
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>LOG_STATEMENT_UNSPECIFIED = 0;</code>
*/
LOG_STATEMENT_UNSPECIFIED(0),
/**
* <code>LOG_STATEMENT_NONE = 1;</code>
*/
LOG_STATEMENT_NONE(1),
/**
* <code>LOG_STATEMENT_DDL = 2;</code>
*/
LOG_STATEMENT_DDL(2),
/**
* <code>LOG_STATEMENT_MOD = 3;</code>
*/
LOG_STATEMENT_MOD(3),
/**
* <code>LOG_STATEMENT_ALL = 4;</code>
*/
LOG_STATEMENT_ALL(4),
UNRECOGNIZED(-1),
;
/**
* <code>LOG_STATEMENT_UNSPECIFIED = 0;</code>
*/
public static final int LOG_STATEMENT_UNSPECIFIED_VALUE = 0;
/**
* <code>LOG_STATEMENT_NONE = 1;</code>
*/
public static final int LOG_STATEMENT_NONE_VALUE = 1;
/**
* <code>LOG_STATEMENT_DDL = 2;</code>
*/
public static final int LOG_STATEMENT_DDL_VALUE = 2;
/**
* <code>LOG_STATEMENT_MOD = 3;</code>
*/
public static final int LOG_STATEMENT_MOD_VALUE = 3;
/**
* <code>LOG_STATEMENT_ALL = 4;</code>
*/
public static final int LOG_STATEMENT_ALL_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LogStatement valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static LogStatement forNumber(int value) {
switch (value) {
case 0: return LOG_STATEMENT_UNSPECIFIED;
case 1: return LOG_STATEMENT_NONE;
case 2: return LOG_STATEMENT_DDL;
case 3: return LOG_STATEMENT_MOD;
case 4: return LOG_STATEMENT_ALL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<LogStatement>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogStatement> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<LogStatement>() {
public LogStatement findValueByNumber(int number) {
return LogStatement.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(4);
}
private static final LogStatement[] VALUES = values();
public static LogStatement valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private LogStatement(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation}
*/
public enum TransactionIsolation
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>TRANSACTION_ISOLATION_UNSPECIFIED = 0;</code>
*/
TRANSACTION_ISOLATION_UNSPECIFIED(0),
/**
* <code>TRANSACTION_ISOLATION_READ_UNCOMMITTED = 1;</code>
*/
TRANSACTION_ISOLATION_READ_UNCOMMITTED(1),
/**
* <code>TRANSACTION_ISOLATION_READ_COMMITTED = 2;</code>
*/
TRANSACTION_ISOLATION_READ_COMMITTED(2),
/**
* <code>TRANSACTION_ISOLATION_REPEATABLE_READ = 3;</code>
*/
TRANSACTION_ISOLATION_REPEATABLE_READ(3),
/**
* <code>TRANSACTION_ISOLATION_SERIALIZABLE = 4;</code>
*/
TRANSACTION_ISOLATION_SERIALIZABLE(4),
UNRECOGNIZED(-1),
;
/**
* <code>TRANSACTION_ISOLATION_UNSPECIFIED = 0;</code>
*/
public static final int TRANSACTION_ISOLATION_UNSPECIFIED_VALUE = 0;
/**
* <code>TRANSACTION_ISOLATION_READ_UNCOMMITTED = 1;</code>
*/
public static final int TRANSACTION_ISOLATION_READ_UNCOMMITTED_VALUE = 1;
/**
* <code>TRANSACTION_ISOLATION_READ_COMMITTED = 2;</code>
*/
public static final int TRANSACTION_ISOLATION_READ_COMMITTED_VALUE = 2;
/**
* <code>TRANSACTION_ISOLATION_REPEATABLE_READ = 3;</code>
*/
public static final int TRANSACTION_ISOLATION_REPEATABLE_READ_VALUE = 3;
/**
* <code>TRANSACTION_ISOLATION_SERIALIZABLE = 4;</code>
*/
public static final int TRANSACTION_ISOLATION_SERIALIZABLE_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TransactionIsolation valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TransactionIsolation forNumber(int value) {
switch (value) {
case 0: return TRANSACTION_ISOLATION_UNSPECIFIED;
case 1: return TRANSACTION_ISOLATION_READ_UNCOMMITTED;
case 2: return TRANSACTION_ISOLATION_READ_COMMITTED;
case 3: return TRANSACTION_ISOLATION_REPEATABLE_READ;
case 4: return TRANSACTION_ISOLATION_SERIALIZABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<TransactionIsolation>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransactionIsolation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<TransactionIsolation>() {
public TransactionIsolation findValueByNumber(int number) {
return TransactionIsolation.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(5);
}
private static final TransactionIsolation[] VALUES = values();
public static TransactionIsolation valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TransactionIsolation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput}
*/
public enum ByteaOutput
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>BYTEA_OUTPUT_UNSPECIFIED = 0;</code>
*/
BYTEA_OUTPUT_UNSPECIFIED(0),
/**
* <code>BYTEA_OUTPUT_HEX = 1;</code>
*/
BYTEA_OUTPUT_HEX(1),
/**
* <code>BYTEA_OUTPUT_ESCAPED = 2;</code>
*/
BYTEA_OUTPUT_ESCAPED(2),
UNRECOGNIZED(-1),
;
/**
* <code>BYTEA_OUTPUT_UNSPECIFIED = 0;</code>
*/
public static final int BYTEA_OUTPUT_UNSPECIFIED_VALUE = 0;
/**
* <code>BYTEA_OUTPUT_HEX = 1;</code>
*/
public static final int BYTEA_OUTPUT_HEX_VALUE = 1;
/**
* <code>BYTEA_OUTPUT_ESCAPED = 2;</code>
*/
public static final int BYTEA_OUTPUT_ESCAPED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ByteaOutput valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ByteaOutput forNumber(int value) {
switch (value) {
case 0: return BYTEA_OUTPUT_UNSPECIFIED;
case 1: return BYTEA_OUTPUT_HEX;
case 2: return BYTEA_OUTPUT_ESCAPED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<ByteaOutput>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ByteaOutput> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<ByteaOutput>() {
public ByteaOutput findValueByNumber(int number) {
return ByteaOutput.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(6);
}
private static final ByteaOutput[] VALUES = values();
public static ByteaOutput valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ByteaOutput(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary}
*/
public enum XmlBinary
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>XML_BINARY_UNSPECIFIED = 0;</code>
*/
XML_BINARY_UNSPECIFIED(0),
/**
* <code>XML_BINARY_BASE64 = 1;</code>
*/
XML_BINARY_BASE64(1),
/**
* <code>XML_BINARY_HEX = 2;</code>
*/
XML_BINARY_HEX(2),
UNRECOGNIZED(-1),
;
/**
* <code>XML_BINARY_UNSPECIFIED = 0;</code>
*/
public static final int XML_BINARY_UNSPECIFIED_VALUE = 0;
/**
* <code>XML_BINARY_BASE64 = 1;</code>
*/
public static final int XML_BINARY_BASE64_VALUE = 1;
/**
* <code>XML_BINARY_HEX = 2;</code>
*/
public static final int XML_BINARY_HEX_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static XmlBinary valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static XmlBinary forNumber(int value) {
switch (value) {
case 0: return XML_BINARY_UNSPECIFIED;
case 1: return XML_BINARY_BASE64;
case 2: return XML_BINARY_HEX;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<XmlBinary>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
XmlBinary> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<XmlBinary>() {
public XmlBinary findValueByNumber(int number) {
return XmlBinary.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(7);
}
private static final XmlBinary[] VALUES = values();
public static XmlBinary valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private XmlBinary(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption}
*/
public enum XmlOption
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>XML_OPTION_UNSPECIFIED = 0;</code>
*/
XML_OPTION_UNSPECIFIED(0),
/**
* <code>XML_OPTION_DOCUMENT = 1;</code>
*/
XML_OPTION_DOCUMENT(1),
/**
* <code>XML_OPTION_CONTENT = 2;</code>
*/
XML_OPTION_CONTENT(2),
UNRECOGNIZED(-1),
;
/**
* <code>XML_OPTION_UNSPECIFIED = 0;</code>
*/
public static final int XML_OPTION_UNSPECIFIED_VALUE = 0;
/**
* <code>XML_OPTION_DOCUMENT = 1;</code>
*/
public static final int XML_OPTION_DOCUMENT_VALUE = 1;
/**
* <code>XML_OPTION_CONTENT = 2;</code>
*/
public static final int XML_OPTION_CONTENT_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static XmlOption valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static XmlOption forNumber(int value) {
switch (value) {
case 0: return XML_OPTION_UNSPECIFIED;
case 1: return XML_OPTION_DOCUMENT;
case 2: return XML_OPTION_CONTENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<XmlOption>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
XmlOption> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<XmlOption>() {
public XmlOption findValueByNumber(int number) {
return XmlOption.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(8);
}
private static final XmlOption[] VALUES = values();
public static XmlOption valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private XmlOption(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote}
*/
public enum BackslashQuote
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>BACKSLASH_QUOTE_UNSPECIFIED = 0;</code>
*/
BACKSLASH_QUOTE_UNSPECIFIED(0),
/**
* <code>BACKSLASH_QUOTE = 1;</code>
*/
BACKSLASH_QUOTE(1),
/**
* <code>BACKSLASH_QUOTE_ON = 2;</code>
*/
BACKSLASH_QUOTE_ON(2),
/**
* <code>BACKSLASH_QUOTE_OFF = 3;</code>
*/
BACKSLASH_QUOTE_OFF(3),
/**
* <code>BACKSLASH_QUOTE_SAFE_ENCODING = 4;</code>
*/
BACKSLASH_QUOTE_SAFE_ENCODING(4),
UNRECOGNIZED(-1),
;
/**
* <code>BACKSLASH_QUOTE_UNSPECIFIED = 0;</code>
*/
public static final int BACKSLASH_QUOTE_UNSPECIFIED_VALUE = 0;
/**
* <code>BACKSLASH_QUOTE = 1;</code>
*/
public static final int BACKSLASH_QUOTE_VALUE = 1;
/**
* <code>BACKSLASH_QUOTE_ON = 2;</code>
*/
public static final int BACKSLASH_QUOTE_ON_VALUE = 2;
/**
* <code>BACKSLASH_QUOTE_OFF = 3;</code>
*/
public static final int BACKSLASH_QUOTE_OFF_VALUE = 3;
/**
* <code>BACKSLASH_QUOTE_SAFE_ENCODING = 4;</code>
*/
public static final int BACKSLASH_QUOTE_SAFE_ENCODING_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BackslashQuote valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static BackslashQuote forNumber(int value) {
switch (value) {
case 0: return BACKSLASH_QUOTE_UNSPECIFIED;
case 1: return BACKSLASH_QUOTE;
case 2: return BACKSLASH_QUOTE_ON;
case 3: return BACKSLASH_QUOTE_OFF;
case 4: return BACKSLASH_QUOTE_SAFE_ENCODING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<BackslashQuote>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BackslashQuote> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<BackslashQuote>() {
public BackslashQuote findValueByNumber(int number) {
return BackslashQuote.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDescriptor().getEnumTypes().get(9);
}
private static final BackslashQuote[] VALUES = values();
public static BackslashQuote valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BackslashQuote(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote)
}
public static final int RECOVERY_MIN_APPLY_DELAY_FIELD_NUMBER = 1;
private com.google.protobuf.Int64Value recoveryMinApplyDelay_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
* @return Whether the recoveryMinApplyDelay field is set.
*/
@java.lang.Override
public boolean hasRecoveryMinApplyDelay() {
return recoveryMinApplyDelay_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
* @return The recoveryMinApplyDelay.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getRecoveryMinApplyDelay() {
return recoveryMinApplyDelay_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recoveryMinApplyDelay_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getRecoveryMinApplyDelayOrBuilder() {
return getRecoveryMinApplyDelay();
}
public static final int SHARED_BUFFERS_FIELD_NUMBER = 2;
private com.google.protobuf.Int64Value sharedBuffers_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
* @return Whether the sharedBuffers field is set.
*/
@java.lang.Override
public boolean hasSharedBuffers() {
return sharedBuffers_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
* @return The sharedBuffers.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getSharedBuffers() {
return sharedBuffers_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : sharedBuffers_;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getSharedBuffersOrBuilder() {
return getSharedBuffers();
}
public static final int TEMP_BUFFERS_FIELD_NUMBER = 3;
private com.google.protobuf.Int64Value tempBuffers_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
* @return Whether the tempBuffers field is set.
*/
@java.lang.Override
public boolean hasTempBuffers() {
return tempBuffers_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
* @return The tempBuffers.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getTempBuffers() {
return tempBuffers_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : tempBuffers_;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getTempBuffersOrBuilder() {
return getTempBuffers();
}
public static final int WORK_MEM_FIELD_NUMBER = 4;
private com.google.protobuf.Int64Value workMem_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
* @return Whether the workMem field is set.
*/
@java.lang.Override
public boolean hasWorkMem() {
return workMem_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
* @return The workMem.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getWorkMem() {
return workMem_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : workMem_;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getWorkMemOrBuilder() {
return getWorkMem();
}
public static final int REPLACEMENT_SORT_TUPLES_FIELD_NUMBER = 5;
private com.google.protobuf.Int64Value replacementSortTuples_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
* @return Whether the replacementSortTuples field is set.
*/
@java.lang.Override
public boolean hasReplacementSortTuples() {
return replacementSortTuples_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
* @return The replacementSortTuples.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getReplacementSortTuples() {
return replacementSortTuples_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replacementSortTuples_;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getReplacementSortTuplesOrBuilder() {
return getReplacementSortTuples();
}
public static final int TEMP_FILE_LIMIT_FIELD_NUMBER = 6;
private com.google.protobuf.Int64Value tempFileLimit_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
* @return Whether the tempFileLimit field is set.
*/
@java.lang.Override
public boolean hasTempFileLimit() {
return tempFileLimit_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
* @return The tempFileLimit.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getTempFileLimit() {
return tempFileLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : tempFileLimit_;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getTempFileLimitOrBuilder() {
return getTempFileLimit();
}
public static final int BACKEND_FLUSH_AFTER_FIELD_NUMBER = 7;
private com.google.protobuf.Int64Value backendFlushAfter_;
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
* @return Whether the backendFlushAfter field is set.
*/
@java.lang.Override
public boolean hasBackendFlushAfter() {
return backendFlushAfter_ != null;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
* @return The backendFlushAfter.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getBackendFlushAfter() {
return backendFlushAfter_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : backendFlushAfter_;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getBackendFlushAfterOrBuilder() {
return getBackendFlushAfter();
}
public static final int OLD_SNAPSHOT_THRESHOLD_FIELD_NUMBER = 8;
private com.google.protobuf.Int64Value oldSnapshotThreshold_;
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
* @return Whether the oldSnapshotThreshold field is set.
*/
@java.lang.Override
public boolean hasOldSnapshotThreshold() {
return oldSnapshotThreshold_ != null;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
* @return The oldSnapshotThreshold.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getOldSnapshotThreshold() {
return oldSnapshotThreshold_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : oldSnapshotThreshold_;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getOldSnapshotThresholdOrBuilder() {
return getOldSnapshotThreshold();
}
public static final int MAX_STANDBY_STREAMING_DELAY_FIELD_NUMBER = 9;
private com.google.protobuf.Int64Value maxStandbyStreamingDelay_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
* @return Whether the maxStandbyStreamingDelay field is set.
*/
@java.lang.Override
public boolean hasMaxStandbyStreamingDelay() {
return maxStandbyStreamingDelay_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
* @return The maxStandbyStreamingDelay.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxStandbyStreamingDelay() {
return maxStandbyStreamingDelay_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxStandbyStreamingDelay_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxStandbyStreamingDelayOrBuilder() {
return getMaxStandbyStreamingDelay();
}
public static final int CONSTRAINT_EXCLUSION_FIELD_NUMBER = 10;
private int constraintExclusion_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return The enum numeric value on the wire for constraintExclusion.
*/
@java.lang.Override public int getConstraintExclusionValue() {
return constraintExclusion_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return The constraintExclusion.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion getConstraintExclusion() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion.valueOf(constraintExclusion_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion.UNRECOGNIZED : result;
}
public static final int CURSOR_TUPLE_FRACTION_FIELD_NUMBER = 11;
private com.google.protobuf.DoubleValue cursorTupleFraction_;
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
* @return Whether the cursorTupleFraction field is set.
*/
@java.lang.Override
public boolean hasCursorTupleFraction() {
return cursorTupleFraction_ != null;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
* @return The cursorTupleFraction.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getCursorTupleFraction() {
return cursorTupleFraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : cursorTupleFraction_;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getCursorTupleFractionOrBuilder() {
return getCursorTupleFraction();
}
public static final int FROM_COLLAPSE_LIMIT_FIELD_NUMBER = 12;
private com.google.protobuf.Int64Value fromCollapseLimit_;
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return Whether the fromCollapseLimit field is set.
*/
@java.lang.Override
public boolean hasFromCollapseLimit() {
return fromCollapseLimit_ != null;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return The fromCollapseLimit.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getFromCollapseLimit() {
return fromCollapseLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fromCollapseLimit_;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getFromCollapseLimitOrBuilder() {
return getFromCollapseLimit();
}
public static final int JOIN_COLLAPSE_LIMIT_FIELD_NUMBER = 13;
private com.google.protobuf.Int64Value joinCollapseLimit_;
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return Whether the joinCollapseLimit field is set.
*/
@java.lang.Override
public boolean hasJoinCollapseLimit() {
return joinCollapseLimit_ != null;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return The joinCollapseLimit.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getJoinCollapseLimit() {
return joinCollapseLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : joinCollapseLimit_;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getJoinCollapseLimitOrBuilder() {
return getJoinCollapseLimit();
}
public static final int FORCE_PARALLEL_MODE_FIELD_NUMBER = 14;
private int forceParallelMode_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return The enum numeric value on the wire for forceParallelMode.
*/
@java.lang.Override public int getForceParallelModeValue() {
return forceParallelMode_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return The forceParallelMode.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode getForceParallelMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode.valueOf(forceParallelMode_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode.UNRECOGNIZED : result;
}
public static final int CLIENT_MIN_MESSAGES_FIELD_NUMBER = 15;
private int clientMinMessages_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return The enum numeric value on the wire for clientMinMessages.
*/
@java.lang.Override public int getClientMinMessagesValue() {
return clientMinMessages_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return The clientMinMessages.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getClientMinMessages() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.valueOf(clientMinMessages_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.UNRECOGNIZED : result;
}
public static final int LOG_MIN_MESSAGES_FIELD_NUMBER = 16;
private int logMinMessages_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return The enum numeric value on the wire for logMinMessages.
*/
@java.lang.Override public int getLogMinMessagesValue() {
return logMinMessages_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return The logMinMessages.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getLogMinMessages() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.valueOf(logMinMessages_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.UNRECOGNIZED : result;
}
public static final int LOG_MIN_ERROR_STATEMENT_FIELD_NUMBER = 17;
private int logMinErrorStatement_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return The enum numeric value on the wire for logMinErrorStatement.
*/
@java.lang.Override public int getLogMinErrorStatementValue() {
return logMinErrorStatement_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return The logMinErrorStatement.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getLogMinErrorStatement() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.valueOf(logMinErrorStatement_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.UNRECOGNIZED : result;
}
public static final int LOG_MIN_DURATION_STATEMENT_FIELD_NUMBER = 18;
private com.google.protobuf.Int64Value logMinDurationStatement_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
* @return Whether the logMinDurationStatement field is set.
*/
@java.lang.Override
public boolean hasLogMinDurationStatement() {
return logMinDurationStatement_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
* @return The logMinDurationStatement.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getLogMinDurationStatement() {
return logMinDurationStatement_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : logMinDurationStatement_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getLogMinDurationStatementOrBuilder() {
return getLogMinDurationStatement();
}
public static final int LOG_CHECKPOINTS_FIELD_NUMBER = 19;
private com.google.protobuf.BoolValue logCheckpoints_;
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
* @return Whether the logCheckpoints field is set.
*/
@java.lang.Override
public boolean hasLogCheckpoints() {
return logCheckpoints_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
* @return The logCheckpoints.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getLogCheckpoints() {
return logCheckpoints_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logCheckpoints_;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getLogCheckpointsOrBuilder() {
return getLogCheckpoints();
}
public static final int LOG_CONNECTIONS_FIELD_NUMBER = 20;
private com.google.protobuf.BoolValue logConnections_;
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
* @return Whether the logConnections field is set.
*/
@java.lang.Override
public boolean hasLogConnections() {
return logConnections_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
* @return The logConnections.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getLogConnections() {
return logConnections_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logConnections_;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getLogConnectionsOrBuilder() {
return getLogConnections();
}
public static final int LOG_DISCONNECTIONS_FIELD_NUMBER = 21;
private com.google.protobuf.BoolValue logDisconnections_;
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
* @return Whether the logDisconnections field is set.
*/
@java.lang.Override
public boolean hasLogDisconnections() {
return logDisconnections_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
* @return The logDisconnections.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getLogDisconnections() {
return logDisconnections_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logDisconnections_;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getLogDisconnectionsOrBuilder() {
return getLogDisconnections();
}
public static final int LOG_DURATION_FIELD_NUMBER = 22;
private com.google.protobuf.BoolValue logDuration_;
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
* @return Whether the logDuration field is set.
*/
@java.lang.Override
public boolean hasLogDuration() {
return logDuration_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
* @return The logDuration.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getLogDuration() {
return logDuration_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logDuration_;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getLogDurationOrBuilder() {
return getLogDuration();
}
public static final int LOG_ERROR_VERBOSITY_FIELD_NUMBER = 23;
private int logErrorVerbosity_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return The enum numeric value on the wire for logErrorVerbosity.
*/
@java.lang.Override public int getLogErrorVerbosityValue() {
return logErrorVerbosity_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return The logErrorVerbosity.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity getLogErrorVerbosity() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity.valueOf(logErrorVerbosity_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity.UNRECOGNIZED : result;
}
public static final int LOG_LOCK_WAITS_FIELD_NUMBER = 24;
private com.google.protobuf.BoolValue logLockWaits_;
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
* @return Whether the logLockWaits field is set.
*/
@java.lang.Override
public boolean hasLogLockWaits() {
return logLockWaits_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
* @return The logLockWaits.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getLogLockWaits() {
return logLockWaits_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logLockWaits_;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getLogLockWaitsOrBuilder() {
return getLogLockWaits();
}
public static final int LOG_STATEMENT_FIELD_NUMBER = 25;
private int logStatement_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return The enum numeric value on the wire for logStatement.
*/
@java.lang.Override public int getLogStatementValue() {
return logStatement_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return The logStatement.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement getLogStatement() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement.valueOf(logStatement_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement.UNRECOGNIZED : result;
}
public static final int LOG_TEMP_FILES_FIELD_NUMBER = 26;
private com.google.protobuf.Int64Value logTempFiles_;
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
* @return Whether the logTempFiles field is set.
*/
@java.lang.Override
public boolean hasLogTempFiles() {
return logTempFiles_ != null;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
* @return The logTempFiles.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getLogTempFiles() {
return logTempFiles_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : logTempFiles_;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getLogTempFilesOrBuilder() {
return getLogTempFiles();
}
public static final int SEARCH_PATH_FIELD_NUMBER = 27;
private volatile java.lang.Object searchPath_;
/**
* <code>string search_path = 27;</code>
* @return The searchPath.
*/
@java.lang.Override
public java.lang.String getSearchPath() {
java.lang.Object ref = searchPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
searchPath_ = s;
return s;
}
}
/**
* <code>string search_path = 27;</code>
* @return The bytes for searchPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSearchPathBytes() {
java.lang.Object ref = searchPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROW_SECURITY_FIELD_NUMBER = 28;
private com.google.protobuf.BoolValue rowSecurity_;
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
* @return Whether the rowSecurity field is set.
*/
@java.lang.Override
public boolean hasRowSecurity() {
return rowSecurity_ != null;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
* @return The rowSecurity.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getRowSecurity() {
return rowSecurity_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : rowSecurity_;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getRowSecurityOrBuilder() {
return getRowSecurity();
}
public static final int DEFAULT_TRANSACTION_ISOLATION_FIELD_NUMBER = 29;
private int defaultTransactionIsolation_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return The enum numeric value on the wire for defaultTransactionIsolation.
*/
@java.lang.Override public int getDefaultTransactionIsolationValue() {
return defaultTransactionIsolation_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return The defaultTransactionIsolation.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation getDefaultTransactionIsolation() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation.valueOf(defaultTransactionIsolation_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation.UNRECOGNIZED : result;
}
public static final int STATEMENT_TIMEOUT_FIELD_NUMBER = 30;
private com.google.protobuf.Int64Value statementTimeout_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
* @return Whether the statementTimeout field is set.
*/
@java.lang.Override
public boolean hasStatementTimeout() {
return statementTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
* @return The statementTimeout.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getStatementTimeout() {
return statementTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : statementTimeout_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getStatementTimeoutOrBuilder() {
return getStatementTimeout();
}
public static final int LOCK_TIMEOUT_FIELD_NUMBER = 31;
private com.google.protobuf.Int64Value lockTimeout_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
* @return Whether the lockTimeout field is set.
*/
@java.lang.Override
public boolean hasLockTimeout() {
return lockTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
* @return The lockTimeout.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getLockTimeout() {
return lockTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : lockTimeout_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getLockTimeoutOrBuilder() {
return getLockTimeout();
}
public static final int IDLE_IN_TRANSACTION_SESSION_TIMEOUT_FIELD_NUMBER = 32;
private com.google.protobuf.Int64Value idleInTransactionSessionTimeout_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
* @return Whether the idleInTransactionSessionTimeout field is set.
*/
@java.lang.Override
public boolean hasIdleInTransactionSessionTimeout() {
return idleInTransactionSessionTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
* @return The idleInTransactionSessionTimeout.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getIdleInTransactionSessionTimeout() {
return idleInTransactionSessionTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : idleInTransactionSessionTimeout_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getIdleInTransactionSessionTimeoutOrBuilder() {
return getIdleInTransactionSessionTimeout();
}
public static final int BYTEA_OUTPUT_FIELD_NUMBER = 33;
private int byteaOutput_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return The enum numeric value on the wire for byteaOutput.
*/
@java.lang.Override public int getByteaOutputValue() {
return byteaOutput_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return The byteaOutput.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput getByteaOutput() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput.valueOf(byteaOutput_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput.UNRECOGNIZED : result;
}
public static final int XMLBINARY_FIELD_NUMBER = 34;
private int xmlbinary_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return The enum numeric value on the wire for xmlbinary.
*/
@java.lang.Override public int getXmlbinaryValue() {
return xmlbinary_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return The xmlbinary.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary getXmlbinary() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary.valueOf(xmlbinary_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary.UNRECOGNIZED : result;
}
public static final int XMLOPTION_FIELD_NUMBER = 35;
private int xmloption_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return The enum numeric value on the wire for xmloption.
*/
@java.lang.Override public int getXmloptionValue() {
return xmloption_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return The xmloption.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption getXmloption() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption.valueOf(xmloption_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption.UNRECOGNIZED : result;
}
public static final int GIN_PENDING_LIST_LIMIT_FIELD_NUMBER = 36;
private com.google.protobuf.Int64Value ginPendingListLimit_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
* @return Whether the ginPendingListLimit field is set.
*/
@java.lang.Override
public boolean hasGinPendingListLimit() {
return ginPendingListLimit_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
* @return The ginPendingListLimit.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getGinPendingListLimit() {
return ginPendingListLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ginPendingListLimit_;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getGinPendingListLimitOrBuilder() {
return getGinPendingListLimit();
}
public static final int DEADLOCK_TIMEOUT_FIELD_NUMBER = 37;
private com.google.protobuf.Int64Value deadlockTimeout_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
* @return Whether the deadlockTimeout field is set.
*/
@java.lang.Override
public boolean hasDeadlockTimeout() {
return deadlockTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
* @return The deadlockTimeout.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getDeadlockTimeout() {
return deadlockTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deadlockTimeout_;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getDeadlockTimeoutOrBuilder() {
return getDeadlockTimeout();
}
public static final int MAX_LOCKS_PER_TRANSACTION_FIELD_NUMBER = 38;
private com.google.protobuf.Int64Value maxLocksPerTransaction_;
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
* @return Whether the maxLocksPerTransaction field is set.
*/
@java.lang.Override
public boolean hasMaxLocksPerTransaction() {
return maxLocksPerTransaction_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
* @return The maxLocksPerTransaction.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxLocksPerTransaction() {
return maxLocksPerTransaction_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxLocksPerTransaction_;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxLocksPerTransactionOrBuilder() {
return getMaxLocksPerTransaction();
}
public static final int MAX_PRED_LOCKS_PER_TRANSACTION_FIELD_NUMBER = 39;
private com.google.protobuf.Int64Value maxPredLocksPerTransaction_;
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
* @return Whether the maxPredLocksPerTransaction field is set.
*/
@java.lang.Override
public boolean hasMaxPredLocksPerTransaction() {
return maxPredLocksPerTransaction_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
* @return The maxPredLocksPerTransaction.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxPredLocksPerTransaction() {
return maxPredLocksPerTransaction_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxPredLocksPerTransaction_;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxPredLocksPerTransactionOrBuilder() {
return getMaxPredLocksPerTransaction();
}
public static final int ARRAY_NULLS_FIELD_NUMBER = 40;
private com.google.protobuf.BoolValue arrayNulls_;
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
* @return Whether the arrayNulls field is set.
*/
@java.lang.Override
public boolean hasArrayNulls() {
return arrayNulls_ != null;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
* @return The arrayNulls.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getArrayNulls() {
return arrayNulls_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : arrayNulls_;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getArrayNullsOrBuilder() {
return getArrayNulls();
}
public static final int BACKSLASH_QUOTE_FIELD_NUMBER = 41;
private int backslashQuote_;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return The enum numeric value on the wire for backslashQuote.
*/
@java.lang.Override public int getBackslashQuoteValue() {
return backslashQuote_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return The backslashQuote.
*/
@java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote getBackslashQuote() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote.valueOf(backslashQuote_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote.UNRECOGNIZED : result;
}
public static final int DEFAULT_WITH_OIDS_FIELD_NUMBER = 42;
private com.google.protobuf.BoolValue defaultWithOids_;
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
* @return Whether the defaultWithOids field is set.
*/
@java.lang.Override
public boolean hasDefaultWithOids() {
return defaultWithOids_ != null;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
* @return The defaultWithOids.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getDefaultWithOids() {
return defaultWithOids_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : defaultWithOids_;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getDefaultWithOidsOrBuilder() {
return getDefaultWithOids();
}
public static final int ESCAPE_STRING_WARNING_FIELD_NUMBER = 43;
private com.google.protobuf.BoolValue escapeStringWarning_;
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
* @return Whether the escapeStringWarning field is set.
*/
@java.lang.Override
public boolean hasEscapeStringWarning() {
return escapeStringWarning_ != null;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
* @return The escapeStringWarning.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEscapeStringWarning() {
return escapeStringWarning_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : escapeStringWarning_;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEscapeStringWarningOrBuilder() {
return getEscapeStringWarning();
}
public static final int LO_COMPAT_PRIVILEGES_FIELD_NUMBER = 44;
private com.google.protobuf.BoolValue loCompatPrivileges_;
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
* @return Whether the loCompatPrivileges field is set.
*/
@java.lang.Override
public boolean hasLoCompatPrivileges() {
return loCompatPrivileges_ != null;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
* @return The loCompatPrivileges.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getLoCompatPrivileges() {
return loCompatPrivileges_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : loCompatPrivileges_;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getLoCompatPrivilegesOrBuilder() {
return getLoCompatPrivileges();
}
public static final int OPERATOR_PRECEDENCE_WARNING_FIELD_NUMBER = 45;
private com.google.protobuf.BoolValue operatorPrecedenceWarning_;
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
* @return Whether the operatorPrecedenceWarning field is set.
*/
@java.lang.Override
public boolean hasOperatorPrecedenceWarning() {
return operatorPrecedenceWarning_ != null;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
* @return The operatorPrecedenceWarning.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getOperatorPrecedenceWarning() {
return operatorPrecedenceWarning_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : operatorPrecedenceWarning_;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getOperatorPrecedenceWarningOrBuilder() {
return getOperatorPrecedenceWarning();
}
public static final int QUOTE_ALL_IDENTIFIERS_FIELD_NUMBER = 46;
private com.google.protobuf.BoolValue quoteAllIdentifiers_;
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
* @return Whether the quoteAllIdentifiers field is set.
*/
@java.lang.Override
public boolean hasQuoteAllIdentifiers() {
return quoteAllIdentifiers_ != null;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
* @return The quoteAllIdentifiers.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getQuoteAllIdentifiers() {
return quoteAllIdentifiers_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : quoteAllIdentifiers_;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getQuoteAllIdentifiersOrBuilder() {
return getQuoteAllIdentifiers();
}
public static final int STANDARD_CONFORMING_STRINGS_FIELD_NUMBER = 47;
private com.google.protobuf.BoolValue standardConformingStrings_;
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
* @return Whether the standardConformingStrings field is set.
*/
@java.lang.Override
public boolean hasStandardConformingStrings() {
return standardConformingStrings_ != null;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
* @return The standardConformingStrings.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getStandardConformingStrings() {
return standardConformingStrings_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : standardConformingStrings_;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getStandardConformingStringsOrBuilder() {
return getStandardConformingStrings();
}
public static final int SYNCHRONIZE_SEQSCANS_FIELD_NUMBER = 48;
private com.google.protobuf.BoolValue synchronizeSeqscans_;
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
* @return Whether the synchronizeSeqscans field is set.
*/
@java.lang.Override
public boolean hasSynchronizeSeqscans() {
return synchronizeSeqscans_ != null;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
* @return The synchronizeSeqscans.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getSynchronizeSeqscans() {
return synchronizeSeqscans_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : synchronizeSeqscans_;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getSynchronizeSeqscansOrBuilder() {
return getSynchronizeSeqscans();
}
public static final int TRANSFORM_NULL_EQUALS_FIELD_NUMBER = 49;
private com.google.protobuf.BoolValue transformNullEquals_;
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
* @return Whether the transformNullEquals field is set.
*/
@java.lang.Override
public boolean hasTransformNullEquals() {
return transformNullEquals_ != null;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
* @return The transformNullEquals.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getTransformNullEquals() {
return transformNullEquals_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : transformNullEquals_;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getTransformNullEqualsOrBuilder() {
return getTransformNullEquals();
}
public static final int EXIT_ON_ERROR_FIELD_NUMBER = 50;
private com.google.protobuf.BoolValue exitOnError_;
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
* @return Whether the exitOnError field is set.
*/
@java.lang.Override
public boolean hasExitOnError() {
return exitOnError_ != null;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
* @return The exitOnError.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getExitOnError() {
return exitOnError_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : exitOnError_;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getExitOnErrorOrBuilder() {
return getExitOnError();
}
public static final int SEQ_PAGE_COST_FIELD_NUMBER = 51;
private com.google.protobuf.DoubleValue seqPageCost_;
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
* @return Whether the seqPageCost field is set.
*/
@java.lang.Override
public boolean hasSeqPageCost() {
return seqPageCost_ != null;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
* @return The seqPageCost.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getSeqPageCost() {
return seqPageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : seqPageCost_;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getSeqPageCostOrBuilder() {
return getSeqPageCost();
}
public static final int RANDOM_PAGE_COST_FIELD_NUMBER = 52;
private com.google.protobuf.DoubleValue randomPageCost_;
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
* @return Whether the randomPageCost field is set.
*/
@java.lang.Override
public boolean hasRandomPageCost() {
return randomPageCost_ != null;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
* @return The randomPageCost.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getRandomPageCost() {
return randomPageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : randomPageCost_;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getRandomPageCostOrBuilder() {
return getRandomPageCost();
}
public static final int ENABLE_BITMAPSCAN_FIELD_NUMBER = 54;
private com.google.protobuf.BoolValue enableBitmapscan_;
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
* @return Whether the enableBitmapscan field is set.
*/
@java.lang.Override
public boolean hasEnableBitmapscan() {
return enableBitmapscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
* @return The enableBitmapscan.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableBitmapscan() {
return enableBitmapscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableBitmapscan_;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableBitmapscanOrBuilder() {
return getEnableBitmapscan();
}
public static final int ENABLE_HASHAGG_FIELD_NUMBER = 55;
private com.google.protobuf.BoolValue enableHashagg_;
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
* @return Whether the enableHashagg field is set.
*/
@java.lang.Override
public boolean hasEnableHashagg() {
return enableHashagg_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
* @return The enableHashagg.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableHashagg() {
return enableHashagg_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableHashagg_;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableHashaggOrBuilder() {
return getEnableHashagg();
}
public static final int ENABLE_HASHJOIN_FIELD_NUMBER = 56;
private com.google.protobuf.BoolValue enableHashjoin_;
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
* @return Whether the enableHashjoin field is set.
*/
@java.lang.Override
public boolean hasEnableHashjoin() {
return enableHashjoin_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
* @return The enableHashjoin.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableHashjoin() {
return enableHashjoin_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableHashjoin_;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableHashjoinOrBuilder() {
return getEnableHashjoin();
}
public static final int ENABLE_INDEXSCAN_FIELD_NUMBER = 57;
private com.google.protobuf.BoolValue enableIndexscan_;
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
* @return Whether the enableIndexscan field is set.
*/
@java.lang.Override
public boolean hasEnableIndexscan() {
return enableIndexscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
* @return The enableIndexscan.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableIndexscan() {
return enableIndexscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIndexscan_;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableIndexscanOrBuilder() {
return getEnableIndexscan();
}
public static final int ENABLE_INDEXONLYSCAN_FIELD_NUMBER = 58;
private com.google.protobuf.BoolValue enableIndexonlyscan_;
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
* @return Whether the enableIndexonlyscan field is set.
*/
@java.lang.Override
public boolean hasEnableIndexonlyscan() {
return enableIndexonlyscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
* @return The enableIndexonlyscan.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableIndexonlyscan() {
return enableIndexonlyscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIndexonlyscan_;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableIndexonlyscanOrBuilder() {
return getEnableIndexonlyscan();
}
public static final int ENABLE_MATERIAL_FIELD_NUMBER = 59;
private com.google.protobuf.BoolValue enableMaterial_;
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
* @return Whether the enableMaterial field is set.
*/
@java.lang.Override
public boolean hasEnableMaterial() {
return enableMaterial_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
* @return The enableMaterial.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableMaterial() {
return enableMaterial_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableMaterial_;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableMaterialOrBuilder() {
return getEnableMaterial();
}
public static final int ENABLE_MERGEJOIN_FIELD_NUMBER = 60;
private com.google.protobuf.BoolValue enableMergejoin_;
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
* @return Whether the enableMergejoin field is set.
*/
@java.lang.Override
public boolean hasEnableMergejoin() {
return enableMergejoin_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
* @return The enableMergejoin.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableMergejoin() {
return enableMergejoin_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableMergejoin_;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableMergejoinOrBuilder() {
return getEnableMergejoin();
}
public static final int ENABLE_NESTLOOP_FIELD_NUMBER = 61;
private com.google.protobuf.BoolValue enableNestloop_;
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
* @return Whether the enableNestloop field is set.
*/
@java.lang.Override
public boolean hasEnableNestloop() {
return enableNestloop_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
* @return The enableNestloop.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableNestloop() {
return enableNestloop_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableNestloop_;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableNestloopOrBuilder() {
return getEnableNestloop();
}
public static final int ENABLE_SEQSCAN_FIELD_NUMBER = 62;
private com.google.protobuf.BoolValue enableSeqscan_;
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
* @return Whether the enableSeqscan field is set.
*/
@java.lang.Override
public boolean hasEnableSeqscan() {
return enableSeqscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
* @return The enableSeqscan.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableSeqscan() {
return enableSeqscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSeqscan_;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableSeqscanOrBuilder() {
return getEnableSeqscan();
}
public static final int ENABLE_SORT_FIELD_NUMBER = 63;
private com.google.protobuf.BoolValue enableSort_;
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
* @return Whether the enableSort field is set.
*/
@java.lang.Override
public boolean hasEnableSort() {
return enableSort_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
* @return The enableSort.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableSort() {
return enableSort_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSort_;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableSortOrBuilder() {
return getEnableSort();
}
public static final int ENABLE_TIDSCAN_FIELD_NUMBER = 64;
private com.google.protobuf.BoolValue enableTidscan_;
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
* @return Whether the enableTidscan field is set.
*/
@java.lang.Override
public boolean hasEnableTidscan() {
return enableTidscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
* @return The enableTidscan.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableTidscan() {
return enableTidscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableTidscan_;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableTidscanOrBuilder() {
return getEnableTidscan();
}
public static final int MAX_PARALLEL_WORKERS_FIELD_NUMBER = 65;
private com.google.protobuf.Int64Value maxParallelWorkers_;
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
* @return Whether the maxParallelWorkers field is set.
*/
@java.lang.Override
public boolean hasMaxParallelWorkers() {
return maxParallelWorkers_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
* @return The maxParallelWorkers.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxParallelWorkers() {
return maxParallelWorkers_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxParallelWorkers_;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxParallelWorkersOrBuilder() {
return getMaxParallelWorkers();
}
public static final int MAX_PARALLEL_WORKERS_PER_GATHER_FIELD_NUMBER = 66;
private com.google.protobuf.Int64Value maxParallelWorkersPerGather_;
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
* @return Whether the maxParallelWorkersPerGather field is set.
*/
@java.lang.Override
public boolean hasMaxParallelWorkersPerGather() {
return maxParallelWorkersPerGather_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
* @return The maxParallelWorkersPerGather.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxParallelWorkersPerGather() {
return maxParallelWorkersPerGather_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxParallelWorkersPerGather_;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxParallelWorkersPerGatherOrBuilder() {
return getMaxParallelWorkersPerGather();
}
public static final int TIMEZONE_FIELD_NUMBER = 67;
private volatile java.lang.Object timezone_;
/**
* <code>string timezone = 67;</code>
* @return The timezone.
*/
@java.lang.Override
public java.lang.String getTimezone() {
java.lang.Object ref = timezone_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timezone_ = s;
return s;
}
}
/**
* <code>string timezone = 67;</code>
* @return The bytes for timezone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTimezoneBytes() {
java.lang.Object ref = timezone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timezone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EFFECTIVE_IO_CONCURRENCY_FIELD_NUMBER = 68;
private com.google.protobuf.Int64Value effectiveIoConcurrency_;
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
* @return Whether the effectiveIoConcurrency field is set.
*/
@java.lang.Override
public boolean hasEffectiveIoConcurrency() {
return effectiveIoConcurrency_ != null;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
* @return The effectiveIoConcurrency.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getEffectiveIoConcurrency() {
return effectiveIoConcurrency_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : effectiveIoConcurrency_;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getEffectiveIoConcurrencyOrBuilder() {
return getEffectiveIoConcurrency();
}
public static final int EFFECTIVE_CACHE_SIZE_FIELD_NUMBER = 69;
private com.google.protobuf.Int64Value effectiveCacheSize_;
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
* @return Whether the effectiveCacheSize field is set.
*/
@java.lang.Override
public boolean hasEffectiveCacheSize() {
return effectiveCacheSize_ != null;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
* @return The effectiveCacheSize.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getEffectiveCacheSize() {
return effectiveCacheSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : effectiveCacheSize_;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getEffectiveCacheSizeOrBuilder() {
return getEffectiveCacheSize();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (recoveryMinApplyDelay_ != null) {
output.writeMessage(1, getRecoveryMinApplyDelay());
}
if (sharedBuffers_ != null) {
output.writeMessage(2, getSharedBuffers());
}
if (tempBuffers_ != null) {
output.writeMessage(3, getTempBuffers());
}
if (workMem_ != null) {
output.writeMessage(4, getWorkMem());
}
if (replacementSortTuples_ != null) {
output.writeMessage(5, getReplacementSortTuples());
}
if (tempFileLimit_ != null) {
output.writeMessage(6, getTempFileLimit());
}
if (backendFlushAfter_ != null) {
output.writeMessage(7, getBackendFlushAfter());
}
if (oldSnapshotThreshold_ != null) {
output.writeMessage(8, getOldSnapshotThreshold());
}
if (maxStandbyStreamingDelay_ != null) {
output.writeMessage(9, getMaxStandbyStreamingDelay());
}
if (constraintExclusion_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion.CONSTRAINT_EXCLUSION_UNSPECIFIED.getNumber()) {
output.writeEnum(10, constraintExclusion_);
}
if (cursorTupleFraction_ != null) {
output.writeMessage(11, getCursorTupleFraction());
}
if (fromCollapseLimit_ != null) {
output.writeMessage(12, getFromCollapseLimit());
}
if (joinCollapseLimit_ != null) {
output.writeMessage(13, getJoinCollapseLimit());
}
if (forceParallelMode_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode.FORCE_PARALLEL_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(14, forceParallelMode_);
}
if (clientMinMessages_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
output.writeEnum(15, clientMinMessages_);
}
if (logMinMessages_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
output.writeEnum(16, logMinMessages_);
}
if (logMinErrorStatement_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
output.writeEnum(17, logMinErrorStatement_);
}
if (logMinDurationStatement_ != null) {
output.writeMessage(18, getLogMinDurationStatement());
}
if (logCheckpoints_ != null) {
output.writeMessage(19, getLogCheckpoints());
}
if (logConnections_ != null) {
output.writeMessage(20, getLogConnections());
}
if (logDisconnections_ != null) {
output.writeMessage(21, getLogDisconnections());
}
if (logDuration_ != null) {
output.writeMessage(22, getLogDuration());
}
if (logErrorVerbosity_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity.LOG_ERROR_VERBOSITY_UNSPECIFIED.getNumber()) {
output.writeEnum(23, logErrorVerbosity_);
}
if (logLockWaits_ != null) {
output.writeMessage(24, getLogLockWaits());
}
if (logStatement_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement.LOG_STATEMENT_UNSPECIFIED.getNumber()) {
output.writeEnum(25, logStatement_);
}
if (logTempFiles_ != null) {
output.writeMessage(26, getLogTempFiles());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 27, searchPath_);
}
if (rowSecurity_ != null) {
output.writeMessage(28, getRowSecurity());
}
if (defaultTransactionIsolation_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED.getNumber()) {
output.writeEnum(29, defaultTransactionIsolation_);
}
if (statementTimeout_ != null) {
output.writeMessage(30, getStatementTimeout());
}
if (lockTimeout_ != null) {
output.writeMessage(31, getLockTimeout());
}
if (idleInTransactionSessionTimeout_ != null) {
output.writeMessage(32, getIdleInTransactionSessionTimeout());
}
if (byteaOutput_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput.BYTEA_OUTPUT_UNSPECIFIED.getNumber()) {
output.writeEnum(33, byteaOutput_);
}
if (xmlbinary_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary.XML_BINARY_UNSPECIFIED.getNumber()) {
output.writeEnum(34, xmlbinary_);
}
if (xmloption_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption.XML_OPTION_UNSPECIFIED.getNumber()) {
output.writeEnum(35, xmloption_);
}
if (ginPendingListLimit_ != null) {
output.writeMessage(36, getGinPendingListLimit());
}
if (deadlockTimeout_ != null) {
output.writeMessage(37, getDeadlockTimeout());
}
if (maxLocksPerTransaction_ != null) {
output.writeMessage(38, getMaxLocksPerTransaction());
}
if (maxPredLocksPerTransaction_ != null) {
output.writeMessage(39, getMaxPredLocksPerTransaction());
}
if (arrayNulls_ != null) {
output.writeMessage(40, getArrayNulls());
}
if (backslashQuote_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote.BACKSLASH_QUOTE_UNSPECIFIED.getNumber()) {
output.writeEnum(41, backslashQuote_);
}
if (defaultWithOids_ != null) {
output.writeMessage(42, getDefaultWithOids());
}
if (escapeStringWarning_ != null) {
output.writeMessage(43, getEscapeStringWarning());
}
if (loCompatPrivileges_ != null) {
output.writeMessage(44, getLoCompatPrivileges());
}
if (operatorPrecedenceWarning_ != null) {
output.writeMessage(45, getOperatorPrecedenceWarning());
}
if (quoteAllIdentifiers_ != null) {
output.writeMessage(46, getQuoteAllIdentifiers());
}
if (standardConformingStrings_ != null) {
output.writeMessage(47, getStandardConformingStrings());
}
if (synchronizeSeqscans_ != null) {
output.writeMessage(48, getSynchronizeSeqscans());
}
if (transformNullEquals_ != null) {
output.writeMessage(49, getTransformNullEquals());
}
if (exitOnError_ != null) {
output.writeMessage(50, getExitOnError());
}
if (seqPageCost_ != null) {
output.writeMessage(51, getSeqPageCost());
}
if (randomPageCost_ != null) {
output.writeMessage(52, getRandomPageCost());
}
if (enableBitmapscan_ != null) {
output.writeMessage(54, getEnableBitmapscan());
}
if (enableHashagg_ != null) {
output.writeMessage(55, getEnableHashagg());
}
if (enableHashjoin_ != null) {
output.writeMessage(56, getEnableHashjoin());
}
if (enableIndexscan_ != null) {
output.writeMessage(57, getEnableIndexscan());
}
if (enableIndexonlyscan_ != null) {
output.writeMessage(58, getEnableIndexonlyscan());
}
if (enableMaterial_ != null) {
output.writeMessage(59, getEnableMaterial());
}
if (enableMergejoin_ != null) {
output.writeMessage(60, getEnableMergejoin());
}
if (enableNestloop_ != null) {
output.writeMessage(61, getEnableNestloop());
}
if (enableSeqscan_ != null) {
output.writeMessage(62, getEnableSeqscan());
}
if (enableSort_ != null) {
output.writeMessage(63, getEnableSort());
}
if (enableTidscan_ != null) {
output.writeMessage(64, getEnableTidscan());
}
if (maxParallelWorkers_ != null) {
output.writeMessage(65, getMaxParallelWorkers());
}
if (maxParallelWorkersPerGather_ != null) {
output.writeMessage(66, getMaxParallelWorkersPerGather());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 67, timezone_);
}
if (effectiveIoConcurrency_ != null) {
output.writeMessage(68, getEffectiveIoConcurrency());
}
if (effectiveCacheSize_ != null) {
output.writeMessage(69, getEffectiveCacheSize());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (recoveryMinApplyDelay_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRecoveryMinApplyDelay());
}
if (sharedBuffers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSharedBuffers());
}
if (tempBuffers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTempBuffers());
}
if (workMem_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getWorkMem());
}
if (replacementSortTuples_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getReplacementSortTuples());
}
if (tempFileLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTempFileLimit());
}
if (backendFlushAfter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getBackendFlushAfter());
}
if (oldSnapshotThreshold_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getOldSnapshotThreshold());
}
if (maxStandbyStreamingDelay_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getMaxStandbyStreamingDelay());
}
if (constraintExclusion_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion.CONSTRAINT_EXCLUSION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, constraintExclusion_);
}
if (cursorTupleFraction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getCursorTupleFraction());
}
if (fromCollapseLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getFromCollapseLimit());
}
if (joinCollapseLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getJoinCollapseLimit());
}
if (forceParallelMode_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode.FORCE_PARALLEL_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, forceParallelMode_);
}
if (clientMinMessages_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(15, clientMinMessages_);
}
if (logMinMessages_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, logMinMessages_);
}
if (logMinErrorStatement_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.LOG_LEVEL_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, logMinErrorStatement_);
}
if (logMinDurationStatement_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getLogMinDurationStatement());
}
if (logCheckpoints_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getLogCheckpoints());
}
if (logConnections_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getLogConnections());
}
if (logDisconnections_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getLogDisconnections());
}
if (logDuration_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getLogDuration());
}
if (logErrorVerbosity_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity.LOG_ERROR_VERBOSITY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(23, logErrorVerbosity_);
}
if (logLockWaits_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, getLogLockWaits());
}
if (logStatement_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement.LOG_STATEMENT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(25, logStatement_);
}
if (logTempFiles_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getLogTempFiles());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, searchPath_);
}
if (rowSecurity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, getRowSecurity());
}
if (defaultTransactionIsolation_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation.TRANSACTION_ISOLATION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(29, defaultTransactionIsolation_);
}
if (statementTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, getStatementTimeout());
}
if (lockTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, getLockTimeout());
}
if (idleInTransactionSessionTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, getIdleInTransactionSessionTimeout());
}
if (byteaOutput_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput.BYTEA_OUTPUT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(33, byteaOutput_);
}
if (xmlbinary_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary.XML_BINARY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(34, xmlbinary_);
}
if (xmloption_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption.XML_OPTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(35, xmloption_);
}
if (ginPendingListLimit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, getGinPendingListLimit());
}
if (deadlockTimeout_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(37, getDeadlockTimeout());
}
if (maxLocksPerTransaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(38, getMaxLocksPerTransaction());
}
if (maxPredLocksPerTransaction_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(39, getMaxPredLocksPerTransaction());
}
if (arrayNulls_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(40, getArrayNulls());
}
if (backslashQuote_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote.BACKSLASH_QUOTE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(41, backslashQuote_);
}
if (defaultWithOids_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(42, getDefaultWithOids());
}
if (escapeStringWarning_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(43, getEscapeStringWarning());
}
if (loCompatPrivileges_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(44, getLoCompatPrivileges());
}
if (operatorPrecedenceWarning_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(45, getOperatorPrecedenceWarning());
}
if (quoteAllIdentifiers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(46, getQuoteAllIdentifiers());
}
if (standardConformingStrings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(47, getStandardConformingStrings());
}
if (synchronizeSeqscans_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(48, getSynchronizeSeqscans());
}
if (transformNullEquals_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(49, getTransformNullEquals());
}
if (exitOnError_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, getExitOnError());
}
if (seqPageCost_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(51, getSeqPageCost());
}
if (randomPageCost_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(52, getRandomPageCost());
}
if (enableBitmapscan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(54, getEnableBitmapscan());
}
if (enableHashagg_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(55, getEnableHashagg());
}
if (enableHashjoin_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(56, getEnableHashjoin());
}
if (enableIndexscan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(57, getEnableIndexscan());
}
if (enableIndexonlyscan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(58, getEnableIndexonlyscan());
}
if (enableMaterial_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(59, getEnableMaterial());
}
if (enableMergejoin_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(60, getEnableMergejoin());
}
if (enableNestloop_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(61, getEnableNestloop());
}
if (enableSeqscan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(62, getEnableSeqscan());
}
if (enableSort_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(63, getEnableSort());
}
if (enableTidscan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(64, getEnableTidscan());
}
if (maxParallelWorkers_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(65, getMaxParallelWorkers());
}
if (maxParallelWorkersPerGather_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(66, getMaxParallelWorkersPerGather());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(67, timezone_);
}
if (effectiveIoConcurrency_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(68, getEffectiveIoConcurrency());
}
if (effectiveCacheSize_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(69, getEffectiveCacheSize());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 other = (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) obj;
if (hasRecoveryMinApplyDelay() != other.hasRecoveryMinApplyDelay()) return false;
if (hasRecoveryMinApplyDelay()) {
if (!getRecoveryMinApplyDelay()
.equals(other.getRecoveryMinApplyDelay())) return false;
}
if (hasSharedBuffers() != other.hasSharedBuffers()) return false;
if (hasSharedBuffers()) {
if (!getSharedBuffers()
.equals(other.getSharedBuffers())) return false;
}
if (hasTempBuffers() != other.hasTempBuffers()) return false;
if (hasTempBuffers()) {
if (!getTempBuffers()
.equals(other.getTempBuffers())) return false;
}
if (hasWorkMem() != other.hasWorkMem()) return false;
if (hasWorkMem()) {
if (!getWorkMem()
.equals(other.getWorkMem())) return false;
}
if (hasReplacementSortTuples() != other.hasReplacementSortTuples()) return false;
if (hasReplacementSortTuples()) {
if (!getReplacementSortTuples()
.equals(other.getReplacementSortTuples())) return false;
}
if (hasTempFileLimit() != other.hasTempFileLimit()) return false;
if (hasTempFileLimit()) {
if (!getTempFileLimit()
.equals(other.getTempFileLimit())) return false;
}
if (hasBackendFlushAfter() != other.hasBackendFlushAfter()) return false;
if (hasBackendFlushAfter()) {
if (!getBackendFlushAfter()
.equals(other.getBackendFlushAfter())) return false;
}
if (hasOldSnapshotThreshold() != other.hasOldSnapshotThreshold()) return false;
if (hasOldSnapshotThreshold()) {
if (!getOldSnapshotThreshold()
.equals(other.getOldSnapshotThreshold())) return false;
}
if (hasMaxStandbyStreamingDelay() != other.hasMaxStandbyStreamingDelay()) return false;
if (hasMaxStandbyStreamingDelay()) {
if (!getMaxStandbyStreamingDelay()
.equals(other.getMaxStandbyStreamingDelay())) return false;
}
if (constraintExclusion_ != other.constraintExclusion_) return false;
if (hasCursorTupleFraction() != other.hasCursorTupleFraction()) return false;
if (hasCursorTupleFraction()) {
if (!getCursorTupleFraction()
.equals(other.getCursorTupleFraction())) return false;
}
if (hasFromCollapseLimit() != other.hasFromCollapseLimit()) return false;
if (hasFromCollapseLimit()) {
if (!getFromCollapseLimit()
.equals(other.getFromCollapseLimit())) return false;
}
if (hasJoinCollapseLimit() != other.hasJoinCollapseLimit()) return false;
if (hasJoinCollapseLimit()) {
if (!getJoinCollapseLimit()
.equals(other.getJoinCollapseLimit())) return false;
}
if (forceParallelMode_ != other.forceParallelMode_) return false;
if (clientMinMessages_ != other.clientMinMessages_) return false;
if (logMinMessages_ != other.logMinMessages_) return false;
if (logMinErrorStatement_ != other.logMinErrorStatement_) return false;
if (hasLogMinDurationStatement() != other.hasLogMinDurationStatement()) return false;
if (hasLogMinDurationStatement()) {
if (!getLogMinDurationStatement()
.equals(other.getLogMinDurationStatement())) return false;
}
if (hasLogCheckpoints() != other.hasLogCheckpoints()) return false;
if (hasLogCheckpoints()) {
if (!getLogCheckpoints()
.equals(other.getLogCheckpoints())) return false;
}
if (hasLogConnections() != other.hasLogConnections()) return false;
if (hasLogConnections()) {
if (!getLogConnections()
.equals(other.getLogConnections())) return false;
}
if (hasLogDisconnections() != other.hasLogDisconnections()) return false;
if (hasLogDisconnections()) {
if (!getLogDisconnections()
.equals(other.getLogDisconnections())) return false;
}
if (hasLogDuration() != other.hasLogDuration()) return false;
if (hasLogDuration()) {
if (!getLogDuration()
.equals(other.getLogDuration())) return false;
}
if (logErrorVerbosity_ != other.logErrorVerbosity_) return false;
if (hasLogLockWaits() != other.hasLogLockWaits()) return false;
if (hasLogLockWaits()) {
if (!getLogLockWaits()
.equals(other.getLogLockWaits())) return false;
}
if (logStatement_ != other.logStatement_) return false;
if (hasLogTempFiles() != other.hasLogTempFiles()) return false;
if (hasLogTempFiles()) {
if (!getLogTempFiles()
.equals(other.getLogTempFiles())) return false;
}
if (!getSearchPath()
.equals(other.getSearchPath())) return false;
if (hasRowSecurity() != other.hasRowSecurity()) return false;
if (hasRowSecurity()) {
if (!getRowSecurity()
.equals(other.getRowSecurity())) return false;
}
if (defaultTransactionIsolation_ != other.defaultTransactionIsolation_) return false;
if (hasStatementTimeout() != other.hasStatementTimeout()) return false;
if (hasStatementTimeout()) {
if (!getStatementTimeout()
.equals(other.getStatementTimeout())) return false;
}
if (hasLockTimeout() != other.hasLockTimeout()) return false;
if (hasLockTimeout()) {
if (!getLockTimeout()
.equals(other.getLockTimeout())) return false;
}
if (hasIdleInTransactionSessionTimeout() != other.hasIdleInTransactionSessionTimeout()) return false;
if (hasIdleInTransactionSessionTimeout()) {
if (!getIdleInTransactionSessionTimeout()
.equals(other.getIdleInTransactionSessionTimeout())) return false;
}
if (byteaOutput_ != other.byteaOutput_) return false;
if (xmlbinary_ != other.xmlbinary_) return false;
if (xmloption_ != other.xmloption_) return false;
if (hasGinPendingListLimit() != other.hasGinPendingListLimit()) return false;
if (hasGinPendingListLimit()) {
if (!getGinPendingListLimit()
.equals(other.getGinPendingListLimit())) return false;
}
if (hasDeadlockTimeout() != other.hasDeadlockTimeout()) return false;
if (hasDeadlockTimeout()) {
if (!getDeadlockTimeout()
.equals(other.getDeadlockTimeout())) return false;
}
if (hasMaxLocksPerTransaction() != other.hasMaxLocksPerTransaction()) return false;
if (hasMaxLocksPerTransaction()) {
if (!getMaxLocksPerTransaction()
.equals(other.getMaxLocksPerTransaction())) return false;
}
if (hasMaxPredLocksPerTransaction() != other.hasMaxPredLocksPerTransaction()) return false;
if (hasMaxPredLocksPerTransaction()) {
if (!getMaxPredLocksPerTransaction()
.equals(other.getMaxPredLocksPerTransaction())) return false;
}
if (hasArrayNulls() != other.hasArrayNulls()) return false;
if (hasArrayNulls()) {
if (!getArrayNulls()
.equals(other.getArrayNulls())) return false;
}
if (backslashQuote_ != other.backslashQuote_) return false;
if (hasDefaultWithOids() != other.hasDefaultWithOids()) return false;
if (hasDefaultWithOids()) {
if (!getDefaultWithOids()
.equals(other.getDefaultWithOids())) return false;
}
if (hasEscapeStringWarning() != other.hasEscapeStringWarning()) return false;
if (hasEscapeStringWarning()) {
if (!getEscapeStringWarning()
.equals(other.getEscapeStringWarning())) return false;
}
if (hasLoCompatPrivileges() != other.hasLoCompatPrivileges()) return false;
if (hasLoCompatPrivileges()) {
if (!getLoCompatPrivileges()
.equals(other.getLoCompatPrivileges())) return false;
}
if (hasOperatorPrecedenceWarning() != other.hasOperatorPrecedenceWarning()) return false;
if (hasOperatorPrecedenceWarning()) {
if (!getOperatorPrecedenceWarning()
.equals(other.getOperatorPrecedenceWarning())) return false;
}
if (hasQuoteAllIdentifiers() != other.hasQuoteAllIdentifiers()) return false;
if (hasQuoteAllIdentifiers()) {
if (!getQuoteAllIdentifiers()
.equals(other.getQuoteAllIdentifiers())) return false;
}
if (hasStandardConformingStrings() != other.hasStandardConformingStrings()) return false;
if (hasStandardConformingStrings()) {
if (!getStandardConformingStrings()
.equals(other.getStandardConformingStrings())) return false;
}
if (hasSynchronizeSeqscans() != other.hasSynchronizeSeqscans()) return false;
if (hasSynchronizeSeqscans()) {
if (!getSynchronizeSeqscans()
.equals(other.getSynchronizeSeqscans())) return false;
}
if (hasTransformNullEquals() != other.hasTransformNullEquals()) return false;
if (hasTransformNullEquals()) {
if (!getTransformNullEquals()
.equals(other.getTransformNullEquals())) return false;
}
if (hasExitOnError() != other.hasExitOnError()) return false;
if (hasExitOnError()) {
if (!getExitOnError()
.equals(other.getExitOnError())) return false;
}
if (hasSeqPageCost() != other.hasSeqPageCost()) return false;
if (hasSeqPageCost()) {
if (!getSeqPageCost()
.equals(other.getSeqPageCost())) return false;
}
if (hasRandomPageCost() != other.hasRandomPageCost()) return false;
if (hasRandomPageCost()) {
if (!getRandomPageCost()
.equals(other.getRandomPageCost())) return false;
}
if (hasEnableBitmapscan() != other.hasEnableBitmapscan()) return false;
if (hasEnableBitmapscan()) {
if (!getEnableBitmapscan()
.equals(other.getEnableBitmapscan())) return false;
}
if (hasEnableHashagg() != other.hasEnableHashagg()) return false;
if (hasEnableHashagg()) {
if (!getEnableHashagg()
.equals(other.getEnableHashagg())) return false;
}
if (hasEnableHashjoin() != other.hasEnableHashjoin()) return false;
if (hasEnableHashjoin()) {
if (!getEnableHashjoin()
.equals(other.getEnableHashjoin())) return false;
}
if (hasEnableIndexscan() != other.hasEnableIndexscan()) return false;
if (hasEnableIndexscan()) {
if (!getEnableIndexscan()
.equals(other.getEnableIndexscan())) return false;
}
if (hasEnableIndexonlyscan() != other.hasEnableIndexonlyscan()) return false;
if (hasEnableIndexonlyscan()) {
if (!getEnableIndexonlyscan()
.equals(other.getEnableIndexonlyscan())) return false;
}
if (hasEnableMaterial() != other.hasEnableMaterial()) return false;
if (hasEnableMaterial()) {
if (!getEnableMaterial()
.equals(other.getEnableMaterial())) return false;
}
if (hasEnableMergejoin() != other.hasEnableMergejoin()) return false;
if (hasEnableMergejoin()) {
if (!getEnableMergejoin()
.equals(other.getEnableMergejoin())) return false;
}
if (hasEnableNestloop() != other.hasEnableNestloop()) return false;
if (hasEnableNestloop()) {
if (!getEnableNestloop()
.equals(other.getEnableNestloop())) return false;
}
if (hasEnableSeqscan() != other.hasEnableSeqscan()) return false;
if (hasEnableSeqscan()) {
if (!getEnableSeqscan()
.equals(other.getEnableSeqscan())) return false;
}
if (hasEnableSort() != other.hasEnableSort()) return false;
if (hasEnableSort()) {
if (!getEnableSort()
.equals(other.getEnableSort())) return false;
}
if (hasEnableTidscan() != other.hasEnableTidscan()) return false;
if (hasEnableTidscan()) {
if (!getEnableTidscan()
.equals(other.getEnableTidscan())) return false;
}
if (hasMaxParallelWorkers() != other.hasMaxParallelWorkers()) return false;
if (hasMaxParallelWorkers()) {
if (!getMaxParallelWorkers()
.equals(other.getMaxParallelWorkers())) return false;
}
if (hasMaxParallelWorkersPerGather() != other.hasMaxParallelWorkersPerGather()) return false;
if (hasMaxParallelWorkersPerGather()) {
if (!getMaxParallelWorkersPerGather()
.equals(other.getMaxParallelWorkersPerGather())) return false;
}
if (!getTimezone()
.equals(other.getTimezone())) return false;
if (hasEffectiveIoConcurrency() != other.hasEffectiveIoConcurrency()) return false;
if (hasEffectiveIoConcurrency()) {
if (!getEffectiveIoConcurrency()
.equals(other.getEffectiveIoConcurrency())) return false;
}
if (hasEffectiveCacheSize() != other.hasEffectiveCacheSize()) return false;
if (hasEffectiveCacheSize()) {
if (!getEffectiveCacheSize()
.equals(other.getEffectiveCacheSize())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRecoveryMinApplyDelay()) {
hash = (37 * hash) + RECOVERY_MIN_APPLY_DELAY_FIELD_NUMBER;
hash = (53 * hash) + getRecoveryMinApplyDelay().hashCode();
}
if (hasSharedBuffers()) {
hash = (37 * hash) + SHARED_BUFFERS_FIELD_NUMBER;
hash = (53 * hash) + getSharedBuffers().hashCode();
}
if (hasTempBuffers()) {
hash = (37 * hash) + TEMP_BUFFERS_FIELD_NUMBER;
hash = (53 * hash) + getTempBuffers().hashCode();
}
if (hasWorkMem()) {
hash = (37 * hash) + WORK_MEM_FIELD_NUMBER;
hash = (53 * hash) + getWorkMem().hashCode();
}
if (hasReplacementSortTuples()) {
hash = (37 * hash) + REPLACEMENT_SORT_TUPLES_FIELD_NUMBER;
hash = (53 * hash) + getReplacementSortTuples().hashCode();
}
if (hasTempFileLimit()) {
hash = (37 * hash) + TEMP_FILE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getTempFileLimit().hashCode();
}
if (hasBackendFlushAfter()) {
hash = (37 * hash) + BACKEND_FLUSH_AFTER_FIELD_NUMBER;
hash = (53 * hash) + getBackendFlushAfter().hashCode();
}
if (hasOldSnapshotThreshold()) {
hash = (37 * hash) + OLD_SNAPSHOT_THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + getOldSnapshotThreshold().hashCode();
}
if (hasMaxStandbyStreamingDelay()) {
hash = (37 * hash) + MAX_STANDBY_STREAMING_DELAY_FIELD_NUMBER;
hash = (53 * hash) + getMaxStandbyStreamingDelay().hashCode();
}
hash = (37 * hash) + CONSTRAINT_EXCLUSION_FIELD_NUMBER;
hash = (53 * hash) + constraintExclusion_;
if (hasCursorTupleFraction()) {
hash = (37 * hash) + CURSOR_TUPLE_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + getCursorTupleFraction().hashCode();
}
if (hasFromCollapseLimit()) {
hash = (37 * hash) + FROM_COLLAPSE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getFromCollapseLimit().hashCode();
}
if (hasJoinCollapseLimit()) {
hash = (37 * hash) + JOIN_COLLAPSE_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getJoinCollapseLimit().hashCode();
}
hash = (37 * hash) + FORCE_PARALLEL_MODE_FIELD_NUMBER;
hash = (53 * hash) + forceParallelMode_;
hash = (37 * hash) + CLIENT_MIN_MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + clientMinMessages_;
hash = (37 * hash) + LOG_MIN_MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + logMinMessages_;
hash = (37 * hash) + LOG_MIN_ERROR_STATEMENT_FIELD_NUMBER;
hash = (53 * hash) + logMinErrorStatement_;
if (hasLogMinDurationStatement()) {
hash = (37 * hash) + LOG_MIN_DURATION_STATEMENT_FIELD_NUMBER;
hash = (53 * hash) + getLogMinDurationStatement().hashCode();
}
if (hasLogCheckpoints()) {
hash = (37 * hash) + LOG_CHECKPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getLogCheckpoints().hashCode();
}
if (hasLogConnections()) {
hash = (37 * hash) + LOG_CONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLogConnections().hashCode();
}
if (hasLogDisconnections()) {
hash = (37 * hash) + LOG_DISCONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getLogDisconnections().hashCode();
}
if (hasLogDuration()) {
hash = (37 * hash) + LOG_DURATION_FIELD_NUMBER;
hash = (53 * hash) + getLogDuration().hashCode();
}
hash = (37 * hash) + LOG_ERROR_VERBOSITY_FIELD_NUMBER;
hash = (53 * hash) + logErrorVerbosity_;
if (hasLogLockWaits()) {
hash = (37 * hash) + LOG_LOCK_WAITS_FIELD_NUMBER;
hash = (53 * hash) + getLogLockWaits().hashCode();
}
hash = (37 * hash) + LOG_STATEMENT_FIELD_NUMBER;
hash = (53 * hash) + logStatement_;
if (hasLogTempFiles()) {
hash = (37 * hash) + LOG_TEMP_FILES_FIELD_NUMBER;
hash = (53 * hash) + getLogTempFiles().hashCode();
}
hash = (37 * hash) + SEARCH_PATH_FIELD_NUMBER;
hash = (53 * hash) + getSearchPath().hashCode();
if (hasRowSecurity()) {
hash = (37 * hash) + ROW_SECURITY_FIELD_NUMBER;
hash = (53 * hash) + getRowSecurity().hashCode();
}
hash = (37 * hash) + DEFAULT_TRANSACTION_ISOLATION_FIELD_NUMBER;
hash = (53 * hash) + defaultTransactionIsolation_;
if (hasStatementTimeout()) {
hash = (37 * hash) + STATEMENT_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getStatementTimeout().hashCode();
}
if (hasLockTimeout()) {
hash = (37 * hash) + LOCK_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getLockTimeout().hashCode();
}
if (hasIdleInTransactionSessionTimeout()) {
hash = (37 * hash) + IDLE_IN_TRANSACTION_SESSION_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getIdleInTransactionSessionTimeout().hashCode();
}
hash = (37 * hash) + BYTEA_OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + byteaOutput_;
hash = (37 * hash) + XMLBINARY_FIELD_NUMBER;
hash = (53 * hash) + xmlbinary_;
hash = (37 * hash) + XMLOPTION_FIELD_NUMBER;
hash = (53 * hash) + xmloption_;
if (hasGinPendingListLimit()) {
hash = (37 * hash) + GIN_PENDING_LIST_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getGinPendingListLimit().hashCode();
}
if (hasDeadlockTimeout()) {
hash = (37 * hash) + DEADLOCK_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getDeadlockTimeout().hashCode();
}
if (hasMaxLocksPerTransaction()) {
hash = (37 * hash) + MAX_LOCKS_PER_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getMaxLocksPerTransaction().hashCode();
}
if (hasMaxPredLocksPerTransaction()) {
hash = (37 * hash) + MAX_PRED_LOCKS_PER_TRANSACTION_FIELD_NUMBER;
hash = (53 * hash) + getMaxPredLocksPerTransaction().hashCode();
}
if (hasArrayNulls()) {
hash = (37 * hash) + ARRAY_NULLS_FIELD_NUMBER;
hash = (53 * hash) + getArrayNulls().hashCode();
}
hash = (37 * hash) + BACKSLASH_QUOTE_FIELD_NUMBER;
hash = (53 * hash) + backslashQuote_;
if (hasDefaultWithOids()) {
hash = (37 * hash) + DEFAULT_WITH_OIDS_FIELD_NUMBER;
hash = (53 * hash) + getDefaultWithOids().hashCode();
}
if (hasEscapeStringWarning()) {
hash = (37 * hash) + ESCAPE_STRING_WARNING_FIELD_NUMBER;
hash = (53 * hash) + getEscapeStringWarning().hashCode();
}
if (hasLoCompatPrivileges()) {
hash = (37 * hash) + LO_COMPAT_PRIVILEGES_FIELD_NUMBER;
hash = (53 * hash) + getLoCompatPrivileges().hashCode();
}
if (hasOperatorPrecedenceWarning()) {
hash = (37 * hash) + OPERATOR_PRECEDENCE_WARNING_FIELD_NUMBER;
hash = (53 * hash) + getOperatorPrecedenceWarning().hashCode();
}
if (hasQuoteAllIdentifiers()) {
hash = (37 * hash) + QUOTE_ALL_IDENTIFIERS_FIELD_NUMBER;
hash = (53 * hash) + getQuoteAllIdentifiers().hashCode();
}
if (hasStandardConformingStrings()) {
hash = (37 * hash) + STANDARD_CONFORMING_STRINGS_FIELD_NUMBER;
hash = (53 * hash) + getStandardConformingStrings().hashCode();
}
if (hasSynchronizeSeqscans()) {
hash = (37 * hash) + SYNCHRONIZE_SEQSCANS_FIELD_NUMBER;
hash = (53 * hash) + getSynchronizeSeqscans().hashCode();
}
if (hasTransformNullEquals()) {
hash = (37 * hash) + TRANSFORM_NULL_EQUALS_FIELD_NUMBER;
hash = (53 * hash) + getTransformNullEquals().hashCode();
}
if (hasExitOnError()) {
hash = (37 * hash) + EXIT_ON_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getExitOnError().hashCode();
}
if (hasSeqPageCost()) {
hash = (37 * hash) + SEQ_PAGE_COST_FIELD_NUMBER;
hash = (53 * hash) + getSeqPageCost().hashCode();
}
if (hasRandomPageCost()) {
hash = (37 * hash) + RANDOM_PAGE_COST_FIELD_NUMBER;
hash = (53 * hash) + getRandomPageCost().hashCode();
}
if (hasEnableBitmapscan()) {
hash = (37 * hash) + ENABLE_BITMAPSCAN_FIELD_NUMBER;
hash = (53 * hash) + getEnableBitmapscan().hashCode();
}
if (hasEnableHashagg()) {
hash = (37 * hash) + ENABLE_HASHAGG_FIELD_NUMBER;
hash = (53 * hash) + getEnableHashagg().hashCode();
}
if (hasEnableHashjoin()) {
hash = (37 * hash) + ENABLE_HASHJOIN_FIELD_NUMBER;
hash = (53 * hash) + getEnableHashjoin().hashCode();
}
if (hasEnableIndexscan()) {
hash = (37 * hash) + ENABLE_INDEXSCAN_FIELD_NUMBER;
hash = (53 * hash) + getEnableIndexscan().hashCode();
}
if (hasEnableIndexonlyscan()) {
hash = (37 * hash) + ENABLE_INDEXONLYSCAN_FIELD_NUMBER;
hash = (53 * hash) + getEnableIndexonlyscan().hashCode();
}
if (hasEnableMaterial()) {
hash = (37 * hash) + ENABLE_MATERIAL_FIELD_NUMBER;
hash = (53 * hash) + getEnableMaterial().hashCode();
}
if (hasEnableMergejoin()) {
hash = (37 * hash) + ENABLE_MERGEJOIN_FIELD_NUMBER;
hash = (53 * hash) + getEnableMergejoin().hashCode();
}
if (hasEnableNestloop()) {
hash = (37 * hash) + ENABLE_NESTLOOP_FIELD_NUMBER;
hash = (53 * hash) + getEnableNestloop().hashCode();
}
if (hasEnableSeqscan()) {
hash = (37 * hash) + ENABLE_SEQSCAN_FIELD_NUMBER;
hash = (53 * hash) + getEnableSeqscan().hashCode();
}
if (hasEnableSort()) {
hash = (37 * hash) + ENABLE_SORT_FIELD_NUMBER;
hash = (53 * hash) + getEnableSort().hashCode();
}
if (hasEnableTidscan()) {
hash = (37 * hash) + ENABLE_TIDSCAN_FIELD_NUMBER;
hash = (53 * hash) + getEnableTidscan().hashCode();
}
if (hasMaxParallelWorkers()) {
hash = (37 * hash) + MAX_PARALLEL_WORKERS_FIELD_NUMBER;
hash = (53 * hash) + getMaxParallelWorkers().hashCode();
}
if (hasMaxParallelWorkersPerGather()) {
hash = (37 * hash) + MAX_PARALLEL_WORKERS_PER_GATHER_FIELD_NUMBER;
hash = (53 * hash) + getMaxParallelWorkersPerGather().hashCode();
}
hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
hash = (53 * hash) + getTimezone().hashCode();
if (hasEffectiveIoConcurrency()) {
hash = (37 * hash) + EFFECTIVE_IO_CONCURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveIoConcurrency().hashCode();
}
if (hasEffectiveCacheSize()) {
hash = (37 * hash) + EFFECTIVE_CACHE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveCacheSize().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Options and structure of `PostgresqlHostConfig` reflects PostgreSQL configuration file
* parameters whose detailed description is available in
* [PostgreSQL documentation](https://www.postgresql.org/docs/10/runtime-config.html).
* </pre>
*
* Protobuf type {@code yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10)
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.class, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder.class);
}
// Construct using yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (recoveryMinApplyDelayBuilder_ == null) {
recoveryMinApplyDelay_ = null;
} else {
recoveryMinApplyDelay_ = null;
recoveryMinApplyDelayBuilder_ = null;
}
if (sharedBuffersBuilder_ == null) {
sharedBuffers_ = null;
} else {
sharedBuffers_ = null;
sharedBuffersBuilder_ = null;
}
if (tempBuffersBuilder_ == null) {
tempBuffers_ = null;
} else {
tempBuffers_ = null;
tempBuffersBuilder_ = null;
}
if (workMemBuilder_ == null) {
workMem_ = null;
} else {
workMem_ = null;
workMemBuilder_ = null;
}
if (replacementSortTuplesBuilder_ == null) {
replacementSortTuples_ = null;
} else {
replacementSortTuples_ = null;
replacementSortTuplesBuilder_ = null;
}
if (tempFileLimitBuilder_ == null) {
tempFileLimit_ = null;
} else {
tempFileLimit_ = null;
tempFileLimitBuilder_ = null;
}
if (backendFlushAfterBuilder_ == null) {
backendFlushAfter_ = null;
} else {
backendFlushAfter_ = null;
backendFlushAfterBuilder_ = null;
}
if (oldSnapshotThresholdBuilder_ == null) {
oldSnapshotThreshold_ = null;
} else {
oldSnapshotThreshold_ = null;
oldSnapshotThresholdBuilder_ = null;
}
if (maxStandbyStreamingDelayBuilder_ == null) {
maxStandbyStreamingDelay_ = null;
} else {
maxStandbyStreamingDelay_ = null;
maxStandbyStreamingDelayBuilder_ = null;
}
constraintExclusion_ = 0;
if (cursorTupleFractionBuilder_ == null) {
cursorTupleFraction_ = null;
} else {
cursorTupleFraction_ = null;
cursorTupleFractionBuilder_ = null;
}
if (fromCollapseLimitBuilder_ == null) {
fromCollapseLimit_ = null;
} else {
fromCollapseLimit_ = null;
fromCollapseLimitBuilder_ = null;
}
if (joinCollapseLimitBuilder_ == null) {
joinCollapseLimit_ = null;
} else {
joinCollapseLimit_ = null;
joinCollapseLimitBuilder_ = null;
}
forceParallelMode_ = 0;
clientMinMessages_ = 0;
logMinMessages_ = 0;
logMinErrorStatement_ = 0;
if (logMinDurationStatementBuilder_ == null) {
logMinDurationStatement_ = null;
} else {
logMinDurationStatement_ = null;
logMinDurationStatementBuilder_ = null;
}
if (logCheckpointsBuilder_ == null) {
logCheckpoints_ = null;
} else {
logCheckpoints_ = null;
logCheckpointsBuilder_ = null;
}
if (logConnectionsBuilder_ == null) {
logConnections_ = null;
} else {
logConnections_ = null;
logConnectionsBuilder_ = null;
}
if (logDisconnectionsBuilder_ == null) {
logDisconnections_ = null;
} else {
logDisconnections_ = null;
logDisconnectionsBuilder_ = null;
}
if (logDurationBuilder_ == null) {
logDuration_ = null;
} else {
logDuration_ = null;
logDurationBuilder_ = null;
}
logErrorVerbosity_ = 0;
if (logLockWaitsBuilder_ == null) {
logLockWaits_ = null;
} else {
logLockWaits_ = null;
logLockWaitsBuilder_ = null;
}
logStatement_ = 0;
if (logTempFilesBuilder_ == null) {
logTempFiles_ = null;
} else {
logTempFiles_ = null;
logTempFilesBuilder_ = null;
}
searchPath_ = "";
if (rowSecurityBuilder_ == null) {
rowSecurity_ = null;
} else {
rowSecurity_ = null;
rowSecurityBuilder_ = null;
}
defaultTransactionIsolation_ = 0;
if (statementTimeoutBuilder_ == null) {
statementTimeout_ = null;
} else {
statementTimeout_ = null;
statementTimeoutBuilder_ = null;
}
if (lockTimeoutBuilder_ == null) {
lockTimeout_ = null;
} else {
lockTimeout_ = null;
lockTimeoutBuilder_ = null;
}
if (idleInTransactionSessionTimeoutBuilder_ == null) {
idleInTransactionSessionTimeout_ = null;
} else {
idleInTransactionSessionTimeout_ = null;
idleInTransactionSessionTimeoutBuilder_ = null;
}
byteaOutput_ = 0;
xmlbinary_ = 0;
xmloption_ = 0;
if (ginPendingListLimitBuilder_ == null) {
ginPendingListLimit_ = null;
} else {
ginPendingListLimit_ = null;
ginPendingListLimitBuilder_ = null;
}
if (deadlockTimeoutBuilder_ == null) {
deadlockTimeout_ = null;
} else {
deadlockTimeout_ = null;
deadlockTimeoutBuilder_ = null;
}
if (maxLocksPerTransactionBuilder_ == null) {
maxLocksPerTransaction_ = null;
} else {
maxLocksPerTransaction_ = null;
maxLocksPerTransactionBuilder_ = null;
}
if (maxPredLocksPerTransactionBuilder_ == null) {
maxPredLocksPerTransaction_ = null;
} else {
maxPredLocksPerTransaction_ = null;
maxPredLocksPerTransactionBuilder_ = null;
}
if (arrayNullsBuilder_ == null) {
arrayNulls_ = null;
} else {
arrayNulls_ = null;
arrayNullsBuilder_ = null;
}
backslashQuote_ = 0;
if (defaultWithOidsBuilder_ == null) {
defaultWithOids_ = null;
} else {
defaultWithOids_ = null;
defaultWithOidsBuilder_ = null;
}
if (escapeStringWarningBuilder_ == null) {
escapeStringWarning_ = null;
} else {
escapeStringWarning_ = null;
escapeStringWarningBuilder_ = null;
}
if (loCompatPrivilegesBuilder_ == null) {
loCompatPrivileges_ = null;
} else {
loCompatPrivileges_ = null;
loCompatPrivilegesBuilder_ = null;
}
if (operatorPrecedenceWarningBuilder_ == null) {
operatorPrecedenceWarning_ = null;
} else {
operatorPrecedenceWarning_ = null;
operatorPrecedenceWarningBuilder_ = null;
}
if (quoteAllIdentifiersBuilder_ == null) {
quoteAllIdentifiers_ = null;
} else {
quoteAllIdentifiers_ = null;
quoteAllIdentifiersBuilder_ = null;
}
if (standardConformingStringsBuilder_ == null) {
standardConformingStrings_ = null;
} else {
standardConformingStrings_ = null;
standardConformingStringsBuilder_ = null;
}
if (synchronizeSeqscansBuilder_ == null) {
synchronizeSeqscans_ = null;
} else {
synchronizeSeqscans_ = null;
synchronizeSeqscansBuilder_ = null;
}
if (transformNullEqualsBuilder_ == null) {
transformNullEquals_ = null;
} else {
transformNullEquals_ = null;
transformNullEqualsBuilder_ = null;
}
if (exitOnErrorBuilder_ == null) {
exitOnError_ = null;
} else {
exitOnError_ = null;
exitOnErrorBuilder_ = null;
}
if (seqPageCostBuilder_ == null) {
seqPageCost_ = null;
} else {
seqPageCost_ = null;
seqPageCostBuilder_ = null;
}
if (randomPageCostBuilder_ == null) {
randomPageCost_ = null;
} else {
randomPageCost_ = null;
randomPageCostBuilder_ = null;
}
if (enableBitmapscanBuilder_ == null) {
enableBitmapscan_ = null;
} else {
enableBitmapscan_ = null;
enableBitmapscanBuilder_ = null;
}
if (enableHashaggBuilder_ == null) {
enableHashagg_ = null;
} else {
enableHashagg_ = null;
enableHashaggBuilder_ = null;
}
if (enableHashjoinBuilder_ == null) {
enableHashjoin_ = null;
} else {
enableHashjoin_ = null;
enableHashjoinBuilder_ = null;
}
if (enableIndexscanBuilder_ == null) {
enableIndexscan_ = null;
} else {
enableIndexscan_ = null;
enableIndexscanBuilder_ = null;
}
if (enableIndexonlyscanBuilder_ == null) {
enableIndexonlyscan_ = null;
} else {
enableIndexonlyscan_ = null;
enableIndexonlyscanBuilder_ = null;
}
if (enableMaterialBuilder_ == null) {
enableMaterial_ = null;
} else {
enableMaterial_ = null;
enableMaterialBuilder_ = null;
}
if (enableMergejoinBuilder_ == null) {
enableMergejoin_ = null;
} else {
enableMergejoin_ = null;
enableMergejoinBuilder_ = null;
}
if (enableNestloopBuilder_ == null) {
enableNestloop_ = null;
} else {
enableNestloop_ = null;
enableNestloopBuilder_ = null;
}
if (enableSeqscanBuilder_ == null) {
enableSeqscan_ = null;
} else {
enableSeqscan_ = null;
enableSeqscanBuilder_ = null;
}
if (enableSortBuilder_ == null) {
enableSort_ = null;
} else {
enableSort_ = null;
enableSortBuilder_ = null;
}
if (enableTidscanBuilder_ == null) {
enableTidscan_ = null;
} else {
enableTidscan_ = null;
enableTidscanBuilder_ = null;
}
if (maxParallelWorkersBuilder_ == null) {
maxParallelWorkers_ = null;
} else {
maxParallelWorkers_ = null;
maxParallelWorkersBuilder_ = null;
}
if (maxParallelWorkersPerGatherBuilder_ == null) {
maxParallelWorkersPerGather_ = null;
} else {
maxParallelWorkersPerGather_ = null;
maxParallelWorkersPerGatherBuilder_ = null;
}
timezone_ = "";
if (effectiveIoConcurrencyBuilder_ == null) {
effectiveIoConcurrency_ = null;
} else {
effectiveIoConcurrency_ = null;
effectiveIoConcurrencyBuilder_ = null;
}
if (effectiveCacheSizeBuilder_ == null) {
effectiveCacheSize_ = null;
} else {
effectiveCacheSize_ = null;
effectiveCacheSizeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 getDefaultInstanceForType() {
return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 build() {
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 buildPartial() {
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 result = new yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10(this);
if (recoveryMinApplyDelayBuilder_ == null) {
result.recoveryMinApplyDelay_ = recoveryMinApplyDelay_;
} else {
result.recoveryMinApplyDelay_ = recoveryMinApplyDelayBuilder_.build();
}
if (sharedBuffersBuilder_ == null) {
result.sharedBuffers_ = sharedBuffers_;
} else {
result.sharedBuffers_ = sharedBuffersBuilder_.build();
}
if (tempBuffersBuilder_ == null) {
result.tempBuffers_ = tempBuffers_;
} else {
result.tempBuffers_ = tempBuffersBuilder_.build();
}
if (workMemBuilder_ == null) {
result.workMem_ = workMem_;
} else {
result.workMem_ = workMemBuilder_.build();
}
if (replacementSortTuplesBuilder_ == null) {
result.replacementSortTuples_ = replacementSortTuples_;
} else {
result.replacementSortTuples_ = replacementSortTuplesBuilder_.build();
}
if (tempFileLimitBuilder_ == null) {
result.tempFileLimit_ = tempFileLimit_;
} else {
result.tempFileLimit_ = tempFileLimitBuilder_.build();
}
if (backendFlushAfterBuilder_ == null) {
result.backendFlushAfter_ = backendFlushAfter_;
} else {
result.backendFlushAfter_ = backendFlushAfterBuilder_.build();
}
if (oldSnapshotThresholdBuilder_ == null) {
result.oldSnapshotThreshold_ = oldSnapshotThreshold_;
} else {
result.oldSnapshotThreshold_ = oldSnapshotThresholdBuilder_.build();
}
if (maxStandbyStreamingDelayBuilder_ == null) {
result.maxStandbyStreamingDelay_ = maxStandbyStreamingDelay_;
} else {
result.maxStandbyStreamingDelay_ = maxStandbyStreamingDelayBuilder_.build();
}
result.constraintExclusion_ = constraintExclusion_;
if (cursorTupleFractionBuilder_ == null) {
result.cursorTupleFraction_ = cursorTupleFraction_;
} else {
result.cursorTupleFraction_ = cursorTupleFractionBuilder_.build();
}
if (fromCollapseLimitBuilder_ == null) {
result.fromCollapseLimit_ = fromCollapseLimit_;
} else {
result.fromCollapseLimit_ = fromCollapseLimitBuilder_.build();
}
if (joinCollapseLimitBuilder_ == null) {
result.joinCollapseLimit_ = joinCollapseLimit_;
} else {
result.joinCollapseLimit_ = joinCollapseLimitBuilder_.build();
}
result.forceParallelMode_ = forceParallelMode_;
result.clientMinMessages_ = clientMinMessages_;
result.logMinMessages_ = logMinMessages_;
result.logMinErrorStatement_ = logMinErrorStatement_;
if (logMinDurationStatementBuilder_ == null) {
result.logMinDurationStatement_ = logMinDurationStatement_;
} else {
result.logMinDurationStatement_ = logMinDurationStatementBuilder_.build();
}
if (logCheckpointsBuilder_ == null) {
result.logCheckpoints_ = logCheckpoints_;
} else {
result.logCheckpoints_ = logCheckpointsBuilder_.build();
}
if (logConnectionsBuilder_ == null) {
result.logConnections_ = logConnections_;
} else {
result.logConnections_ = logConnectionsBuilder_.build();
}
if (logDisconnectionsBuilder_ == null) {
result.logDisconnections_ = logDisconnections_;
} else {
result.logDisconnections_ = logDisconnectionsBuilder_.build();
}
if (logDurationBuilder_ == null) {
result.logDuration_ = logDuration_;
} else {
result.logDuration_ = logDurationBuilder_.build();
}
result.logErrorVerbosity_ = logErrorVerbosity_;
if (logLockWaitsBuilder_ == null) {
result.logLockWaits_ = logLockWaits_;
} else {
result.logLockWaits_ = logLockWaitsBuilder_.build();
}
result.logStatement_ = logStatement_;
if (logTempFilesBuilder_ == null) {
result.logTempFiles_ = logTempFiles_;
} else {
result.logTempFiles_ = logTempFilesBuilder_.build();
}
result.searchPath_ = searchPath_;
if (rowSecurityBuilder_ == null) {
result.rowSecurity_ = rowSecurity_;
} else {
result.rowSecurity_ = rowSecurityBuilder_.build();
}
result.defaultTransactionIsolation_ = defaultTransactionIsolation_;
if (statementTimeoutBuilder_ == null) {
result.statementTimeout_ = statementTimeout_;
} else {
result.statementTimeout_ = statementTimeoutBuilder_.build();
}
if (lockTimeoutBuilder_ == null) {
result.lockTimeout_ = lockTimeout_;
} else {
result.lockTimeout_ = lockTimeoutBuilder_.build();
}
if (idleInTransactionSessionTimeoutBuilder_ == null) {
result.idleInTransactionSessionTimeout_ = idleInTransactionSessionTimeout_;
} else {
result.idleInTransactionSessionTimeout_ = idleInTransactionSessionTimeoutBuilder_.build();
}
result.byteaOutput_ = byteaOutput_;
result.xmlbinary_ = xmlbinary_;
result.xmloption_ = xmloption_;
if (ginPendingListLimitBuilder_ == null) {
result.ginPendingListLimit_ = ginPendingListLimit_;
} else {
result.ginPendingListLimit_ = ginPendingListLimitBuilder_.build();
}
if (deadlockTimeoutBuilder_ == null) {
result.deadlockTimeout_ = deadlockTimeout_;
} else {
result.deadlockTimeout_ = deadlockTimeoutBuilder_.build();
}
if (maxLocksPerTransactionBuilder_ == null) {
result.maxLocksPerTransaction_ = maxLocksPerTransaction_;
} else {
result.maxLocksPerTransaction_ = maxLocksPerTransactionBuilder_.build();
}
if (maxPredLocksPerTransactionBuilder_ == null) {
result.maxPredLocksPerTransaction_ = maxPredLocksPerTransaction_;
} else {
result.maxPredLocksPerTransaction_ = maxPredLocksPerTransactionBuilder_.build();
}
if (arrayNullsBuilder_ == null) {
result.arrayNulls_ = arrayNulls_;
} else {
result.arrayNulls_ = arrayNullsBuilder_.build();
}
result.backslashQuote_ = backslashQuote_;
if (defaultWithOidsBuilder_ == null) {
result.defaultWithOids_ = defaultWithOids_;
} else {
result.defaultWithOids_ = defaultWithOidsBuilder_.build();
}
if (escapeStringWarningBuilder_ == null) {
result.escapeStringWarning_ = escapeStringWarning_;
} else {
result.escapeStringWarning_ = escapeStringWarningBuilder_.build();
}
if (loCompatPrivilegesBuilder_ == null) {
result.loCompatPrivileges_ = loCompatPrivileges_;
} else {
result.loCompatPrivileges_ = loCompatPrivilegesBuilder_.build();
}
if (operatorPrecedenceWarningBuilder_ == null) {
result.operatorPrecedenceWarning_ = operatorPrecedenceWarning_;
} else {
result.operatorPrecedenceWarning_ = operatorPrecedenceWarningBuilder_.build();
}
if (quoteAllIdentifiersBuilder_ == null) {
result.quoteAllIdentifiers_ = quoteAllIdentifiers_;
} else {
result.quoteAllIdentifiers_ = quoteAllIdentifiersBuilder_.build();
}
if (standardConformingStringsBuilder_ == null) {
result.standardConformingStrings_ = standardConformingStrings_;
} else {
result.standardConformingStrings_ = standardConformingStringsBuilder_.build();
}
if (synchronizeSeqscansBuilder_ == null) {
result.synchronizeSeqscans_ = synchronizeSeqscans_;
} else {
result.synchronizeSeqscans_ = synchronizeSeqscansBuilder_.build();
}
if (transformNullEqualsBuilder_ == null) {
result.transformNullEquals_ = transformNullEquals_;
} else {
result.transformNullEquals_ = transformNullEqualsBuilder_.build();
}
if (exitOnErrorBuilder_ == null) {
result.exitOnError_ = exitOnError_;
} else {
result.exitOnError_ = exitOnErrorBuilder_.build();
}
if (seqPageCostBuilder_ == null) {
result.seqPageCost_ = seqPageCost_;
} else {
result.seqPageCost_ = seqPageCostBuilder_.build();
}
if (randomPageCostBuilder_ == null) {
result.randomPageCost_ = randomPageCost_;
} else {
result.randomPageCost_ = randomPageCostBuilder_.build();
}
if (enableBitmapscanBuilder_ == null) {
result.enableBitmapscan_ = enableBitmapscan_;
} else {
result.enableBitmapscan_ = enableBitmapscanBuilder_.build();
}
if (enableHashaggBuilder_ == null) {
result.enableHashagg_ = enableHashagg_;
} else {
result.enableHashagg_ = enableHashaggBuilder_.build();
}
if (enableHashjoinBuilder_ == null) {
result.enableHashjoin_ = enableHashjoin_;
} else {
result.enableHashjoin_ = enableHashjoinBuilder_.build();
}
if (enableIndexscanBuilder_ == null) {
result.enableIndexscan_ = enableIndexscan_;
} else {
result.enableIndexscan_ = enableIndexscanBuilder_.build();
}
if (enableIndexonlyscanBuilder_ == null) {
result.enableIndexonlyscan_ = enableIndexonlyscan_;
} else {
result.enableIndexonlyscan_ = enableIndexonlyscanBuilder_.build();
}
if (enableMaterialBuilder_ == null) {
result.enableMaterial_ = enableMaterial_;
} else {
result.enableMaterial_ = enableMaterialBuilder_.build();
}
if (enableMergejoinBuilder_ == null) {
result.enableMergejoin_ = enableMergejoin_;
} else {
result.enableMergejoin_ = enableMergejoinBuilder_.build();
}
if (enableNestloopBuilder_ == null) {
result.enableNestloop_ = enableNestloop_;
} else {
result.enableNestloop_ = enableNestloopBuilder_.build();
}
if (enableSeqscanBuilder_ == null) {
result.enableSeqscan_ = enableSeqscan_;
} else {
result.enableSeqscan_ = enableSeqscanBuilder_.build();
}
if (enableSortBuilder_ == null) {
result.enableSort_ = enableSort_;
} else {
result.enableSort_ = enableSortBuilder_.build();
}
if (enableTidscanBuilder_ == null) {
result.enableTidscan_ = enableTidscan_;
} else {
result.enableTidscan_ = enableTidscanBuilder_.build();
}
if (maxParallelWorkersBuilder_ == null) {
result.maxParallelWorkers_ = maxParallelWorkers_;
} else {
result.maxParallelWorkers_ = maxParallelWorkersBuilder_.build();
}
if (maxParallelWorkersPerGatherBuilder_ == null) {
result.maxParallelWorkersPerGather_ = maxParallelWorkersPerGather_;
} else {
result.maxParallelWorkersPerGather_ = maxParallelWorkersPerGatherBuilder_.build();
}
result.timezone_ = timezone_;
if (effectiveIoConcurrencyBuilder_ == null) {
result.effectiveIoConcurrency_ = effectiveIoConcurrency_;
} else {
result.effectiveIoConcurrency_ = effectiveIoConcurrencyBuilder_.build();
}
if (effectiveCacheSizeBuilder_ == null) {
result.effectiveCacheSize_ = effectiveCacheSize_;
} else {
result.effectiveCacheSize_ = effectiveCacheSizeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) {
return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 other) {
if (other == yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance()) return this;
if (other.hasRecoveryMinApplyDelay()) {
mergeRecoveryMinApplyDelay(other.getRecoveryMinApplyDelay());
}
if (other.hasSharedBuffers()) {
mergeSharedBuffers(other.getSharedBuffers());
}
if (other.hasTempBuffers()) {
mergeTempBuffers(other.getTempBuffers());
}
if (other.hasWorkMem()) {
mergeWorkMem(other.getWorkMem());
}
if (other.hasReplacementSortTuples()) {
mergeReplacementSortTuples(other.getReplacementSortTuples());
}
if (other.hasTempFileLimit()) {
mergeTempFileLimit(other.getTempFileLimit());
}
if (other.hasBackendFlushAfter()) {
mergeBackendFlushAfter(other.getBackendFlushAfter());
}
if (other.hasOldSnapshotThreshold()) {
mergeOldSnapshotThreshold(other.getOldSnapshotThreshold());
}
if (other.hasMaxStandbyStreamingDelay()) {
mergeMaxStandbyStreamingDelay(other.getMaxStandbyStreamingDelay());
}
if (other.constraintExclusion_ != 0) {
setConstraintExclusionValue(other.getConstraintExclusionValue());
}
if (other.hasCursorTupleFraction()) {
mergeCursorTupleFraction(other.getCursorTupleFraction());
}
if (other.hasFromCollapseLimit()) {
mergeFromCollapseLimit(other.getFromCollapseLimit());
}
if (other.hasJoinCollapseLimit()) {
mergeJoinCollapseLimit(other.getJoinCollapseLimit());
}
if (other.forceParallelMode_ != 0) {
setForceParallelModeValue(other.getForceParallelModeValue());
}
if (other.clientMinMessages_ != 0) {
setClientMinMessagesValue(other.getClientMinMessagesValue());
}
if (other.logMinMessages_ != 0) {
setLogMinMessagesValue(other.getLogMinMessagesValue());
}
if (other.logMinErrorStatement_ != 0) {
setLogMinErrorStatementValue(other.getLogMinErrorStatementValue());
}
if (other.hasLogMinDurationStatement()) {
mergeLogMinDurationStatement(other.getLogMinDurationStatement());
}
if (other.hasLogCheckpoints()) {
mergeLogCheckpoints(other.getLogCheckpoints());
}
if (other.hasLogConnections()) {
mergeLogConnections(other.getLogConnections());
}
if (other.hasLogDisconnections()) {
mergeLogDisconnections(other.getLogDisconnections());
}
if (other.hasLogDuration()) {
mergeLogDuration(other.getLogDuration());
}
if (other.logErrorVerbosity_ != 0) {
setLogErrorVerbosityValue(other.getLogErrorVerbosityValue());
}
if (other.hasLogLockWaits()) {
mergeLogLockWaits(other.getLogLockWaits());
}
if (other.logStatement_ != 0) {
setLogStatementValue(other.getLogStatementValue());
}
if (other.hasLogTempFiles()) {
mergeLogTempFiles(other.getLogTempFiles());
}
if (!other.getSearchPath().isEmpty()) {
searchPath_ = other.searchPath_;
onChanged();
}
if (other.hasRowSecurity()) {
mergeRowSecurity(other.getRowSecurity());
}
if (other.defaultTransactionIsolation_ != 0) {
setDefaultTransactionIsolationValue(other.getDefaultTransactionIsolationValue());
}
if (other.hasStatementTimeout()) {
mergeStatementTimeout(other.getStatementTimeout());
}
if (other.hasLockTimeout()) {
mergeLockTimeout(other.getLockTimeout());
}
if (other.hasIdleInTransactionSessionTimeout()) {
mergeIdleInTransactionSessionTimeout(other.getIdleInTransactionSessionTimeout());
}
if (other.byteaOutput_ != 0) {
setByteaOutputValue(other.getByteaOutputValue());
}
if (other.xmlbinary_ != 0) {
setXmlbinaryValue(other.getXmlbinaryValue());
}
if (other.xmloption_ != 0) {
setXmloptionValue(other.getXmloptionValue());
}
if (other.hasGinPendingListLimit()) {
mergeGinPendingListLimit(other.getGinPendingListLimit());
}
if (other.hasDeadlockTimeout()) {
mergeDeadlockTimeout(other.getDeadlockTimeout());
}
if (other.hasMaxLocksPerTransaction()) {
mergeMaxLocksPerTransaction(other.getMaxLocksPerTransaction());
}
if (other.hasMaxPredLocksPerTransaction()) {
mergeMaxPredLocksPerTransaction(other.getMaxPredLocksPerTransaction());
}
if (other.hasArrayNulls()) {
mergeArrayNulls(other.getArrayNulls());
}
if (other.backslashQuote_ != 0) {
setBackslashQuoteValue(other.getBackslashQuoteValue());
}
if (other.hasDefaultWithOids()) {
mergeDefaultWithOids(other.getDefaultWithOids());
}
if (other.hasEscapeStringWarning()) {
mergeEscapeStringWarning(other.getEscapeStringWarning());
}
if (other.hasLoCompatPrivileges()) {
mergeLoCompatPrivileges(other.getLoCompatPrivileges());
}
if (other.hasOperatorPrecedenceWarning()) {
mergeOperatorPrecedenceWarning(other.getOperatorPrecedenceWarning());
}
if (other.hasQuoteAllIdentifiers()) {
mergeQuoteAllIdentifiers(other.getQuoteAllIdentifiers());
}
if (other.hasStandardConformingStrings()) {
mergeStandardConformingStrings(other.getStandardConformingStrings());
}
if (other.hasSynchronizeSeqscans()) {
mergeSynchronizeSeqscans(other.getSynchronizeSeqscans());
}
if (other.hasTransformNullEquals()) {
mergeTransformNullEquals(other.getTransformNullEquals());
}
if (other.hasExitOnError()) {
mergeExitOnError(other.getExitOnError());
}
if (other.hasSeqPageCost()) {
mergeSeqPageCost(other.getSeqPageCost());
}
if (other.hasRandomPageCost()) {
mergeRandomPageCost(other.getRandomPageCost());
}
if (other.hasEnableBitmapscan()) {
mergeEnableBitmapscan(other.getEnableBitmapscan());
}
if (other.hasEnableHashagg()) {
mergeEnableHashagg(other.getEnableHashagg());
}
if (other.hasEnableHashjoin()) {
mergeEnableHashjoin(other.getEnableHashjoin());
}
if (other.hasEnableIndexscan()) {
mergeEnableIndexscan(other.getEnableIndexscan());
}
if (other.hasEnableIndexonlyscan()) {
mergeEnableIndexonlyscan(other.getEnableIndexonlyscan());
}
if (other.hasEnableMaterial()) {
mergeEnableMaterial(other.getEnableMaterial());
}
if (other.hasEnableMergejoin()) {
mergeEnableMergejoin(other.getEnableMergejoin());
}
if (other.hasEnableNestloop()) {
mergeEnableNestloop(other.getEnableNestloop());
}
if (other.hasEnableSeqscan()) {
mergeEnableSeqscan(other.getEnableSeqscan());
}
if (other.hasEnableSort()) {
mergeEnableSort(other.getEnableSort());
}
if (other.hasEnableTidscan()) {
mergeEnableTidscan(other.getEnableTidscan());
}
if (other.hasMaxParallelWorkers()) {
mergeMaxParallelWorkers(other.getMaxParallelWorkers());
}
if (other.hasMaxParallelWorkersPerGather()) {
mergeMaxParallelWorkersPerGather(other.getMaxParallelWorkersPerGather());
}
if (!other.getTimezone().isEmpty()) {
timezone_ = other.timezone_;
onChanged();
}
if (other.hasEffectiveIoConcurrency()) {
mergeEffectiveIoConcurrency(other.getEffectiveIoConcurrency());
}
if (other.hasEffectiveCacheSize()) {
mergeEffectiveCacheSize(other.getEffectiveCacheSize());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Int64Value recoveryMinApplyDelay_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> recoveryMinApplyDelayBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
* @return Whether the recoveryMinApplyDelay field is set.
*/
public boolean hasRecoveryMinApplyDelay() {
return recoveryMinApplyDelayBuilder_ != null || recoveryMinApplyDelay_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
* @return The recoveryMinApplyDelay.
*/
public com.google.protobuf.Int64Value getRecoveryMinApplyDelay() {
if (recoveryMinApplyDelayBuilder_ == null) {
return recoveryMinApplyDelay_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recoveryMinApplyDelay_;
} else {
return recoveryMinApplyDelayBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
public Builder setRecoveryMinApplyDelay(com.google.protobuf.Int64Value value) {
if (recoveryMinApplyDelayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recoveryMinApplyDelay_ = value;
onChanged();
} else {
recoveryMinApplyDelayBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
public Builder setRecoveryMinApplyDelay(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (recoveryMinApplyDelayBuilder_ == null) {
recoveryMinApplyDelay_ = builderForValue.build();
onChanged();
} else {
recoveryMinApplyDelayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
public Builder mergeRecoveryMinApplyDelay(com.google.protobuf.Int64Value value) {
if (recoveryMinApplyDelayBuilder_ == null) {
if (recoveryMinApplyDelay_ != null) {
recoveryMinApplyDelay_ =
com.google.protobuf.Int64Value.newBuilder(recoveryMinApplyDelay_).mergeFrom(value).buildPartial();
} else {
recoveryMinApplyDelay_ = value;
}
onChanged();
} else {
recoveryMinApplyDelayBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
public Builder clearRecoveryMinApplyDelay() {
if (recoveryMinApplyDelayBuilder_ == null) {
recoveryMinApplyDelay_ = null;
onChanged();
} else {
recoveryMinApplyDelay_ = null;
recoveryMinApplyDelayBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
public com.google.protobuf.Int64Value.Builder getRecoveryMinApplyDelayBuilder() {
onChanged();
return getRecoveryMinApplyDelayFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getRecoveryMinApplyDelayOrBuilder() {
if (recoveryMinApplyDelayBuilder_ != null) {
return recoveryMinApplyDelayBuilder_.getMessageOrBuilder();
} else {
return recoveryMinApplyDelay_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : recoveryMinApplyDelay_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value recovery_min_apply_delay = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getRecoveryMinApplyDelayFieldBuilder() {
if (recoveryMinApplyDelayBuilder_ == null) {
recoveryMinApplyDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getRecoveryMinApplyDelay(),
getParentForChildren(),
isClean());
recoveryMinApplyDelay_ = null;
}
return recoveryMinApplyDelayBuilder_;
}
private com.google.protobuf.Int64Value sharedBuffers_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> sharedBuffersBuilder_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
* @return Whether the sharedBuffers field is set.
*/
public boolean hasSharedBuffers() {
return sharedBuffersBuilder_ != null || sharedBuffers_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
* @return The sharedBuffers.
*/
public com.google.protobuf.Int64Value getSharedBuffers() {
if (sharedBuffersBuilder_ == null) {
return sharedBuffers_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : sharedBuffers_;
} else {
return sharedBuffersBuilder_.getMessage();
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
public Builder setSharedBuffers(com.google.protobuf.Int64Value value) {
if (sharedBuffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sharedBuffers_ = value;
onChanged();
} else {
sharedBuffersBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
public Builder setSharedBuffers(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (sharedBuffersBuilder_ == null) {
sharedBuffers_ = builderForValue.build();
onChanged();
} else {
sharedBuffersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
public Builder mergeSharedBuffers(com.google.protobuf.Int64Value value) {
if (sharedBuffersBuilder_ == null) {
if (sharedBuffers_ != null) {
sharedBuffers_ =
com.google.protobuf.Int64Value.newBuilder(sharedBuffers_).mergeFrom(value).buildPartial();
} else {
sharedBuffers_ = value;
}
onChanged();
} else {
sharedBuffersBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
public Builder clearSharedBuffers() {
if (sharedBuffersBuilder_ == null) {
sharedBuffers_ = null;
onChanged();
} else {
sharedBuffers_ = null;
sharedBuffersBuilder_ = null;
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
public com.google.protobuf.Int64Value.Builder getSharedBuffersBuilder() {
onChanged();
return getSharedBuffersFieldBuilder().getBuilder();
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getSharedBuffersOrBuilder() {
if (sharedBuffersBuilder_ != null) {
return sharedBuffersBuilder_.getMessageOrBuilder();
} else {
return sharedBuffers_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : sharedBuffers_;
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value shared_buffers = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getSharedBuffersFieldBuilder() {
if (sharedBuffersBuilder_ == null) {
sharedBuffersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getSharedBuffers(),
getParentForChildren(),
isClean());
sharedBuffers_ = null;
}
return sharedBuffersBuilder_;
}
private com.google.protobuf.Int64Value tempBuffers_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> tempBuffersBuilder_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
* @return Whether the tempBuffers field is set.
*/
public boolean hasTempBuffers() {
return tempBuffersBuilder_ != null || tempBuffers_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
* @return The tempBuffers.
*/
public com.google.protobuf.Int64Value getTempBuffers() {
if (tempBuffersBuilder_ == null) {
return tempBuffers_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : tempBuffers_;
} else {
return tempBuffersBuilder_.getMessage();
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
public Builder setTempBuffers(com.google.protobuf.Int64Value value) {
if (tempBuffersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tempBuffers_ = value;
onChanged();
} else {
tempBuffersBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
public Builder setTempBuffers(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (tempBuffersBuilder_ == null) {
tempBuffers_ = builderForValue.build();
onChanged();
} else {
tempBuffersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
public Builder mergeTempBuffers(com.google.protobuf.Int64Value value) {
if (tempBuffersBuilder_ == null) {
if (tempBuffers_ != null) {
tempBuffers_ =
com.google.protobuf.Int64Value.newBuilder(tempBuffers_).mergeFrom(value).buildPartial();
} else {
tempBuffers_ = value;
}
onChanged();
} else {
tempBuffersBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
public Builder clearTempBuffers() {
if (tempBuffersBuilder_ == null) {
tempBuffers_ = null;
onChanged();
} else {
tempBuffers_ = null;
tempBuffersBuilder_ = null;
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
public com.google.protobuf.Int64Value.Builder getTempBuffersBuilder() {
onChanged();
return getTempBuffersFieldBuilder().getBuilder();
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getTempBuffersOrBuilder() {
if (tempBuffersBuilder_ != null) {
return tempBuffersBuilder_.getMessageOrBuilder();
} else {
return tempBuffers_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : tempBuffers_;
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_buffers = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getTempBuffersFieldBuilder() {
if (tempBuffersBuilder_ == null) {
tempBuffersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getTempBuffers(),
getParentForChildren(),
isClean());
tempBuffers_ = null;
}
return tempBuffersBuilder_;
}
private com.google.protobuf.Int64Value workMem_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> workMemBuilder_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
* @return Whether the workMem field is set.
*/
public boolean hasWorkMem() {
return workMemBuilder_ != null || workMem_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
* @return The workMem.
*/
public com.google.protobuf.Int64Value getWorkMem() {
if (workMemBuilder_ == null) {
return workMem_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : workMem_;
} else {
return workMemBuilder_.getMessage();
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
public Builder setWorkMem(com.google.protobuf.Int64Value value) {
if (workMemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workMem_ = value;
onChanged();
} else {
workMemBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
public Builder setWorkMem(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (workMemBuilder_ == null) {
workMem_ = builderForValue.build();
onChanged();
} else {
workMemBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
public Builder mergeWorkMem(com.google.protobuf.Int64Value value) {
if (workMemBuilder_ == null) {
if (workMem_ != null) {
workMem_ =
com.google.protobuf.Int64Value.newBuilder(workMem_).mergeFrom(value).buildPartial();
} else {
workMem_ = value;
}
onChanged();
} else {
workMemBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
public Builder clearWorkMem() {
if (workMemBuilder_ == null) {
workMem_ = null;
onChanged();
} else {
workMem_ = null;
workMemBuilder_ = null;
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
public com.google.protobuf.Int64Value.Builder getWorkMemBuilder() {
onChanged();
return getWorkMemFieldBuilder().getBuilder();
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getWorkMemOrBuilder() {
if (workMemBuilder_ != null) {
return workMemBuilder_.getMessageOrBuilder();
} else {
return workMem_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : workMem_;
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value work_mem = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getWorkMemFieldBuilder() {
if (workMemBuilder_ == null) {
workMemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getWorkMem(),
getParentForChildren(),
isClean());
workMem_ = null;
}
return workMemBuilder_;
}
private com.google.protobuf.Int64Value replacementSortTuples_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> replacementSortTuplesBuilder_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
* @return Whether the replacementSortTuples field is set.
*/
public boolean hasReplacementSortTuples() {
return replacementSortTuplesBuilder_ != null || replacementSortTuples_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
* @return The replacementSortTuples.
*/
public com.google.protobuf.Int64Value getReplacementSortTuples() {
if (replacementSortTuplesBuilder_ == null) {
return replacementSortTuples_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : replacementSortTuples_;
} else {
return replacementSortTuplesBuilder_.getMessage();
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
public Builder setReplacementSortTuples(com.google.protobuf.Int64Value value) {
if (replacementSortTuplesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
replacementSortTuples_ = value;
onChanged();
} else {
replacementSortTuplesBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
public Builder setReplacementSortTuples(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (replacementSortTuplesBuilder_ == null) {
replacementSortTuples_ = builderForValue.build();
onChanged();
} else {
replacementSortTuplesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
public Builder mergeReplacementSortTuples(com.google.protobuf.Int64Value value) {
if (replacementSortTuplesBuilder_ == null) {
if (replacementSortTuples_ != null) {
replacementSortTuples_ =
com.google.protobuf.Int64Value.newBuilder(replacementSortTuples_).mergeFrom(value).buildPartial();
} else {
replacementSortTuples_ = value;
}
onChanged();
} else {
replacementSortTuplesBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
public Builder clearReplacementSortTuples() {
if (replacementSortTuplesBuilder_ == null) {
replacementSortTuples_ = null;
onChanged();
} else {
replacementSortTuples_ = null;
replacementSortTuplesBuilder_ = null;
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
public com.google.protobuf.Int64Value.Builder getReplacementSortTuplesBuilder() {
onChanged();
return getReplacementSortTuplesFieldBuilder().getBuilder();
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getReplacementSortTuplesOrBuilder() {
if (replacementSortTuplesBuilder_ != null) {
return replacementSortTuplesBuilder_.getMessageOrBuilder();
} else {
return replacementSortTuples_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : replacementSortTuples_;
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value replacement_sort_tuples = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getReplacementSortTuplesFieldBuilder() {
if (replacementSortTuplesBuilder_ == null) {
replacementSortTuplesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getReplacementSortTuples(),
getParentForChildren(),
isClean());
replacementSortTuples_ = null;
}
return replacementSortTuplesBuilder_;
}
private com.google.protobuf.Int64Value tempFileLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> tempFileLimitBuilder_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
* @return Whether the tempFileLimit field is set.
*/
public boolean hasTempFileLimit() {
return tempFileLimitBuilder_ != null || tempFileLimit_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
* @return The tempFileLimit.
*/
public com.google.protobuf.Int64Value getTempFileLimit() {
if (tempFileLimitBuilder_ == null) {
return tempFileLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : tempFileLimit_;
} else {
return tempFileLimitBuilder_.getMessage();
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
public Builder setTempFileLimit(com.google.protobuf.Int64Value value) {
if (tempFileLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tempFileLimit_ = value;
onChanged();
} else {
tempFileLimitBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
public Builder setTempFileLimit(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (tempFileLimitBuilder_ == null) {
tempFileLimit_ = builderForValue.build();
onChanged();
} else {
tempFileLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
public Builder mergeTempFileLimit(com.google.protobuf.Int64Value value) {
if (tempFileLimitBuilder_ == null) {
if (tempFileLimit_ != null) {
tempFileLimit_ =
com.google.protobuf.Int64Value.newBuilder(tempFileLimit_).mergeFrom(value).buildPartial();
} else {
tempFileLimit_ = value;
}
onChanged();
} else {
tempFileLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
public Builder clearTempFileLimit() {
if (tempFileLimitBuilder_ == null) {
tempFileLimit_ = null;
onChanged();
} else {
tempFileLimit_ = null;
tempFileLimitBuilder_ = null;
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
public com.google.protobuf.Int64Value.Builder getTempFileLimitBuilder() {
onChanged();
return getTempFileLimitFieldBuilder().getBuilder();
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getTempFileLimitOrBuilder() {
if (tempFileLimitBuilder_ != null) {
return tempFileLimitBuilder_.getMessageOrBuilder();
} else {
return tempFileLimit_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : tempFileLimit_;
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value temp_file_limit = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getTempFileLimitFieldBuilder() {
if (tempFileLimitBuilder_ == null) {
tempFileLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getTempFileLimit(),
getParentForChildren(),
isClean());
tempFileLimit_ = null;
}
return tempFileLimitBuilder_;
}
private com.google.protobuf.Int64Value backendFlushAfter_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> backendFlushAfterBuilder_;
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
* @return Whether the backendFlushAfter field is set.
*/
public boolean hasBackendFlushAfter() {
return backendFlushAfterBuilder_ != null || backendFlushAfter_ != null;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
* @return The backendFlushAfter.
*/
public com.google.protobuf.Int64Value getBackendFlushAfter() {
if (backendFlushAfterBuilder_ == null) {
return backendFlushAfter_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : backendFlushAfter_;
} else {
return backendFlushAfterBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
public Builder setBackendFlushAfter(com.google.protobuf.Int64Value value) {
if (backendFlushAfterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backendFlushAfter_ = value;
onChanged();
} else {
backendFlushAfterBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
public Builder setBackendFlushAfter(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (backendFlushAfterBuilder_ == null) {
backendFlushAfter_ = builderForValue.build();
onChanged();
} else {
backendFlushAfterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
public Builder mergeBackendFlushAfter(com.google.protobuf.Int64Value value) {
if (backendFlushAfterBuilder_ == null) {
if (backendFlushAfter_ != null) {
backendFlushAfter_ =
com.google.protobuf.Int64Value.newBuilder(backendFlushAfter_).mergeFrom(value).buildPartial();
} else {
backendFlushAfter_ = value;
}
onChanged();
} else {
backendFlushAfterBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
public Builder clearBackendFlushAfter() {
if (backendFlushAfterBuilder_ == null) {
backendFlushAfter_ = null;
onChanged();
} else {
backendFlushAfter_ = null;
backendFlushAfterBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
public com.google.protobuf.Int64Value.Builder getBackendFlushAfterBuilder() {
onChanged();
return getBackendFlushAfterFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getBackendFlushAfterOrBuilder() {
if (backendFlushAfterBuilder_ != null) {
return backendFlushAfterBuilder_.getMessageOrBuilder();
} else {
return backendFlushAfter_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : backendFlushAfter_;
}
}
/**
* <code>.google.protobuf.Int64Value backend_flush_after = 7 [(.yandex.cloud.value) = "0-2048"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getBackendFlushAfterFieldBuilder() {
if (backendFlushAfterBuilder_ == null) {
backendFlushAfterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getBackendFlushAfter(),
getParentForChildren(),
isClean());
backendFlushAfter_ = null;
}
return backendFlushAfterBuilder_;
}
private com.google.protobuf.Int64Value oldSnapshotThreshold_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> oldSnapshotThresholdBuilder_;
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
* @return Whether the oldSnapshotThreshold field is set.
*/
public boolean hasOldSnapshotThreshold() {
return oldSnapshotThresholdBuilder_ != null || oldSnapshotThreshold_ != null;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
* @return The oldSnapshotThreshold.
*/
public com.google.protobuf.Int64Value getOldSnapshotThreshold() {
if (oldSnapshotThresholdBuilder_ == null) {
return oldSnapshotThreshold_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : oldSnapshotThreshold_;
} else {
return oldSnapshotThresholdBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
public Builder setOldSnapshotThreshold(com.google.protobuf.Int64Value value) {
if (oldSnapshotThresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oldSnapshotThreshold_ = value;
onChanged();
} else {
oldSnapshotThresholdBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
public Builder setOldSnapshotThreshold(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (oldSnapshotThresholdBuilder_ == null) {
oldSnapshotThreshold_ = builderForValue.build();
onChanged();
} else {
oldSnapshotThresholdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
public Builder mergeOldSnapshotThreshold(com.google.protobuf.Int64Value value) {
if (oldSnapshotThresholdBuilder_ == null) {
if (oldSnapshotThreshold_ != null) {
oldSnapshotThreshold_ =
com.google.protobuf.Int64Value.newBuilder(oldSnapshotThreshold_).mergeFrom(value).buildPartial();
} else {
oldSnapshotThreshold_ = value;
}
onChanged();
} else {
oldSnapshotThresholdBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
public Builder clearOldSnapshotThreshold() {
if (oldSnapshotThresholdBuilder_ == null) {
oldSnapshotThreshold_ = null;
onChanged();
} else {
oldSnapshotThreshold_ = null;
oldSnapshotThresholdBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
public com.google.protobuf.Int64Value.Builder getOldSnapshotThresholdBuilder() {
onChanged();
return getOldSnapshotThresholdFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getOldSnapshotThresholdOrBuilder() {
if (oldSnapshotThresholdBuilder_ != null) {
return oldSnapshotThresholdBuilder_.getMessageOrBuilder();
} else {
return oldSnapshotThreshold_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : oldSnapshotThreshold_;
}
}
/**
* <code>.google.protobuf.Int64Value old_snapshot_threshold = 8 [(.yandex.cloud.value) = "-1-86400"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getOldSnapshotThresholdFieldBuilder() {
if (oldSnapshotThresholdBuilder_ == null) {
oldSnapshotThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getOldSnapshotThreshold(),
getParentForChildren(),
isClean());
oldSnapshotThreshold_ = null;
}
return oldSnapshotThresholdBuilder_;
}
private com.google.protobuf.Int64Value maxStandbyStreamingDelay_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxStandbyStreamingDelayBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
* @return Whether the maxStandbyStreamingDelay field is set.
*/
public boolean hasMaxStandbyStreamingDelay() {
return maxStandbyStreamingDelayBuilder_ != null || maxStandbyStreamingDelay_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
* @return The maxStandbyStreamingDelay.
*/
public com.google.protobuf.Int64Value getMaxStandbyStreamingDelay() {
if (maxStandbyStreamingDelayBuilder_ == null) {
return maxStandbyStreamingDelay_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxStandbyStreamingDelay_;
} else {
return maxStandbyStreamingDelayBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
public Builder setMaxStandbyStreamingDelay(com.google.protobuf.Int64Value value) {
if (maxStandbyStreamingDelayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxStandbyStreamingDelay_ = value;
onChanged();
} else {
maxStandbyStreamingDelayBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
public Builder setMaxStandbyStreamingDelay(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxStandbyStreamingDelayBuilder_ == null) {
maxStandbyStreamingDelay_ = builderForValue.build();
onChanged();
} else {
maxStandbyStreamingDelayBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
public Builder mergeMaxStandbyStreamingDelay(com.google.protobuf.Int64Value value) {
if (maxStandbyStreamingDelayBuilder_ == null) {
if (maxStandbyStreamingDelay_ != null) {
maxStandbyStreamingDelay_ =
com.google.protobuf.Int64Value.newBuilder(maxStandbyStreamingDelay_).mergeFrom(value).buildPartial();
} else {
maxStandbyStreamingDelay_ = value;
}
onChanged();
} else {
maxStandbyStreamingDelayBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
public Builder clearMaxStandbyStreamingDelay() {
if (maxStandbyStreamingDelayBuilder_ == null) {
maxStandbyStreamingDelay_ = null;
onChanged();
} else {
maxStandbyStreamingDelay_ = null;
maxStandbyStreamingDelayBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
public com.google.protobuf.Int64Value.Builder getMaxStandbyStreamingDelayBuilder() {
onChanged();
return getMaxStandbyStreamingDelayFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxStandbyStreamingDelayOrBuilder() {
if (maxStandbyStreamingDelayBuilder_ != null) {
return maxStandbyStreamingDelayBuilder_.getMessageOrBuilder();
} else {
return maxStandbyStreamingDelay_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxStandbyStreamingDelay_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value max_standby_streaming_delay = 9;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxStandbyStreamingDelayFieldBuilder() {
if (maxStandbyStreamingDelayBuilder_ == null) {
maxStandbyStreamingDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxStandbyStreamingDelay(),
getParentForChildren(),
isClean());
maxStandbyStreamingDelay_ = null;
}
return maxStandbyStreamingDelayBuilder_;
}
private int constraintExclusion_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return The enum numeric value on the wire for constraintExclusion.
*/
@java.lang.Override public int getConstraintExclusionValue() {
return constraintExclusion_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @param value The enum numeric value on the wire for constraintExclusion to set.
* @return This builder for chaining.
*/
public Builder setConstraintExclusionValue(int value) {
constraintExclusion_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return The constraintExclusion.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion getConstraintExclusion() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion.valueOf(constraintExclusion_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @param value The constraintExclusion to set.
* @return This builder for chaining.
*/
public Builder setConstraintExclusion(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ConstraintExclusion value) {
if (value == null) {
throw new NullPointerException();
}
constraintExclusion_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ConstraintExclusion constraint_exclusion = 10;</code>
* @return This builder for chaining.
*/
public Builder clearConstraintExclusion() {
constraintExclusion_ = 0;
onChanged();
return this;
}
private com.google.protobuf.DoubleValue cursorTupleFraction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> cursorTupleFractionBuilder_;
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
* @return Whether the cursorTupleFraction field is set.
*/
public boolean hasCursorTupleFraction() {
return cursorTupleFractionBuilder_ != null || cursorTupleFraction_ != null;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
* @return The cursorTupleFraction.
*/
public com.google.protobuf.DoubleValue getCursorTupleFraction() {
if (cursorTupleFractionBuilder_ == null) {
return cursorTupleFraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : cursorTupleFraction_;
} else {
return cursorTupleFractionBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
public Builder setCursorTupleFraction(com.google.protobuf.DoubleValue value) {
if (cursorTupleFractionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cursorTupleFraction_ = value;
onChanged();
} else {
cursorTupleFractionBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
public Builder setCursorTupleFraction(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (cursorTupleFractionBuilder_ == null) {
cursorTupleFraction_ = builderForValue.build();
onChanged();
} else {
cursorTupleFractionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
public Builder mergeCursorTupleFraction(com.google.protobuf.DoubleValue value) {
if (cursorTupleFractionBuilder_ == null) {
if (cursorTupleFraction_ != null) {
cursorTupleFraction_ =
com.google.protobuf.DoubleValue.newBuilder(cursorTupleFraction_).mergeFrom(value).buildPartial();
} else {
cursorTupleFraction_ = value;
}
onChanged();
} else {
cursorTupleFractionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
public Builder clearCursorTupleFraction() {
if (cursorTupleFractionBuilder_ == null) {
cursorTupleFraction_ = null;
onChanged();
} else {
cursorTupleFraction_ = null;
cursorTupleFractionBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
public com.google.protobuf.DoubleValue.Builder getCursorTupleFractionBuilder() {
onChanged();
return getCursorTupleFractionFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
public com.google.protobuf.DoubleValueOrBuilder getCursorTupleFractionOrBuilder() {
if (cursorTupleFractionBuilder_ != null) {
return cursorTupleFractionBuilder_.getMessageOrBuilder();
} else {
return cursorTupleFraction_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : cursorTupleFraction_;
}
}
/**
* <code>.google.protobuf.DoubleValue cursor_tuple_fraction = 11;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getCursorTupleFractionFieldBuilder() {
if (cursorTupleFractionBuilder_ == null) {
cursorTupleFractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getCursorTupleFraction(),
getParentForChildren(),
isClean());
cursorTupleFraction_ = null;
}
return cursorTupleFractionBuilder_;
}
private com.google.protobuf.Int64Value fromCollapseLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> fromCollapseLimitBuilder_;
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return Whether the fromCollapseLimit field is set.
*/
public boolean hasFromCollapseLimit() {
return fromCollapseLimitBuilder_ != null || fromCollapseLimit_ != null;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return The fromCollapseLimit.
*/
public com.google.protobuf.Int64Value getFromCollapseLimit() {
if (fromCollapseLimitBuilder_ == null) {
return fromCollapseLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : fromCollapseLimit_;
} else {
return fromCollapseLimitBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder setFromCollapseLimit(com.google.protobuf.Int64Value value) {
if (fromCollapseLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fromCollapseLimit_ = value;
onChanged();
} else {
fromCollapseLimitBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder setFromCollapseLimit(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (fromCollapseLimitBuilder_ == null) {
fromCollapseLimit_ = builderForValue.build();
onChanged();
} else {
fromCollapseLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder mergeFromCollapseLimit(com.google.protobuf.Int64Value value) {
if (fromCollapseLimitBuilder_ == null) {
if (fromCollapseLimit_ != null) {
fromCollapseLimit_ =
com.google.protobuf.Int64Value.newBuilder(fromCollapseLimit_).mergeFrom(value).buildPartial();
} else {
fromCollapseLimit_ = value;
}
onChanged();
} else {
fromCollapseLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder clearFromCollapseLimit() {
if (fromCollapseLimitBuilder_ == null) {
fromCollapseLimit_ = null;
onChanged();
} else {
fromCollapseLimit_ = null;
fromCollapseLimitBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public com.google.protobuf.Int64Value.Builder getFromCollapseLimitBuilder() {
onChanged();
return getFromCollapseLimitFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getFromCollapseLimitOrBuilder() {
if (fromCollapseLimitBuilder_ != null) {
return fromCollapseLimitBuilder_.getMessageOrBuilder();
} else {
return fromCollapseLimit_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : fromCollapseLimit_;
}
}
/**
* <code>.google.protobuf.Int64Value from_collapse_limit = 12 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getFromCollapseLimitFieldBuilder() {
if (fromCollapseLimitBuilder_ == null) {
fromCollapseLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getFromCollapseLimit(),
getParentForChildren(),
isClean());
fromCollapseLimit_ = null;
}
return fromCollapseLimitBuilder_;
}
private com.google.protobuf.Int64Value joinCollapseLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> joinCollapseLimitBuilder_;
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return Whether the joinCollapseLimit field is set.
*/
public boolean hasJoinCollapseLimit() {
return joinCollapseLimitBuilder_ != null || joinCollapseLimit_ != null;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
* @return The joinCollapseLimit.
*/
public com.google.protobuf.Int64Value getJoinCollapseLimit() {
if (joinCollapseLimitBuilder_ == null) {
return joinCollapseLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : joinCollapseLimit_;
} else {
return joinCollapseLimitBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder setJoinCollapseLimit(com.google.protobuf.Int64Value value) {
if (joinCollapseLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
joinCollapseLimit_ = value;
onChanged();
} else {
joinCollapseLimitBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder setJoinCollapseLimit(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (joinCollapseLimitBuilder_ == null) {
joinCollapseLimit_ = builderForValue.build();
onChanged();
} else {
joinCollapseLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder mergeJoinCollapseLimit(com.google.protobuf.Int64Value value) {
if (joinCollapseLimitBuilder_ == null) {
if (joinCollapseLimit_ != null) {
joinCollapseLimit_ =
com.google.protobuf.Int64Value.newBuilder(joinCollapseLimit_).mergeFrom(value).buildPartial();
} else {
joinCollapseLimit_ = value;
}
onChanged();
} else {
joinCollapseLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public Builder clearJoinCollapseLimit() {
if (joinCollapseLimitBuilder_ == null) {
joinCollapseLimit_ = null;
onChanged();
} else {
joinCollapseLimit_ = null;
joinCollapseLimitBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public com.google.protobuf.Int64Value.Builder getJoinCollapseLimitBuilder() {
onChanged();
return getJoinCollapseLimitFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getJoinCollapseLimitOrBuilder() {
if (joinCollapseLimitBuilder_ != null) {
return joinCollapseLimitBuilder_.getMessageOrBuilder();
} else {
return joinCollapseLimit_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : joinCollapseLimit_;
}
}
/**
* <code>.google.protobuf.Int64Value join_collapse_limit = 13 [(.yandex.cloud.value) = "1-2147483647"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getJoinCollapseLimitFieldBuilder() {
if (joinCollapseLimitBuilder_ == null) {
joinCollapseLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getJoinCollapseLimit(),
getParentForChildren(),
isClean());
joinCollapseLimit_ = null;
}
return joinCollapseLimitBuilder_;
}
private int forceParallelMode_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return The enum numeric value on the wire for forceParallelMode.
*/
@java.lang.Override public int getForceParallelModeValue() {
return forceParallelMode_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @param value The enum numeric value on the wire for forceParallelMode to set.
* @return This builder for chaining.
*/
public Builder setForceParallelModeValue(int value) {
forceParallelMode_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return The forceParallelMode.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode getForceParallelMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode.valueOf(forceParallelMode_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @param value The forceParallelMode to set.
* @return This builder for chaining.
*/
public Builder setForceParallelMode(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ForceParallelMode value) {
if (value == null) {
throw new NullPointerException();
}
forceParallelMode_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ForceParallelMode force_parallel_mode = 14;</code>
* @return This builder for chaining.
*/
public Builder clearForceParallelMode() {
forceParallelMode_ = 0;
onChanged();
return this;
}
private int clientMinMessages_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return The enum numeric value on the wire for clientMinMessages.
*/
@java.lang.Override public int getClientMinMessagesValue() {
return clientMinMessages_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @param value The enum numeric value on the wire for clientMinMessages to set.
* @return This builder for chaining.
*/
public Builder setClientMinMessagesValue(int value) {
clientMinMessages_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return The clientMinMessages.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getClientMinMessages() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.valueOf(clientMinMessages_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @param value The clientMinMessages to set.
* @return This builder for chaining.
*/
public Builder setClientMinMessages(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel value) {
if (value == null) {
throw new NullPointerException();
}
clientMinMessages_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel client_min_messages = 15;</code>
* @return This builder for chaining.
*/
public Builder clearClientMinMessages() {
clientMinMessages_ = 0;
onChanged();
return this;
}
private int logMinMessages_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return The enum numeric value on the wire for logMinMessages.
*/
@java.lang.Override public int getLogMinMessagesValue() {
return logMinMessages_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @param value The enum numeric value on the wire for logMinMessages to set.
* @return This builder for chaining.
*/
public Builder setLogMinMessagesValue(int value) {
logMinMessages_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return The logMinMessages.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getLogMinMessages() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.valueOf(logMinMessages_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @param value The logMinMessages to set.
* @return This builder for chaining.
*/
public Builder setLogMinMessages(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel value) {
if (value == null) {
throw new NullPointerException();
}
logMinMessages_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_messages = 16;</code>
* @return This builder for chaining.
*/
public Builder clearLogMinMessages() {
logMinMessages_ = 0;
onChanged();
return this;
}
private int logMinErrorStatement_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return The enum numeric value on the wire for logMinErrorStatement.
*/
@java.lang.Override public int getLogMinErrorStatementValue() {
return logMinErrorStatement_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @param value The enum numeric value on the wire for logMinErrorStatement to set.
* @return This builder for chaining.
*/
public Builder setLogMinErrorStatementValue(int value) {
logMinErrorStatement_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return The logMinErrorStatement.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel getLogMinErrorStatement() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.valueOf(logMinErrorStatement_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @param value The logMinErrorStatement to set.
* @return This builder for chaining.
*/
public Builder setLogMinErrorStatement(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogLevel value) {
if (value == null) {
throw new NullPointerException();
}
logMinErrorStatement_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogLevel log_min_error_statement = 17;</code>
* @return This builder for chaining.
*/
public Builder clearLogMinErrorStatement() {
logMinErrorStatement_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Int64Value logMinDurationStatement_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> logMinDurationStatementBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
* @return Whether the logMinDurationStatement field is set.
*/
public boolean hasLogMinDurationStatement() {
return logMinDurationStatementBuilder_ != null || logMinDurationStatement_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
* @return The logMinDurationStatement.
*/
public com.google.protobuf.Int64Value getLogMinDurationStatement() {
if (logMinDurationStatementBuilder_ == null) {
return logMinDurationStatement_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : logMinDurationStatement_;
} else {
return logMinDurationStatementBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
public Builder setLogMinDurationStatement(com.google.protobuf.Int64Value value) {
if (logMinDurationStatementBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logMinDurationStatement_ = value;
onChanged();
} else {
logMinDurationStatementBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
public Builder setLogMinDurationStatement(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (logMinDurationStatementBuilder_ == null) {
logMinDurationStatement_ = builderForValue.build();
onChanged();
} else {
logMinDurationStatementBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
public Builder mergeLogMinDurationStatement(com.google.protobuf.Int64Value value) {
if (logMinDurationStatementBuilder_ == null) {
if (logMinDurationStatement_ != null) {
logMinDurationStatement_ =
com.google.protobuf.Int64Value.newBuilder(logMinDurationStatement_).mergeFrom(value).buildPartial();
} else {
logMinDurationStatement_ = value;
}
onChanged();
} else {
logMinDurationStatementBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
public Builder clearLogMinDurationStatement() {
if (logMinDurationStatementBuilder_ == null) {
logMinDurationStatement_ = null;
onChanged();
} else {
logMinDurationStatement_ = null;
logMinDurationStatementBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
public com.google.protobuf.Int64Value.Builder getLogMinDurationStatementBuilder() {
onChanged();
return getLogMinDurationStatementFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getLogMinDurationStatementOrBuilder() {
if (logMinDurationStatementBuilder_ != null) {
return logMinDurationStatementBuilder_.getMessageOrBuilder();
} else {
return logMinDurationStatement_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : logMinDurationStatement_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value log_min_duration_statement = 18;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getLogMinDurationStatementFieldBuilder() {
if (logMinDurationStatementBuilder_ == null) {
logMinDurationStatementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getLogMinDurationStatement(),
getParentForChildren(),
isClean());
logMinDurationStatement_ = null;
}
return logMinDurationStatementBuilder_;
}
private com.google.protobuf.BoolValue logCheckpoints_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> logCheckpointsBuilder_;
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
* @return Whether the logCheckpoints field is set.
*/
public boolean hasLogCheckpoints() {
return logCheckpointsBuilder_ != null || logCheckpoints_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
* @return The logCheckpoints.
*/
public com.google.protobuf.BoolValue getLogCheckpoints() {
if (logCheckpointsBuilder_ == null) {
return logCheckpoints_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logCheckpoints_;
} else {
return logCheckpointsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
public Builder setLogCheckpoints(com.google.protobuf.BoolValue value) {
if (logCheckpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logCheckpoints_ = value;
onChanged();
} else {
logCheckpointsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
public Builder setLogCheckpoints(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (logCheckpointsBuilder_ == null) {
logCheckpoints_ = builderForValue.build();
onChanged();
} else {
logCheckpointsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
public Builder mergeLogCheckpoints(com.google.protobuf.BoolValue value) {
if (logCheckpointsBuilder_ == null) {
if (logCheckpoints_ != null) {
logCheckpoints_ =
com.google.protobuf.BoolValue.newBuilder(logCheckpoints_).mergeFrom(value).buildPartial();
} else {
logCheckpoints_ = value;
}
onChanged();
} else {
logCheckpointsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
public Builder clearLogCheckpoints() {
if (logCheckpointsBuilder_ == null) {
logCheckpoints_ = null;
onChanged();
} else {
logCheckpoints_ = null;
logCheckpointsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
public com.google.protobuf.BoolValue.Builder getLogCheckpointsBuilder() {
onChanged();
return getLogCheckpointsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getLogCheckpointsOrBuilder() {
if (logCheckpointsBuilder_ != null) {
return logCheckpointsBuilder_.getMessageOrBuilder();
} else {
return logCheckpoints_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : logCheckpoints_;
}
}
/**
* <code>.google.protobuf.BoolValue log_checkpoints = 19;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getLogCheckpointsFieldBuilder() {
if (logCheckpointsBuilder_ == null) {
logCheckpointsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getLogCheckpoints(),
getParentForChildren(),
isClean());
logCheckpoints_ = null;
}
return logCheckpointsBuilder_;
}
private com.google.protobuf.BoolValue logConnections_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> logConnectionsBuilder_;
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
* @return Whether the logConnections field is set.
*/
public boolean hasLogConnections() {
return logConnectionsBuilder_ != null || logConnections_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
* @return The logConnections.
*/
public com.google.protobuf.BoolValue getLogConnections() {
if (logConnectionsBuilder_ == null) {
return logConnections_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logConnections_;
} else {
return logConnectionsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
public Builder setLogConnections(com.google.protobuf.BoolValue value) {
if (logConnectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logConnections_ = value;
onChanged();
} else {
logConnectionsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
public Builder setLogConnections(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (logConnectionsBuilder_ == null) {
logConnections_ = builderForValue.build();
onChanged();
} else {
logConnectionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
public Builder mergeLogConnections(com.google.protobuf.BoolValue value) {
if (logConnectionsBuilder_ == null) {
if (logConnections_ != null) {
logConnections_ =
com.google.protobuf.BoolValue.newBuilder(logConnections_).mergeFrom(value).buildPartial();
} else {
logConnections_ = value;
}
onChanged();
} else {
logConnectionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
public Builder clearLogConnections() {
if (logConnectionsBuilder_ == null) {
logConnections_ = null;
onChanged();
} else {
logConnections_ = null;
logConnectionsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
public com.google.protobuf.BoolValue.Builder getLogConnectionsBuilder() {
onChanged();
return getLogConnectionsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getLogConnectionsOrBuilder() {
if (logConnectionsBuilder_ != null) {
return logConnectionsBuilder_.getMessageOrBuilder();
} else {
return logConnections_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : logConnections_;
}
}
/**
* <code>.google.protobuf.BoolValue log_connections = 20;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getLogConnectionsFieldBuilder() {
if (logConnectionsBuilder_ == null) {
logConnectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getLogConnections(),
getParentForChildren(),
isClean());
logConnections_ = null;
}
return logConnectionsBuilder_;
}
private com.google.protobuf.BoolValue logDisconnections_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> logDisconnectionsBuilder_;
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
* @return Whether the logDisconnections field is set.
*/
public boolean hasLogDisconnections() {
return logDisconnectionsBuilder_ != null || logDisconnections_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
* @return The logDisconnections.
*/
public com.google.protobuf.BoolValue getLogDisconnections() {
if (logDisconnectionsBuilder_ == null) {
return logDisconnections_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logDisconnections_;
} else {
return logDisconnectionsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
public Builder setLogDisconnections(com.google.protobuf.BoolValue value) {
if (logDisconnectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logDisconnections_ = value;
onChanged();
} else {
logDisconnectionsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
public Builder setLogDisconnections(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (logDisconnectionsBuilder_ == null) {
logDisconnections_ = builderForValue.build();
onChanged();
} else {
logDisconnectionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
public Builder mergeLogDisconnections(com.google.protobuf.BoolValue value) {
if (logDisconnectionsBuilder_ == null) {
if (logDisconnections_ != null) {
logDisconnections_ =
com.google.protobuf.BoolValue.newBuilder(logDisconnections_).mergeFrom(value).buildPartial();
} else {
logDisconnections_ = value;
}
onChanged();
} else {
logDisconnectionsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
public Builder clearLogDisconnections() {
if (logDisconnectionsBuilder_ == null) {
logDisconnections_ = null;
onChanged();
} else {
logDisconnections_ = null;
logDisconnectionsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
public com.google.protobuf.BoolValue.Builder getLogDisconnectionsBuilder() {
onChanged();
return getLogDisconnectionsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getLogDisconnectionsOrBuilder() {
if (logDisconnectionsBuilder_ != null) {
return logDisconnectionsBuilder_.getMessageOrBuilder();
} else {
return logDisconnections_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : logDisconnections_;
}
}
/**
* <code>.google.protobuf.BoolValue log_disconnections = 21;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getLogDisconnectionsFieldBuilder() {
if (logDisconnectionsBuilder_ == null) {
logDisconnectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getLogDisconnections(),
getParentForChildren(),
isClean());
logDisconnections_ = null;
}
return logDisconnectionsBuilder_;
}
private com.google.protobuf.BoolValue logDuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> logDurationBuilder_;
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
* @return Whether the logDuration field is set.
*/
public boolean hasLogDuration() {
return logDurationBuilder_ != null || logDuration_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
* @return The logDuration.
*/
public com.google.protobuf.BoolValue getLogDuration() {
if (logDurationBuilder_ == null) {
return logDuration_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logDuration_;
} else {
return logDurationBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
public Builder setLogDuration(com.google.protobuf.BoolValue value) {
if (logDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logDuration_ = value;
onChanged();
} else {
logDurationBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
public Builder setLogDuration(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (logDurationBuilder_ == null) {
logDuration_ = builderForValue.build();
onChanged();
} else {
logDurationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
public Builder mergeLogDuration(com.google.protobuf.BoolValue value) {
if (logDurationBuilder_ == null) {
if (logDuration_ != null) {
logDuration_ =
com.google.protobuf.BoolValue.newBuilder(logDuration_).mergeFrom(value).buildPartial();
} else {
logDuration_ = value;
}
onChanged();
} else {
logDurationBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
public Builder clearLogDuration() {
if (logDurationBuilder_ == null) {
logDuration_ = null;
onChanged();
} else {
logDuration_ = null;
logDurationBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
public com.google.protobuf.BoolValue.Builder getLogDurationBuilder() {
onChanged();
return getLogDurationFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getLogDurationOrBuilder() {
if (logDurationBuilder_ != null) {
return logDurationBuilder_.getMessageOrBuilder();
} else {
return logDuration_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : logDuration_;
}
}
/**
* <code>.google.protobuf.BoolValue log_duration = 22;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getLogDurationFieldBuilder() {
if (logDurationBuilder_ == null) {
logDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getLogDuration(),
getParentForChildren(),
isClean());
logDuration_ = null;
}
return logDurationBuilder_;
}
private int logErrorVerbosity_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return The enum numeric value on the wire for logErrorVerbosity.
*/
@java.lang.Override public int getLogErrorVerbosityValue() {
return logErrorVerbosity_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @param value The enum numeric value on the wire for logErrorVerbosity to set.
* @return This builder for chaining.
*/
public Builder setLogErrorVerbosityValue(int value) {
logErrorVerbosity_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return The logErrorVerbosity.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity getLogErrorVerbosity() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity.valueOf(logErrorVerbosity_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @param value The logErrorVerbosity to set.
* @return This builder for chaining.
*/
public Builder setLogErrorVerbosity(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogErrorVerbosity value) {
if (value == null) {
throw new NullPointerException();
}
logErrorVerbosity_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogErrorVerbosity log_error_verbosity = 23;</code>
* @return This builder for chaining.
*/
public Builder clearLogErrorVerbosity() {
logErrorVerbosity_ = 0;
onChanged();
return this;
}
private com.google.protobuf.BoolValue logLockWaits_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> logLockWaitsBuilder_;
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
* @return Whether the logLockWaits field is set.
*/
public boolean hasLogLockWaits() {
return logLockWaitsBuilder_ != null || logLockWaits_ != null;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
* @return The logLockWaits.
*/
public com.google.protobuf.BoolValue getLogLockWaits() {
if (logLockWaitsBuilder_ == null) {
return logLockWaits_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : logLockWaits_;
} else {
return logLockWaitsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
public Builder setLogLockWaits(com.google.protobuf.BoolValue value) {
if (logLockWaitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logLockWaits_ = value;
onChanged();
} else {
logLockWaitsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
public Builder setLogLockWaits(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (logLockWaitsBuilder_ == null) {
logLockWaits_ = builderForValue.build();
onChanged();
} else {
logLockWaitsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
public Builder mergeLogLockWaits(com.google.protobuf.BoolValue value) {
if (logLockWaitsBuilder_ == null) {
if (logLockWaits_ != null) {
logLockWaits_ =
com.google.protobuf.BoolValue.newBuilder(logLockWaits_).mergeFrom(value).buildPartial();
} else {
logLockWaits_ = value;
}
onChanged();
} else {
logLockWaitsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
public Builder clearLogLockWaits() {
if (logLockWaitsBuilder_ == null) {
logLockWaits_ = null;
onChanged();
} else {
logLockWaits_ = null;
logLockWaitsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
public com.google.protobuf.BoolValue.Builder getLogLockWaitsBuilder() {
onChanged();
return getLogLockWaitsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getLogLockWaitsOrBuilder() {
if (logLockWaitsBuilder_ != null) {
return logLockWaitsBuilder_.getMessageOrBuilder();
} else {
return logLockWaits_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : logLockWaits_;
}
}
/**
* <code>.google.protobuf.BoolValue log_lock_waits = 24;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getLogLockWaitsFieldBuilder() {
if (logLockWaitsBuilder_ == null) {
logLockWaitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getLogLockWaits(),
getParentForChildren(),
isClean());
logLockWaits_ = null;
}
return logLockWaitsBuilder_;
}
private int logStatement_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return The enum numeric value on the wire for logStatement.
*/
@java.lang.Override public int getLogStatementValue() {
return logStatement_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @param value The enum numeric value on the wire for logStatement to set.
* @return This builder for chaining.
*/
public Builder setLogStatementValue(int value) {
logStatement_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return The logStatement.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement getLogStatement() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement.valueOf(logStatement_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @param value The logStatement to set.
* @return This builder for chaining.
*/
public Builder setLogStatement(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.LogStatement value) {
if (value == null) {
throw new NullPointerException();
}
logStatement_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.LogStatement log_statement = 25;</code>
* @return This builder for chaining.
*/
public Builder clearLogStatement() {
logStatement_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Int64Value logTempFiles_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> logTempFilesBuilder_;
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
* @return Whether the logTempFiles field is set.
*/
public boolean hasLogTempFiles() {
return logTempFilesBuilder_ != null || logTempFiles_ != null;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
* @return The logTempFiles.
*/
public com.google.protobuf.Int64Value getLogTempFiles() {
if (logTempFilesBuilder_ == null) {
return logTempFiles_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : logTempFiles_;
} else {
return logTempFilesBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
public Builder setLogTempFiles(com.google.protobuf.Int64Value value) {
if (logTempFilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logTempFiles_ = value;
onChanged();
} else {
logTempFilesBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
public Builder setLogTempFiles(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (logTempFilesBuilder_ == null) {
logTempFiles_ = builderForValue.build();
onChanged();
} else {
logTempFilesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
public Builder mergeLogTempFiles(com.google.protobuf.Int64Value value) {
if (logTempFilesBuilder_ == null) {
if (logTempFiles_ != null) {
logTempFiles_ =
com.google.protobuf.Int64Value.newBuilder(logTempFiles_).mergeFrom(value).buildPartial();
} else {
logTempFiles_ = value;
}
onChanged();
} else {
logTempFilesBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
public Builder clearLogTempFiles() {
if (logTempFilesBuilder_ == null) {
logTempFiles_ = null;
onChanged();
} else {
logTempFiles_ = null;
logTempFilesBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
public com.google.protobuf.Int64Value.Builder getLogTempFilesBuilder() {
onChanged();
return getLogTempFilesFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getLogTempFilesOrBuilder() {
if (logTempFilesBuilder_ != null) {
return logTempFilesBuilder_.getMessageOrBuilder();
} else {
return logTempFiles_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : logTempFiles_;
}
}
/**
* <code>.google.protobuf.Int64Value log_temp_files = 26;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getLogTempFilesFieldBuilder() {
if (logTempFilesBuilder_ == null) {
logTempFilesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getLogTempFiles(),
getParentForChildren(),
isClean());
logTempFiles_ = null;
}
return logTempFilesBuilder_;
}
private java.lang.Object searchPath_ = "";
/**
* <code>string search_path = 27;</code>
* @return The searchPath.
*/
public java.lang.String getSearchPath() {
java.lang.Object ref = searchPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
searchPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string search_path = 27;</code>
* @return The bytes for searchPath.
*/
public com.google.protobuf.ByteString
getSearchPathBytes() {
java.lang.Object ref = searchPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string search_path = 27;</code>
* @param value The searchPath to set.
* @return This builder for chaining.
*/
public Builder setSearchPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
searchPath_ = value;
onChanged();
return this;
}
/**
* <code>string search_path = 27;</code>
* @return This builder for chaining.
*/
public Builder clearSearchPath() {
searchPath_ = getDefaultInstance().getSearchPath();
onChanged();
return this;
}
/**
* <code>string search_path = 27;</code>
* @param value The bytes for searchPath to set.
* @return This builder for chaining.
*/
public Builder setSearchPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
searchPath_ = value;
onChanged();
return this;
}
private com.google.protobuf.BoolValue rowSecurity_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> rowSecurityBuilder_;
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
* @return Whether the rowSecurity field is set.
*/
public boolean hasRowSecurity() {
return rowSecurityBuilder_ != null || rowSecurity_ != null;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
* @return The rowSecurity.
*/
public com.google.protobuf.BoolValue getRowSecurity() {
if (rowSecurityBuilder_ == null) {
return rowSecurity_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : rowSecurity_;
} else {
return rowSecurityBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
public Builder setRowSecurity(com.google.protobuf.BoolValue value) {
if (rowSecurityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rowSecurity_ = value;
onChanged();
} else {
rowSecurityBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
public Builder setRowSecurity(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (rowSecurityBuilder_ == null) {
rowSecurity_ = builderForValue.build();
onChanged();
} else {
rowSecurityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
public Builder mergeRowSecurity(com.google.protobuf.BoolValue value) {
if (rowSecurityBuilder_ == null) {
if (rowSecurity_ != null) {
rowSecurity_ =
com.google.protobuf.BoolValue.newBuilder(rowSecurity_).mergeFrom(value).buildPartial();
} else {
rowSecurity_ = value;
}
onChanged();
} else {
rowSecurityBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
public Builder clearRowSecurity() {
if (rowSecurityBuilder_ == null) {
rowSecurity_ = null;
onChanged();
} else {
rowSecurity_ = null;
rowSecurityBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
public com.google.protobuf.BoolValue.Builder getRowSecurityBuilder() {
onChanged();
return getRowSecurityFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getRowSecurityOrBuilder() {
if (rowSecurityBuilder_ != null) {
return rowSecurityBuilder_.getMessageOrBuilder();
} else {
return rowSecurity_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : rowSecurity_;
}
}
/**
* <code>.google.protobuf.BoolValue row_security = 28;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getRowSecurityFieldBuilder() {
if (rowSecurityBuilder_ == null) {
rowSecurityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getRowSecurity(),
getParentForChildren(),
isClean());
rowSecurity_ = null;
}
return rowSecurityBuilder_;
}
private int defaultTransactionIsolation_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return The enum numeric value on the wire for defaultTransactionIsolation.
*/
@java.lang.Override public int getDefaultTransactionIsolationValue() {
return defaultTransactionIsolation_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @param value The enum numeric value on the wire for defaultTransactionIsolation to set.
* @return This builder for chaining.
*/
public Builder setDefaultTransactionIsolationValue(int value) {
defaultTransactionIsolation_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return The defaultTransactionIsolation.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation getDefaultTransactionIsolation() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation.valueOf(defaultTransactionIsolation_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @param value The defaultTransactionIsolation to set.
* @return This builder for chaining.
*/
public Builder setDefaultTransactionIsolation(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.TransactionIsolation value) {
if (value == null) {
throw new NullPointerException();
}
defaultTransactionIsolation_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.TransactionIsolation default_transaction_isolation = 29;</code>
* @return This builder for chaining.
*/
public Builder clearDefaultTransactionIsolation() {
defaultTransactionIsolation_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Int64Value statementTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> statementTimeoutBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
* @return Whether the statementTimeout field is set.
*/
public boolean hasStatementTimeout() {
return statementTimeoutBuilder_ != null || statementTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
* @return The statementTimeout.
*/
public com.google.protobuf.Int64Value getStatementTimeout() {
if (statementTimeoutBuilder_ == null) {
return statementTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : statementTimeout_;
} else {
return statementTimeoutBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
public Builder setStatementTimeout(com.google.protobuf.Int64Value value) {
if (statementTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statementTimeout_ = value;
onChanged();
} else {
statementTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
public Builder setStatementTimeout(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (statementTimeoutBuilder_ == null) {
statementTimeout_ = builderForValue.build();
onChanged();
} else {
statementTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
public Builder mergeStatementTimeout(com.google.protobuf.Int64Value value) {
if (statementTimeoutBuilder_ == null) {
if (statementTimeout_ != null) {
statementTimeout_ =
com.google.protobuf.Int64Value.newBuilder(statementTimeout_).mergeFrom(value).buildPartial();
} else {
statementTimeout_ = value;
}
onChanged();
} else {
statementTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
public Builder clearStatementTimeout() {
if (statementTimeoutBuilder_ == null) {
statementTimeout_ = null;
onChanged();
} else {
statementTimeout_ = null;
statementTimeoutBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
public com.google.protobuf.Int64Value.Builder getStatementTimeoutBuilder() {
onChanged();
return getStatementTimeoutFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getStatementTimeoutOrBuilder() {
if (statementTimeoutBuilder_ != null) {
return statementTimeoutBuilder_.getMessageOrBuilder();
} else {
return statementTimeout_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : statementTimeout_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value statement_timeout = 30;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getStatementTimeoutFieldBuilder() {
if (statementTimeoutBuilder_ == null) {
statementTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getStatementTimeout(),
getParentForChildren(),
isClean());
statementTimeout_ = null;
}
return statementTimeoutBuilder_;
}
private com.google.protobuf.Int64Value lockTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> lockTimeoutBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
* @return Whether the lockTimeout field is set.
*/
public boolean hasLockTimeout() {
return lockTimeoutBuilder_ != null || lockTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
* @return The lockTimeout.
*/
public com.google.protobuf.Int64Value getLockTimeout() {
if (lockTimeoutBuilder_ == null) {
return lockTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : lockTimeout_;
} else {
return lockTimeoutBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
public Builder setLockTimeout(com.google.protobuf.Int64Value value) {
if (lockTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lockTimeout_ = value;
onChanged();
} else {
lockTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
public Builder setLockTimeout(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (lockTimeoutBuilder_ == null) {
lockTimeout_ = builderForValue.build();
onChanged();
} else {
lockTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
public Builder mergeLockTimeout(com.google.protobuf.Int64Value value) {
if (lockTimeoutBuilder_ == null) {
if (lockTimeout_ != null) {
lockTimeout_ =
com.google.protobuf.Int64Value.newBuilder(lockTimeout_).mergeFrom(value).buildPartial();
} else {
lockTimeout_ = value;
}
onChanged();
} else {
lockTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
public Builder clearLockTimeout() {
if (lockTimeoutBuilder_ == null) {
lockTimeout_ = null;
onChanged();
} else {
lockTimeout_ = null;
lockTimeoutBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
public com.google.protobuf.Int64Value.Builder getLockTimeoutBuilder() {
onChanged();
return getLockTimeoutFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getLockTimeoutOrBuilder() {
if (lockTimeoutBuilder_ != null) {
return lockTimeoutBuilder_.getMessageOrBuilder();
} else {
return lockTimeout_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : lockTimeout_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value lock_timeout = 31;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getLockTimeoutFieldBuilder() {
if (lockTimeoutBuilder_ == null) {
lockTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getLockTimeout(),
getParentForChildren(),
isClean());
lockTimeout_ = null;
}
return lockTimeoutBuilder_;
}
private com.google.protobuf.Int64Value idleInTransactionSessionTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idleInTransactionSessionTimeoutBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
* @return Whether the idleInTransactionSessionTimeout field is set.
*/
public boolean hasIdleInTransactionSessionTimeout() {
return idleInTransactionSessionTimeoutBuilder_ != null || idleInTransactionSessionTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
* @return The idleInTransactionSessionTimeout.
*/
public com.google.protobuf.Int64Value getIdleInTransactionSessionTimeout() {
if (idleInTransactionSessionTimeoutBuilder_ == null) {
return idleInTransactionSessionTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : idleInTransactionSessionTimeout_;
} else {
return idleInTransactionSessionTimeoutBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
public Builder setIdleInTransactionSessionTimeout(com.google.protobuf.Int64Value value) {
if (idleInTransactionSessionTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
idleInTransactionSessionTimeout_ = value;
onChanged();
} else {
idleInTransactionSessionTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
public Builder setIdleInTransactionSessionTimeout(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (idleInTransactionSessionTimeoutBuilder_ == null) {
idleInTransactionSessionTimeout_ = builderForValue.build();
onChanged();
} else {
idleInTransactionSessionTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
public Builder mergeIdleInTransactionSessionTimeout(com.google.protobuf.Int64Value value) {
if (idleInTransactionSessionTimeoutBuilder_ == null) {
if (idleInTransactionSessionTimeout_ != null) {
idleInTransactionSessionTimeout_ =
com.google.protobuf.Int64Value.newBuilder(idleInTransactionSessionTimeout_).mergeFrom(value).buildPartial();
} else {
idleInTransactionSessionTimeout_ = value;
}
onChanged();
} else {
idleInTransactionSessionTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
public Builder clearIdleInTransactionSessionTimeout() {
if (idleInTransactionSessionTimeoutBuilder_ == null) {
idleInTransactionSessionTimeout_ = null;
onChanged();
} else {
idleInTransactionSessionTimeout_ = null;
idleInTransactionSessionTimeoutBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
public com.google.protobuf.Int64Value.Builder getIdleInTransactionSessionTimeoutBuilder() {
onChanged();
return getIdleInTransactionSessionTimeoutFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getIdleInTransactionSessionTimeoutOrBuilder() {
if (idleInTransactionSessionTimeoutBuilder_ != null) {
return idleInTransactionSessionTimeoutBuilder_.getMessageOrBuilder();
} else {
return idleInTransactionSessionTimeout_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : idleInTransactionSessionTimeout_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value idle_in_transaction_session_timeout = 32;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getIdleInTransactionSessionTimeoutFieldBuilder() {
if (idleInTransactionSessionTimeoutBuilder_ == null) {
idleInTransactionSessionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getIdleInTransactionSessionTimeout(),
getParentForChildren(),
isClean());
idleInTransactionSessionTimeout_ = null;
}
return idleInTransactionSessionTimeoutBuilder_;
}
private int byteaOutput_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return The enum numeric value on the wire for byteaOutput.
*/
@java.lang.Override public int getByteaOutputValue() {
return byteaOutput_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @param value The enum numeric value on the wire for byteaOutput to set.
* @return This builder for chaining.
*/
public Builder setByteaOutputValue(int value) {
byteaOutput_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return The byteaOutput.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput getByteaOutput() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput.valueOf(byteaOutput_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @param value The byteaOutput to set.
* @return This builder for chaining.
*/
public Builder setByteaOutput(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.ByteaOutput value) {
if (value == null) {
throw new NullPointerException();
}
byteaOutput_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.ByteaOutput bytea_output = 33;</code>
* @return This builder for chaining.
*/
public Builder clearByteaOutput() {
byteaOutput_ = 0;
onChanged();
return this;
}
private int xmlbinary_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return The enum numeric value on the wire for xmlbinary.
*/
@java.lang.Override public int getXmlbinaryValue() {
return xmlbinary_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @param value The enum numeric value on the wire for xmlbinary to set.
* @return This builder for chaining.
*/
public Builder setXmlbinaryValue(int value) {
xmlbinary_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return The xmlbinary.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary getXmlbinary() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary.valueOf(xmlbinary_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @param value The xmlbinary to set.
* @return This builder for chaining.
*/
public Builder setXmlbinary(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlBinary value) {
if (value == null) {
throw new NullPointerException();
}
xmlbinary_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlBinary xmlbinary = 34;</code>
* @return This builder for chaining.
*/
public Builder clearXmlbinary() {
xmlbinary_ = 0;
onChanged();
return this;
}
private int xmloption_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return The enum numeric value on the wire for xmloption.
*/
@java.lang.Override public int getXmloptionValue() {
return xmloption_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @param value The enum numeric value on the wire for xmloption to set.
* @return This builder for chaining.
*/
public Builder setXmloptionValue(int value) {
xmloption_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return The xmloption.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption getXmloption() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption.valueOf(xmloption_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @param value The xmloption to set.
* @return This builder for chaining.
*/
public Builder setXmloption(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.XmlOption value) {
if (value == null) {
throw new NullPointerException();
}
xmloption_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.XmlOption xmloption = 35;</code>
* @return This builder for chaining.
*/
public Builder clearXmloption() {
xmloption_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Int64Value ginPendingListLimit_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> ginPendingListLimitBuilder_;
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
* @return Whether the ginPendingListLimit field is set.
*/
public boolean hasGinPendingListLimit() {
return ginPendingListLimitBuilder_ != null || ginPendingListLimit_ != null;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
* @return The ginPendingListLimit.
*/
public com.google.protobuf.Int64Value getGinPendingListLimit() {
if (ginPendingListLimitBuilder_ == null) {
return ginPendingListLimit_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : ginPendingListLimit_;
} else {
return ginPendingListLimitBuilder_.getMessage();
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
public Builder setGinPendingListLimit(com.google.protobuf.Int64Value value) {
if (ginPendingListLimitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ginPendingListLimit_ = value;
onChanged();
} else {
ginPendingListLimitBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
public Builder setGinPendingListLimit(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (ginPendingListLimitBuilder_ == null) {
ginPendingListLimit_ = builderForValue.build();
onChanged();
} else {
ginPendingListLimitBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
public Builder mergeGinPendingListLimit(com.google.protobuf.Int64Value value) {
if (ginPendingListLimitBuilder_ == null) {
if (ginPendingListLimit_ != null) {
ginPendingListLimit_ =
com.google.protobuf.Int64Value.newBuilder(ginPendingListLimit_).mergeFrom(value).buildPartial();
} else {
ginPendingListLimit_ = value;
}
onChanged();
} else {
ginPendingListLimitBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
public Builder clearGinPendingListLimit() {
if (ginPendingListLimitBuilder_ == null) {
ginPendingListLimit_ = null;
onChanged();
} else {
ginPendingListLimit_ = null;
ginPendingListLimitBuilder_ = null;
}
return this;
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
public com.google.protobuf.Int64Value.Builder getGinPendingListLimitBuilder() {
onChanged();
return getGinPendingListLimitFieldBuilder().getBuilder();
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getGinPendingListLimitOrBuilder() {
if (ginPendingListLimitBuilder_ != null) {
return ginPendingListLimitBuilder_.getMessageOrBuilder();
} else {
return ginPendingListLimit_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : ginPendingListLimit_;
}
}
/**
* <pre>
* in bytes.
* </pre>
*
* <code>.google.protobuf.Int64Value gin_pending_list_limit = 36;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getGinPendingListLimitFieldBuilder() {
if (ginPendingListLimitBuilder_ == null) {
ginPendingListLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getGinPendingListLimit(),
getParentForChildren(),
isClean());
ginPendingListLimit_ = null;
}
return ginPendingListLimitBuilder_;
}
private com.google.protobuf.Int64Value deadlockTimeout_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> deadlockTimeoutBuilder_;
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
* @return Whether the deadlockTimeout field is set.
*/
public boolean hasDeadlockTimeout() {
return deadlockTimeoutBuilder_ != null || deadlockTimeout_ != null;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
* @return The deadlockTimeout.
*/
public com.google.protobuf.Int64Value getDeadlockTimeout() {
if (deadlockTimeoutBuilder_ == null) {
return deadlockTimeout_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : deadlockTimeout_;
} else {
return deadlockTimeoutBuilder_.getMessage();
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
public Builder setDeadlockTimeout(com.google.protobuf.Int64Value value) {
if (deadlockTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deadlockTimeout_ = value;
onChanged();
} else {
deadlockTimeoutBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
public Builder setDeadlockTimeout(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (deadlockTimeoutBuilder_ == null) {
deadlockTimeout_ = builderForValue.build();
onChanged();
} else {
deadlockTimeoutBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
public Builder mergeDeadlockTimeout(com.google.protobuf.Int64Value value) {
if (deadlockTimeoutBuilder_ == null) {
if (deadlockTimeout_ != null) {
deadlockTimeout_ =
com.google.protobuf.Int64Value.newBuilder(deadlockTimeout_).mergeFrom(value).buildPartial();
} else {
deadlockTimeout_ = value;
}
onChanged();
} else {
deadlockTimeoutBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
public Builder clearDeadlockTimeout() {
if (deadlockTimeoutBuilder_ == null) {
deadlockTimeout_ = null;
onChanged();
} else {
deadlockTimeout_ = null;
deadlockTimeoutBuilder_ = null;
}
return this;
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
public com.google.protobuf.Int64Value.Builder getDeadlockTimeoutBuilder() {
onChanged();
return getDeadlockTimeoutFieldBuilder().getBuilder();
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getDeadlockTimeoutOrBuilder() {
if (deadlockTimeoutBuilder_ != null) {
return deadlockTimeoutBuilder_.getMessageOrBuilder();
} else {
return deadlockTimeout_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : deadlockTimeout_;
}
}
/**
* <pre>
* in milliseconds.
* </pre>
*
* <code>.google.protobuf.Int64Value deadlock_timeout = 37;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getDeadlockTimeoutFieldBuilder() {
if (deadlockTimeoutBuilder_ == null) {
deadlockTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getDeadlockTimeout(),
getParentForChildren(),
isClean());
deadlockTimeout_ = null;
}
return deadlockTimeoutBuilder_;
}
private com.google.protobuf.Int64Value maxLocksPerTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxLocksPerTransactionBuilder_;
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
* @return Whether the maxLocksPerTransaction field is set.
*/
public boolean hasMaxLocksPerTransaction() {
return maxLocksPerTransactionBuilder_ != null || maxLocksPerTransaction_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
* @return The maxLocksPerTransaction.
*/
public com.google.protobuf.Int64Value getMaxLocksPerTransaction() {
if (maxLocksPerTransactionBuilder_ == null) {
return maxLocksPerTransaction_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxLocksPerTransaction_;
} else {
return maxLocksPerTransactionBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
public Builder setMaxLocksPerTransaction(com.google.protobuf.Int64Value value) {
if (maxLocksPerTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxLocksPerTransaction_ = value;
onChanged();
} else {
maxLocksPerTransactionBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
public Builder setMaxLocksPerTransaction(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxLocksPerTransactionBuilder_ == null) {
maxLocksPerTransaction_ = builderForValue.build();
onChanged();
} else {
maxLocksPerTransactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
public Builder mergeMaxLocksPerTransaction(com.google.protobuf.Int64Value value) {
if (maxLocksPerTransactionBuilder_ == null) {
if (maxLocksPerTransaction_ != null) {
maxLocksPerTransaction_ =
com.google.protobuf.Int64Value.newBuilder(maxLocksPerTransaction_).mergeFrom(value).buildPartial();
} else {
maxLocksPerTransaction_ = value;
}
onChanged();
} else {
maxLocksPerTransactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
public Builder clearMaxLocksPerTransaction() {
if (maxLocksPerTransactionBuilder_ == null) {
maxLocksPerTransaction_ = null;
onChanged();
} else {
maxLocksPerTransaction_ = null;
maxLocksPerTransactionBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
public com.google.protobuf.Int64Value.Builder getMaxLocksPerTransactionBuilder() {
onChanged();
return getMaxLocksPerTransactionFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxLocksPerTransactionOrBuilder() {
if (maxLocksPerTransactionBuilder_ != null) {
return maxLocksPerTransactionBuilder_.getMessageOrBuilder();
} else {
return maxLocksPerTransaction_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxLocksPerTransaction_;
}
}
/**
* <code>.google.protobuf.Int64Value max_locks_per_transaction = 38;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxLocksPerTransactionFieldBuilder() {
if (maxLocksPerTransactionBuilder_ == null) {
maxLocksPerTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxLocksPerTransaction(),
getParentForChildren(),
isClean());
maxLocksPerTransaction_ = null;
}
return maxLocksPerTransactionBuilder_;
}
private com.google.protobuf.Int64Value maxPredLocksPerTransaction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxPredLocksPerTransactionBuilder_;
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
* @return Whether the maxPredLocksPerTransaction field is set.
*/
public boolean hasMaxPredLocksPerTransaction() {
return maxPredLocksPerTransactionBuilder_ != null || maxPredLocksPerTransaction_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
* @return The maxPredLocksPerTransaction.
*/
public com.google.protobuf.Int64Value getMaxPredLocksPerTransaction() {
if (maxPredLocksPerTransactionBuilder_ == null) {
return maxPredLocksPerTransaction_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxPredLocksPerTransaction_;
} else {
return maxPredLocksPerTransactionBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
public Builder setMaxPredLocksPerTransaction(com.google.protobuf.Int64Value value) {
if (maxPredLocksPerTransactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxPredLocksPerTransaction_ = value;
onChanged();
} else {
maxPredLocksPerTransactionBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
public Builder setMaxPredLocksPerTransaction(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxPredLocksPerTransactionBuilder_ == null) {
maxPredLocksPerTransaction_ = builderForValue.build();
onChanged();
} else {
maxPredLocksPerTransactionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
public Builder mergeMaxPredLocksPerTransaction(com.google.protobuf.Int64Value value) {
if (maxPredLocksPerTransactionBuilder_ == null) {
if (maxPredLocksPerTransaction_ != null) {
maxPredLocksPerTransaction_ =
com.google.protobuf.Int64Value.newBuilder(maxPredLocksPerTransaction_).mergeFrom(value).buildPartial();
} else {
maxPredLocksPerTransaction_ = value;
}
onChanged();
} else {
maxPredLocksPerTransactionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
public Builder clearMaxPredLocksPerTransaction() {
if (maxPredLocksPerTransactionBuilder_ == null) {
maxPredLocksPerTransaction_ = null;
onChanged();
} else {
maxPredLocksPerTransaction_ = null;
maxPredLocksPerTransactionBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
public com.google.protobuf.Int64Value.Builder getMaxPredLocksPerTransactionBuilder() {
onChanged();
return getMaxPredLocksPerTransactionFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxPredLocksPerTransactionOrBuilder() {
if (maxPredLocksPerTransactionBuilder_ != null) {
return maxPredLocksPerTransactionBuilder_.getMessageOrBuilder();
} else {
return maxPredLocksPerTransaction_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxPredLocksPerTransaction_;
}
}
/**
* <code>.google.protobuf.Int64Value max_pred_locks_per_transaction = 39;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxPredLocksPerTransactionFieldBuilder() {
if (maxPredLocksPerTransactionBuilder_ == null) {
maxPredLocksPerTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxPredLocksPerTransaction(),
getParentForChildren(),
isClean());
maxPredLocksPerTransaction_ = null;
}
return maxPredLocksPerTransactionBuilder_;
}
private com.google.protobuf.BoolValue arrayNulls_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> arrayNullsBuilder_;
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
* @return Whether the arrayNulls field is set.
*/
public boolean hasArrayNulls() {
return arrayNullsBuilder_ != null || arrayNulls_ != null;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
* @return The arrayNulls.
*/
public com.google.protobuf.BoolValue getArrayNulls() {
if (arrayNullsBuilder_ == null) {
return arrayNulls_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : arrayNulls_;
} else {
return arrayNullsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
public Builder setArrayNulls(com.google.protobuf.BoolValue value) {
if (arrayNullsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
arrayNulls_ = value;
onChanged();
} else {
arrayNullsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
public Builder setArrayNulls(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (arrayNullsBuilder_ == null) {
arrayNulls_ = builderForValue.build();
onChanged();
} else {
arrayNullsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
public Builder mergeArrayNulls(com.google.protobuf.BoolValue value) {
if (arrayNullsBuilder_ == null) {
if (arrayNulls_ != null) {
arrayNulls_ =
com.google.protobuf.BoolValue.newBuilder(arrayNulls_).mergeFrom(value).buildPartial();
} else {
arrayNulls_ = value;
}
onChanged();
} else {
arrayNullsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
public Builder clearArrayNulls() {
if (arrayNullsBuilder_ == null) {
arrayNulls_ = null;
onChanged();
} else {
arrayNulls_ = null;
arrayNullsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
public com.google.protobuf.BoolValue.Builder getArrayNullsBuilder() {
onChanged();
return getArrayNullsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getArrayNullsOrBuilder() {
if (arrayNullsBuilder_ != null) {
return arrayNullsBuilder_.getMessageOrBuilder();
} else {
return arrayNulls_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : arrayNulls_;
}
}
/**
* <code>.google.protobuf.BoolValue array_nulls = 40;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getArrayNullsFieldBuilder() {
if (arrayNullsBuilder_ == null) {
arrayNullsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getArrayNulls(),
getParentForChildren(),
isClean());
arrayNulls_ = null;
}
return arrayNullsBuilder_;
}
private int backslashQuote_ = 0;
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return The enum numeric value on the wire for backslashQuote.
*/
@java.lang.Override public int getBackslashQuoteValue() {
return backslashQuote_;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @param value The enum numeric value on the wire for backslashQuote to set.
* @return This builder for chaining.
*/
public Builder setBackslashQuoteValue(int value) {
backslashQuote_ = value;
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return The backslashQuote.
*/
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote getBackslashQuote() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote result = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote.valueOf(backslashQuote_);
return result == null ? yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote.UNRECOGNIZED : result;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @param value The backslashQuote to set.
* @return This builder for chaining.
*/
public Builder setBackslashQuote(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.BackslashQuote value) {
if (value == null) {
throw new NullPointerException();
}
backslashQuote_ = value.getNumber();
onChanged();
return this;
}
/**
* <code>.yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10.BackslashQuote backslash_quote = 41;</code>
* @return This builder for chaining.
*/
public Builder clearBackslashQuote() {
backslashQuote_ = 0;
onChanged();
return this;
}
private com.google.protobuf.BoolValue defaultWithOids_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> defaultWithOidsBuilder_;
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
* @return Whether the defaultWithOids field is set.
*/
public boolean hasDefaultWithOids() {
return defaultWithOidsBuilder_ != null || defaultWithOids_ != null;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
* @return The defaultWithOids.
*/
public com.google.protobuf.BoolValue getDefaultWithOids() {
if (defaultWithOidsBuilder_ == null) {
return defaultWithOids_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : defaultWithOids_;
} else {
return defaultWithOidsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
public Builder setDefaultWithOids(com.google.protobuf.BoolValue value) {
if (defaultWithOidsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultWithOids_ = value;
onChanged();
} else {
defaultWithOidsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
public Builder setDefaultWithOids(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (defaultWithOidsBuilder_ == null) {
defaultWithOids_ = builderForValue.build();
onChanged();
} else {
defaultWithOidsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
public Builder mergeDefaultWithOids(com.google.protobuf.BoolValue value) {
if (defaultWithOidsBuilder_ == null) {
if (defaultWithOids_ != null) {
defaultWithOids_ =
com.google.protobuf.BoolValue.newBuilder(defaultWithOids_).mergeFrom(value).buildPartial();
} else {
defaultWithOids_ = value;
}
onChanged();
} else {
defaultWithOidsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
public Builder clearDefaultWithOids() {
if (defaultWithOidsBuilder_ == null) {
defaultWithOids_ = null;
onChanged();
} else {
defaultWithOids_ = null;
defaultWithOidsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
public com.google.protobuf.BoolValue.Builder getDefaultWithOidsBuilder() {
onChanged();
return getDefaultWithOidsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getDefaultWithOidsOrBuilder() {
if (defaultWithOidsBuilder_ != null) {
return defaultWithOidsBuilder_.getMessageOrBuilder();
} else {
return defaultWithOids_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : defaultWithOids_;
}
}
/**
* <code>.google.protobuf.BoolValue default_with_oids = 42;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getDefaultWithOidsFieldBuilder() {
if (defaultWithOidsBuilder_ == null) {
defaultWithOidsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getDefaultWithOids(),
getParentForChildren(),
isClean());
defaultWithOids_ = null;
}
return defaultWithOidsBuilder_;
}
private com.google.protobuf.BoolValue escapeStringWarning_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> escapeStringWarningBuilder_;
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
* @return Whether the escapeStringWarning field is set.
*/
public boolean hasEscapeStringWarning() {
return escapeStringWarningBuilder_ != null || escapeStringWarning_ != null;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
* @return The escapeStringWarning.
*/
public com.google.protobuf.BoolValue getEscapeStringWarning() {
if (escapeStringWarningBuilder_ == null) {
return escapeStringWarning_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : escapeStringWarning_;
} else {
return escapeStringWarningBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
public Builder setEscapeStringWarning(com.google.protobuf.BoolValue value) {
if (escapeStringWarningBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
escapeStringWarning_ = value;
onChanged();
} else {
escapeStringWarningBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
public Builder setEscapeStringWarning(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (escapeStringWarningBuilder_ == null) {
escapeStringWarning_ = builderForValue.build();
onChanged();
} else {
escapeStringWarningBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
public Builder mergeEscapeStringWarning(com.google.protobuf.BoolValue value) {
if (escapeStringWarningBuilder_ == null) {
if (escapeStringWarning_ != null) {
escapeStringWarning_ =
com.google.protobuf.BoolValue.newBuilder(escapeStringWarning_).mergeFrom(value).buildPartial();
} else {
escapeStringWarning_ = value;
}
onChanged();
} else {
escapeStringWarningBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
public Builder clearEscapeStringWarning() {
if (escapeStringWarningBuilder_ == null) {
escapeStringWarning_ = null;
onChanged();
} else {
escapeStringWarning_ = null;
escapeStringWarningBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
public com.google.protobuf.BoolValue.Builder getEscapeStringWarningBuilder() {
onChanged();
return getEscapeStringWarningFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEscapeStringWarningOrBuilder() {
if (escapeStringWarningBuilder_ != null) {
return escapeStringWarningBuilder_.getMessageOrBuilder();
} else {
return escapeStringWarning_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : escapeStringWarning_;
}
}
/**
* <code>.google.protobuf.BoolValue escape_string_warning = 43;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEscapeStringWarningFieldBuilder() {
if (escapeStringWarningBuilder_ == null) {
escapeStringWarningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEscapeStringWarning(),
getParentForChildren(),
isClean());
escapeStringWarning_ = null;
}
return escapeStringWarningBuilder_;
}
private com.google.protobuf.BoolValue loCompatPrivileges_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> loCompatPrivilegesBuilder_;
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
* @return Whether the loCompatPrivileges field is set.
*/
public boolean hasLoCompatPrivileges() {
return loCompatPrivilegesBuilder_ != null || loCompatPrivileges_ != null;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
* @return The loCompatPrivileges.
*/
public com.google.protobuf.BoolValue getLoCompatPrivileges() {
if (loCompatPrivilegesBuilder_ == null) {
return loCompatPrivileges_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : loCompatPrivileges_;
} else {
return loCompatPrivilegesBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
public Builder setLoCompatPrivileges(com.google.protobuf.BoolValue value) {
if (loCompatPrivilegesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loCompatPrivileges_ = value;
onChanged();
} else {
loCompatPrivilegesBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
public Builder setLoCompatPrivileges(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (loCompatPrivilegesBuilder_ == null) {
loCompatPrivileges_ = builderForValue.build();
onChanged();
} else {
loCompatPrivilegesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
public Builder mergeLoCompatPrivileges(com.google.protobuf.BoolValue value) {
if (loCompatPrivilegesBuilder_ == null) {
if (loCompatPrivileges_ != null) {
loCompatPrivileges_ =
com.google.protobuf.BoolValue.newBuilder(loCompatPrivileges_).mergeFrom(value).buildPartial();
} else {
loCompatPrivileges_ = value;
}
onChanged();
} else {
loCompatPrivilegesBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
public Builder clearLoCompatPrivileges() {
if (loCompatPrivilegesBuilder_ == null) {
loCompatPrivileges_ = null;
onChanged();
} else {
loCompatPrivileges_ = null;
loCompatPrivilegesBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
public com.google.protobuf.BoolValue.Builder getLoCompatPrivilegesBuilder() {
onChanged();
return getLoCompatPrivilegesFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getLoCompatPrivilegesOrBuilder() {
if (loCompatPrivilegesBuilder_ != null) {
return loCompatPrivilegesBuilder_.getMessageOrBuilder();
} else {
return loCompatPrivileges_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : loCompatPrivileges_;
}
}
/**
* <code>.google.protobuf.BoolValue lo_compat_privileges = 44;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getLoCompatPrivilegesFieldBuilder() {
if (loCompatPrivilegesBuilder_ == null) {
loCompatPrivilegesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getLoCompatPrivileges(),
getParentForChildren(),
isClean());
loCompatPrivileges_ = null;
}
return loCompatPrivilegesBuilder_;
}
private com.google.protobuf.BoolValue operatorPrecedenceWarning_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> operatorPrecedenceWarningBuilder_;
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
* @return Whether the operatorPrecedenceWarning field is set.
*/
public boolean hasOperatorPrecedenceWarning() {
return operatorPrecedenceWarningBuilder_ != null || operatorPrecedenceWarning_ != null;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
* @return The operatorPrecedenceWarning.
*/
public com.google.protobuf.BoolValue getOperatorPrecedenceWarning() {
if (operatorPrecedenceWarningBuilder_ == null) {
return operatorPrecedenceWarning_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : operatorPrecedenceWarning_;
} else {
return operatorPrecedenceWarningBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
public Builder setOperatorPrecedenceWarning(com.google.protobuf.BoolValue value) {
if (operatorPrecedenceWarningBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operatorPrecedenceWarning_ = value;
onChanged();
} else {
operatorPrecedenceWarningBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
public Builder setOperatorPrecedenceWarning(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (operatorPrecedenceWarningBuilder_ == null) {
operatorPrecedenceWarning_ = builderForValue.build();
onChanged();
} else {
operatorPrecedenceWarningBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
public Builder mergeOperatorPrecedenceWarning(com.google.protobuf.BoolValue value) {
if (operatorPrecedenceWarningBuilder_ == null) {
if (operatorPrecedenceWarning_ != null) {
operatorPrecedenceWarning_ =
com.google.protobuf.BoolValue.newBuilder(operatorPrecedenceWarning_).mergeFrom(value).buildPartial();
} else {
operatorPrecedenceWarning_ = value;
}
onChanged();
} else {
operatorPrecedenceWarningBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
public Builder clearOperatorPrecedenceWarning() {
if (operatorPrecedenceWarningBuilder_ == null) {
operatorPrecedenceWarning_ = null;
onChanged();
} else {
operatorPrecedenceWarning_ = null;
operatorPrecedenceWarningBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
public com.google.protobuf.BoolValue.Builder getOperatorPrecedenceWarningBuilder() {
onChanged();
return getOperatorPrecedenceWarningFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getOperatorPrecedenceWarningOrBuilder() {
if (operatorPrecedenceWarningBuilder_ != null) {
return operatorPrecedenceWarningBuilder_.getMessageOrBuilder();
} else {
return operatorPrecedenceWarning_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : operatorPrecedenceWarning_;
}
}
/**
* <code>.google.protobuf.BoolValue operator_precedence_warning = 45;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getOperatorPrecedenceWarningFieldBuilder() {
if (operatorPrecedenceWarningBuilder_ == null) {
operatorPrecedenceWarningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getOperatorPrecedenceWarning(),
getParentForChildren(),
isClean());
operatorPrecedenceWarning_ = null;
}
return operatorPrecedenceWarningBuilder_;
}
private com.google.protobuf.BoolValue quoteAllIdentifiers_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> quoteAllIdentifiersBuilder_;
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
* @return Whether the quoteAllIdentifiers field is set.
*/
public boolean hasQuoteAllIdentifiers() {
return quoteAllIdentifiersBuilder_ != null || quoteAllIdentifiers_ != null;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
* @return The quoteAllIdentifiers.
*/
public com.google.protobuf.BoolValue getQuoteAllIdentifiers() {
if (quoteAllIdentifiersBuilder_ == null) {
return quoteAllIdentifiers_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : quoteAllIdentifiers_;
} else {
return quoteAllIdentifiersBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
public Builder setQuoteAllIdentifiers(com.google.protobuf.BoolValue value) {
if (quoteAllIdentifiersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
quoteAllIdentifiers_ = value;
onChanged();
} else {
quoteAllIdentifiersBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
public Builder setQuoteAllIdentifiers(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (quoteAllIdentifiersBuilder_ == null) {
quoteAllIdentifiers_ = builderForValue.build();
onChanged();
} else {
quoteAllIdentifiersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
public Builder mergeQuoteAllIdentifiers(com.google.protobuf.BoolValue value) {
if (quoteAllIdentifiersBuilder_ == null) {
if (quoteAllIdentifiers_ != null) {
quoteAllIdentifiers_ =
com.google.protobuf.BoolValue.newBuilder(quoteAllIdentifiers_).mergeFrom(value).buildPartial();
} else {
quoteAllIdentifiers_ = value;
}
onChanged();
} else {
quoteAllIdentifiersBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
public Builder clearQuoteAllIdentifiers() {
if (quoteAllIdentifiersBuilder_ == null) {
quoteAllIdentifiers_ = null;
onChanged();
} else {
quoteAllIdentifiers_ = null;
quoteAllIdentifiersBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
public com.google.protobuf.BoolValue.Builder getQuoteAllIdentifiersBuilder() {
onChanged();
return getQuoteAllIdentifiersFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getQuoteAllIdentifiersOrBuilder() {
if (quoteAllIdentifiersBuilder_ != null) {
return quoteAllIdentifiersBuilder_.getMessageOrBuilder();
} else {
return quoteAllIdentifiers_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : quoteAllIdentifiers_;
}
}
/**
* <code>.google.protobuf.BoolValue quote_all_identifiers = 46;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getQuoteAllIdentifiersFieldBuilder() {
if (quoteAllIdentifiersBuilder_ == null) {
quoteAllIdentifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getQuoteAllIdentifiers(),
getParentForChildren(),
isClean());
quoteAllIdentifiers_ = null;
}
return quoteAllIdentifiersBuilder_;
}
private com.google.protobuf.BoolValue standardConformingStrings_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> standardConformingStringsBuilder_;
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
* @return Whether the standardConformingStrings field is set.
*/
public boolean hasStandardConformingStrings() {
return standardConformingStringsBuilder_ != null || standardConformingStrings_ != null;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
* @return The standardConformingStrings.
*/
public com.google.protobuf.BoolValue getStandardConformingStrings() {
if (standardConformingStringsBuilder_ == null) {
return standardConformingStrings_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : standardConformingStrings_;
} else {
return standardConformingStringsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
public Builder setStandardConformingStrings(com.google.protobuf.BoolValue value) {
if (standardConformingStringsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
standardConformingStrings_ = value;
onChanged();
} else {
standardConformingStringsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
public Builder setStandardConformingStrings(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (standardConformingStringsBuilder_ == null) {
standardConformingStrings_ = builderForValue.build();
onChanged();
} else {
standardConformingStringsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
public Builder mergeStandardConformingStrings(com.google.protobuf.BoolValue value) {
if (standardConformingStringsBuilder_ == null) {
if (standardConformingStrings_ != null) {
standardConformingStrings_ =
com.google.protobuf.BoolValue.newBuilder(standardConformingStrings_).mergeFrom(value).buildPartial();
} else {
standardConformingStrings_ = value;
}
onChanged();
} else {
standardConformingStringsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
public Builder clearStandardConformingStrings() {
if (standardConformingStringsBuilder_ == null) {
standardConformingStrings_ = null;
onChanged();
} else {
standardConformingStrings_ = null;
standardConformingStringsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
public com.google.protobuf.BoolValue.Builder getStandardConformingStringsBuilder() {
onChanged();
return getStandardConformingStringsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getStandardConformingStringsOrBuilder() {
if (standardConformingStringsBuilder_ != null) {
return standardConformingStringsBuilder_.getMessageOrBuilder();
} else {
return standardConformingStrings_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : standardConformingStrings_;
}
}
/**
* <code>.google.protobuf.BoolValue standard_conforming_strings = 47;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getStandardConformingStringsFieldBuilder() {
if (standardConformingStringsBuilder_ == null) {
standardConformingStringsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getStandardConformingStrings(),
getParentForChildren(),
isClean());
standardConformingStrings_ = null;
}
return standardConformingStringsBuilder_;
}
private com.google.protobuf.BoolValue synchronizeSeqscans_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> synchronizeSeqscansBuilder_;
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
* @return Whether the synchronizeSeqscans field is set.
*/
public boolean hasSynchronizeSeqscans() {
return synchronizeSeqscansBuilder_ != null || synchronizeSeqscans_ != null;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
* @return The synchronizeSeqscans.
*/
public com.google.protobuf.BoolValue getSynchronizeSeqscans() {
if (synchronizeSeqscansBuilder_ == null) {
return synchronizeSeqscans_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : synchronizeSeqscans_;
} else {
return synchronizeSeqscansBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
public Builder setSynchronizeSeqscans(com.google.protobuf.BoolValue value) {
if (synchronizeSeqscansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
synchronizeSeqscans_ = value;
onChanged();
} else {
synchronizeSeqscansBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
public Builder setSynchronizeSeqscans(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (synchronizeSeqscansBuilder_ == null) {
synchronizeSeqscans_ = builderForValue.build();
onChanged();
} else {
synchronizeSeqscansBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
public Builder mergeSynchronizeSeqscans(com.google.protobuf.BoolValue value) {
if (synchronizeSeqscansBuilder_ == null) {
if (synchronizeSeqscans_ != null) {
synchronizeSeqscans_ =
com.google.protobuf.BoolValue.newBuilder(synchronizeSeqscans_).mergeFrom(value).buildPartial();
} else {
synchronizeSeqscans_ = value;
}
onChanged();
} else {
synchronizeSeqscansBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
public Builder clearSynchronizeSeqscans() {
if (synchronizeSeqscansBuilder_ == null) {
synchronizeSeqscans_ = null;
onChanged();
} else {
synchronizeSeqscans_ = null;
synchronizeSeqscansBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
public com.google.protobuf.BoolValue.Builder getSynchronizeSeqscansBuilder() {
onChanged();
return getSynchronizeSeqscansFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getSynchronizeSeqscansOrBuilder() {
if (synchronizeSeqscansBuilder_ != null) {
return synchronizeSeqscansBuilder_.getMessageOrBuilder();
} else {
return synchronizeSeqscans_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : synchronizeSeqscans_;
}
}
/**
* <code>.google.protobuf.BoolValue synchronize_seqscans = 48;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getSynchronizeSeqscansFieldBuilder() {
if (synchronizeSeqscansBuilder_ == null) {
synchronizeSeqscansBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getSynchronizeSeqscans(),
getParentForChildren(),
isClean());
synchronizeSeqscans_ = null;
}
return synchronizeSeqscansBuilder_;
}
private com.google.protobuf.BoolValue transformNullEquals_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> transformNullEqualsBuilder_;
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
* @return Whether the transformNullEquals field is set.
*/
public boolean hasTransformNullEquals() {
return transformNullEqualsBuilder_ != null || transformNullEquals_ != null;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
* @return The transformNullEquals.
*/
public com.google.protobuf.BoolValue getTransformNullEquals() {
if (transformNullEqualsBuilder_ == null) {
return transformNullEquals_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : transformNullEquals_;
} else {
return transformNullEqualsBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
public Builder setTransformNullEquals(com.google.protobuf.BoolValue value) {
if (transformNullEqualsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transformNullEquals_ = value;
onChanged();
} else {
transformNullEqualsBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
public Builder setTransformNullEquals(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (transformNullEqualsBuilder_ == null) {
transformNullEquals_ = builderForValue.build();
onChanged();
} else {
transformNullEqualsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
public Builder mergeTransformNullEquals(com.google.protobuf.BoolValue value) {
if (transformNullEqualsBuilder_ == null) {
if (transformNullEquals_ != null) {
transformNullEquals_ =
com.google.protobuf.BoolValue.newBuilder(transformNullEquals_).mergeFrom(value).buildPartial();
} else {
transformNullEquals_ = value;
}
onChanged();
} else {
transformNullEqualsBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
public Builder clearTransformNullEquals() {
if (transformNullEqualsBuilder_ == null) {
transformNullEquals_ = null;
onChanged();
} else {
transformNullEquals_ = null;
transformNullEqualsBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
public com.google.protobuf.BoolValue.Builder getTransformNullEqualsBuilder() {
onChanged();
return getTransformNullEqualsFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getTransformNullEqualsOrBuilder() {
if (transformNullEqualsBuilder_ != null) {
return transformNullEqualsBuilder_.getMessageOrBuilder();
} else {
return transformNullEquals_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : transformNullEquals_;
}
}
/**
* <code>.google.protobuf.BoolValue transform_null_equals = 49;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getTransformNullEqualsFieldBuilder() {
if (transformNullEqualsBuilder_ == null) {
transformNullEqualsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getTransformNullEquals(),
getParentForChildren(),
isClean());
transformNullEquals_ = null;
}
return transformNullEqualsBuilder_;
}
private com.google.protobuf.BoolValue exitOnError_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> exitOnErrorBuilder_;
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
* @return Whether the exitOnError field is set.
*/
public boolean hasExitOnError() {
return exitOnErrorBuilder_ != null || exitOnError_ != null;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
* @return The exitOnError.
*/
public com.google.protobuf.BoolValue getExitOnError() {
if (exitOnErrorBuilder_ == null) {
return exitOnError_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : exitOnError_;
} else {
return exitOnErrorBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
public Builder setExitOnError(com.google.protobuf.BoolValue value) {
if (exitOnErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exitOnError_ = value;
onChanged();
} else {
exitOnErrorBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
public Builder setExitOnError(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (exitOnErrorBuilder_ == null) {
exitOnError_ = builderForValue.build();
onChanged();
} else {
exitOnErrorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
public Builder mergeExitOnError(com.google.protobuf.BoolValue value) {
if (exitOnErrorBuilder_ == null) {
if (exitOnError_ != null) {
exitOnError_ =
com.google.protobuf.BoolValue.newBuilder(exitOnError_).mergeFrom(value).buildPartial();
} else {
exitOnError_ = value;
}
onChanged();
} else {
exitOnErrorBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
public Builder clearExitOnError() {
if (exitOnErrorBuilder_ == null) {
exitOnError_ = null;
onChanged();
} else {
exitOnError_ = null;
exitOnErrorBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
public com.google.protobuf.BoolValue.Builder getExitOnErrorBuilder() {
onChanged();
return getExitOnErrorFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getExitOnErrorOrBuilder() {
if (exitOnErrorBuilder_ != null) {
return exitOnErrorBuilder_.getMessageOrBuilder();
} else {
return exitOnError_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : exitOnError_;
}
}
/**
* <code>.google.protobuf.BoolValue exit_on_error = 50;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getExitOnErrorFieldBuilder() {
if (exitOnErrorBuilder_ == null) {
exitOnErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getExitOnError(),
getParentForChildren(),
isClean());
exitOnError_ = null;
}
return exitOnErrorBuilder_;
}
private com.google.protobuf.DoubleValue seqPageCost_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> seqPageCostBuilder_;
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
* @return Whether the seqPageCost field is set.
*/
public boolean hasSeqPageCost() {
return seqPageCostBuilder_ != null || seqPageCost_ != null;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
* @return The seqPageCost.
*/
public com.google.protobuf.DoubleValue getSeqPageCost() {
if (seqPageCostBuilder_ == null) {
return seqPageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : seqPageCost_;
} else {
return seqPageCostBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
public Builder setSeqPageCost(com.google.protobuf.DoubleValue value) {
if (seqPageCostBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
seqPageCost_ = value;
onChanged();
} else {
seqPageCostBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
public Builder setSeqPageCost(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (seqPageCostBuilder_ == null) {
seqPageCost_ = builderForValue.build();
onChanged();
} else {
seqPageCostBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
public Builder mergeSeqPageCost(com.google.protobuf.DoubleValue value) {
if (seqPageCostBuilder_ == null) {
if (seqPageCost_ != null) {
seqPageCost_ =
com.google.protobuf.DoubleValue.newBuilder(seqPageCost_).mergeFrom(value).buildPartial();
} else {
seqPageCost_ = value;
}
onChanged();
} else {
seqPageCostBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
public Builder clearSeqPageCost() {
if (seqPageCostBuilder_ == null) {
seqPageCost_ = null;
onChanged();
} else {
seqPageCost_ = null;
seqPageCostBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
public com.google.protobuf.DoubleValue.Builder getSeqPageCostBuilder() {
onChanged();
return getSeqPageCostFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
public com.google.protobuf.DoubleValueOrBuilder getSeqPageCostOrBuilder() {
if (seqPageCostBuilder_ != null) {
return seqPageCostBuilder_.getMessageOrBuilder();
} else {
return seqPageCost_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : seqPageCost_;
}
}
/**
* <code>.google.protobuf.DoubleValue seq_page_cost = 51;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getSeqPageCostFieldBuilder() {
if (seqPageCostBuilder_ == null) {
seqPageCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getSeqPageCost(),
getParentForChildren(),
isClean());
seqPageCost_ = null;
}
return seqPageCostBuilder_;
}
private com.google.protobuf.DoubleValue randomPageCost_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> randomPageCostBuilder_;
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
* @return Whether the randomPageCost field is set.
*/
public boolean hasRandomPageCost() {
return randomPageCostBuilder_ != null || randomPageCost_ != null;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
* @return The randomPageCost.
*/
public com.google.protobuf.DoubleValue getRandomPageCost() {
if (randomPageCostBuilder_ == null) {
return randomPageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : randomPageCost_;
} else {
return randomPageCostBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
public Builder setRandomPageCost(com.google.protobuf.DoubleValue value) {
if (randomPageCostBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
randomPageCost_ = value;
onChanged();
} else {
randomPageCostBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
public Builder setRandomPageCost(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (randomPageCostBuilder_ == null) {
randomPageCost_ = builderForValue.build();
onChanged();
} else {
randomPageCostBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
public Builder mergeRandomPageCost(com.google.protobuf.DoubleValue value) {
if (randomPageCostBuilder_ == null) {
if (randomPageCost_ != null) {
randomPageCost_ =
com.google.protobuf.DoubleValue.newBuilder(randomPageCost_).mergeFrom(value).buildPartial();
} else {
randomPageCost_ = value;
}
onChanged();
} else {
randomPageCostBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
public Builder clearRandomPageCost() {
if (randomPageCostBuilder_ == null) {
randomPageCost_ = null;
onChanged();
} else {
randomPageCost_ = null;
randomPageCostBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
public com.google.protobuf.DoubleValue.Builder getRandomPageCostBuilder() {
onChanged();
return getRandomPageCostFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
public com.google.protobuf.DoubleValueOrBuilder getRandomPageCostOrBuilder() {
if (randomPageCostBuilder_ != null) {
return randomPageCostBuilder_.getMessageOrBuilder();
} else {
return randomPageCost_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : randomPageCost_;
}
}
/**
* <code>.google.protobuf.DoubleValue random_page_cost = 52;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getRandomPageCostFieldBuilder() {
if (randomPageCostBuilder_ == null) {
randomPageCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getRandomPageCost(),
getParentForChildren(),
isClean());
randomPageCost_ = null;
}
return randomPageCostBuilder_;
}
private com.google.protobuf.BoolValue enableBitmapscan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableBitmapscanBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
* @return Whether the enableBitmapscan field is set.
*/
public boolean hasEnableBitmapscan() {
return enableBitmapscanBuilder_ != null || enableBitmapscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
* @return The enableBitmapscan.
*/
public com.google.protobuf.BoolValue getEnableBitmapscan() {
if (enableBitmapscanBuilder_ == null) {
return enableBitmapscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableBitmapscan_;
} else {
return enableBitmapscanBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
public Builder setEnableBitmapscan(com.google.protobuf.BoolValue value) {
if (enableBitmapscanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableBitmapscan_ = value;
onChanged();
} else {
enableBitmapscanBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
public Builder setEnableBitmapscan(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableBitmapscanBuilder_ == null) {
enableBitmapscan_ = builderForValue.build();
onChanged();
} else {
enableBitmapscanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
public Builder mergeEnableBitmapscan(com.google.protobuf.BoolValue value) {
if (enableBitmapscanBuilder_ == null) {
if (enableBitmapscan_ != null) {
enableBitmapscan_ =
com.google.protobuf.BoolValue.newBuilder(enableBitmapscan_).mergeFrom(value).buildPartial();
} else {
enableBitmapscan_ = value;
}
onChanged();
} else {
enableBitmapscanBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
public Builder clearEnableBitmapscan() {
if (enableBitmapscanBuilder_ == null) {
enableBitmapscan_ = null;
onChanged();
} else {
enableBitmapscan_ = null;
enableBitmapscanBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableBitmapscanBuilder() {
onChanged();
return getEnableBitmapscanFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableBitmapscanOrBuilder() {
if (enableBitmapscanBuilder_ != null) {
return enableBitmapscanBuilder_.getMessageOrBuilder();
} else {
return enableBitmapscan_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableBitmapscan_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_bitmapscan = 54;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableBitmapscanFieldBuilder() {
if (enableBitmapscanBuilder_ == null) {
enableBitmapscanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableBitmapscan(),
getParentForChildren(),
isClean());
enableBitmapscan_ = null;
}
return enableBitmapscanBuilder_;
}
private com.google.protobuf.BoolValue enableHashagg_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableHashaggBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
* @return Whether the enableHashagg field is set.
*/
public boolean hasEnableHashagg() {
return enableHashaggBuilder_ != null || enableHashagg_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
* @return The enableHashagg.
*/
public com.google.protobuf.BoolValue getEnableHashagg() {
if (enableHashaggBuilder_ == null) {
return enableHashagg_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableHashagg_;
} else {
return enableHashaggBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
public Builder setEnableHashagg(com.google.protobuf.BoolValue value) {
if (enableHashaggBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableHashagg_ = value;
onChanged();
} else {
enableHashaggBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
public Builder setEnableHashagg(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableHashaggBuilder_ == null) {
enableHashagg_ = builderForValue.build();
onChanged();
} else {
enableHashaggBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
public Builder mergeEnableHashagg(com.google.protobuf.BoolValue value) {
if (enableHashaggBuilder_ == null) {
if (enableHashagg_ != null) {
enableHashagg_ =
com.google.protobuf.BoolValue.newBuilder(enableHashagg_).mergeFrom(value).buildPartial();
} else {
enableHashagg_ = value;
}
onChanged();
} else {
enableHashaggBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
public Builder clearEnableHashagg() {
if (enableHashaggBuilder_ == null) {
enableHashagg_ = null;
onChanged();
} else {
enableHashagg_ = null;
enableHashaggBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableHashaggBuilder() {
onChanged();
return getEnableHashaggFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableHashaggOrBuilder() {
if (enableHashaggBuilder_ != null) {
return enableHashaggBuilder_.getMessageOrBuilder();
} else {
return enableHashagg_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableHashagg_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_hashagg = 55;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableHashaggFieldBuilder() {
if (enableHashaggBuilder_ == null) {
enableHashaggBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableHashagg(),
getParentForChildren(),
isClean());
enableHashagg_ = null;
}
return enableHashaggBuilder_;
}
private com.google.protobuf.BoolValue enableHashjoin_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableHashjoinBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
* @return Whether the enableHashjoin field is set.
*/
public boolean hasEnableHashjoin() {
return enableHashjoinBuilder_ != null || enableHashjoin_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
* @return The enableHashjoin.
*/
public com.google.protobuf.BoolValue getEnableHashjoin() {
if (enableHashjoinBuilder_ == null) {
return enableHashjoin_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableHashjoin_;
} else {
return enableHashjoinBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
public Builder setEnableHashjoin(com.google.protobuf.BoolValue value) {
if (enableHashjoinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableHashjoin_ = value;
onChanged();
} else {
enableHashjoinBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
public Builder setEnableHashjoin(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableHashjoinBuilder_ == null) {
enableHashjoin_ = builderForValue.build();
onChanged();
} else {
enableHashjoinBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
public Builder mergeEnableHashjoin(com.google.protobuf.BoolValue value) {
if (enableHashjoinBuilder_ == null) {
if (enableHashjoin_ != null) {
enableHashjoin_ =
com.google.protobuf.BoolValue.newBuilder(enableHashjoin_).mergeFrom(value).buildPartial();
} else {
enableHashjoin_ = value;
}
onChanged();
} else {
enableHashjoinBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
public Builder clearEnableHashjoin() {
if (enableHashjoinBuilder_ == null) {
enableHashjoin_ = null;
onChanged();
} else {
enableHashjoin_ = null;
enableHashjoinBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableHashjoinBuilder() {
onChanged();
return getEnableHashjoinFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableHashjoinOrBuilder() {
if (enableHashjoinBuilder_ != null) {
return enableHashjoinBuilder_.getMessageOrBuilder();
} else {
return enableHashjoin_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableHashjoin_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_hashjoin = 56;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableHashjoinFieldBuilder() {
if (enableHashjoinBuilder_ == null) {
enableHashjoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableHashjoin(),
getParentForChildren(),
isClean());
enableHashjoin_ = null;
}
return enableHashjoinBuilder_;
}
private com.google.protobuf.BoolValue enableIndexscan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableIndexscanBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
* @return Whether the enableIndexscan field is set.
*/
public boolean hasEnableIndexscan() {
return enableIndexscanBuilder_ != null || enableIndexscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
* @return The enableIndexscan.
*/
public com.google.protobuf.BoolValue getEnableIndexscan() {
if (enableIndexscanBuilder_ == null) {
return enableIndexscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIndexscan_;
} else {
return enableIndexscanBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
public Builder setEnableIndexscan(com.google.protobuf.BoolValue value) {
if (enableIndexscanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableIndexscan_ = value;
onChanged();
} else {
enableIndexscanBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
public Builder setEnableIndexscan(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableIndexscanBuilder_ == null) {
enableIndexscan_ = builderForValue.build();
onChanged();
} else {
enableIndexscanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
public Builder mergeEnableIndexscan(com.google.protobuf.BoolValue value) {
if (enableIndexscanBuilder_ == null) {
if (enableIndexscan_ != null) {
enableIndexscan_ =
com.google.protobuf.BoolValue.newBuilder(enableIndexscan_).mergeFrom(value).buildPartial();
} else {
enableIndexscan_ = value;
}
onChanged();
} else {
enableIndexscanBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
public Builder clearEnableIndexscan() {
if (enableIndexscanBuilder_ == null) {
enableIndexscan_ = null;
onChanged();
} else {
enableIndexscan_ = null;
enableIndexscanBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableIndexscanBuilder() {
onChanged();
return getEnableIndexscanFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableIndexscanOrBuilder() {
if (enableIndexscanBuilder_ != null) {
return enableIndexscanBuilder_.getMessageOrBuilder();
} else {
return enableIndexscan_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableIndexscan_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_indexscan = 57;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableIndexscanFieldBuilder() {
if (enableIndexscanBuilder_ == null) {
enableIndexscanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableIndexscan(),
getParentForChildren(),
isClean());
enableIndexscan_ = null;
}
return enableIndexscanBuilder_;
}
private com.google.protobuf.BoolValue enableIndexonlyscan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableIndexonlyscanBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
* @return Whether the enableIndexonlyscan field is set.
*/
public boolean hasEnableIndexonlyscan() {
return enableIndexonlyscanBuilder_ != null || enableIndexonlyscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
* @return The enableIndexonlyscan.
*/
public com.google.protobuf.BoolValue getEnableIndexonlyscan() {
if (enableIndexonlyscanBuilder_ == null) {
return enableIndexonlyscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableIndexonlyscan_;
} else {
return enableIndexonlyscanBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
public Builder setEnableIndexonlyscan(com.google.protobuf.BoolValue value) {
if (enableIndexonlyscanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableIndexonlyscan_ = value;
onChanged();
} else {
enableIndexonlyscanBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
public Builder setEnableIndexonlyscan(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableIndexonlyscanBuilder_ == null) {
enableIndexonlyscan_ = builderForValue.build();
onChanged();
} else {
enableIndexonlyscanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
public Builder mergeEnableIndexonlyscan(com.google.protobuf.BoolValue value) {
if (enableIndexonlyscanBuilder_ == null) {
if (enableIndexonlyscan_ != null) {
enableIndexonlyscan_ =
com.google.protobuf.BoolValue.newBuilder(enableIndexonlyscan_).mergeFrom(value).buildPartial();
} else {
enableIndexonlyscan_ = value;
}
onChanged();
} else {
enableIndexonlyscanBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
public Builder clearEnableIndexonlyscan() {
if (enableIndexonlyscanBuilder_ == null) {
enableIndexonlyscan_ = null;
onChanged();
} else {
enableIndexonlyscan_ = null;
enableIndexonlyscanBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableIndexonlyscanBuilder() {
onChanged();
return getEnableIndexonlyscanFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableIndexonlyscanOrBuilder() {
if (enableIndexonlyscanBuilder_ != null) {
return enableIndexonlyscanBuilder_.getMessageOrBuilder();
} else {
return enableIndexonlyscan_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableIndexonlyscan_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_indexonlyscan = 58;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableIndexonlyscanFieldBuilder() {
if (enableIndexonlyscanBuilder_ == null) {
enableIndexonlyscanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableIndexonlyscan(),
getParentForChildren(),
isClean());
enableIndexonlyscan_ = null;
}
return enableIndexonlyscanBuilder_;
}
private com.google.protobuf.BoolValue enableMaterial_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableMaterialBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
* @return Whether the enableMaterial field is set.
*/
public boolean hasEnableMaterial() {
return enableMaterialBuilder_ != null || enableMaterial_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
* @return The enableMaterial.
*/
public com.google.protobuf.BoolValue getEnableMaterial() {
if (enableMaterialBuilder_ == null) {
return enableMaterial_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableMaterial_;
} else {
return enableMaterialBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
public Builder setEnableMaterial(com.google.protobuf.BoolValue value) {
if (enableMaterialBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableMaterial_ = value;
onChanged();
} else {
enableMaterialBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
public Builder setEnableMaterial(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableMaterialBuilder_ == null) {
enableMaterial_ = builderForValue.build();
onChanged();
} else {
enableMaterialBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
public Builder mergeEnableMaterial(com.google.protobuf.BoolValue value) {
if (enableMaterialBuilder_ == null) {
if (enableMaterial_ != null) {
enableMaterial_ =
com.google.protobuf.BoolValue.newBuilder(enableMaterial_).mergeFrom(value).buildPartial();
} else {
enableMaterial_ = value;
}
onChanged();
} else {
enableMaterialBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
public Builder clearEnableMaterial() {
if (enableMaterialBuilder_ == null) {
enableMaterial_ = null;
onChanged();
} else {
enableMaterial_ = null;
enableMaterialBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableMaterialBuilder() {
onChanged();
return getEnableMaterialFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableMaterialOrBuilder() {
if (enableMaterialBuilder_ != null) {
return enableMaterialBuilder_.getMessageOrBuilder();
} else {
return enableMaterial_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableMaterial_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_material = 59;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableMaterialFieldBuilder() {
if (enableMaterialBuilder_ == null) {
enableMaterialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableMaterial(),
getParentForChildren(),
isClean());
enableMaterial_ = null;
}
return enableMaterialBuilder_;
}
private com.google.protobuf.BoolValue enableMergejoin_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableMergejoinBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
* @return Whether the enableMergejoin field is set.
*/
public boolean hasEnableMergejoin() {
return enableMergejoinBuilder_ != null || enableMergejoin_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
* @return The enableMergejoin.
*/
public com.google.protobuf.BoolValue getEnableMergejoin() {
if (enableMergejoinBuilder_ == null) {
return enableMergejoin_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableMergejoin_;
} else {
return enableMergejoinBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
public Builder setEnableMergejoin(com.google.protobuf.BoolValue value) {
if (enableMergejoinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableMergejoin_ = value;
onChanged();
} else {
enableMergejoinBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
public Builder setEnableMergejoin(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableMergejoinBuilder_ == null) {
enableMergejoin_ = builderForValue.build();
onChanged();
} else {
enableMergejoinBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
public Builder mergeEnableMergejoin(com.google.protobuf.BoolValue value) {
if (enableMergejoinBuilder_ == null) {
if (enableMergejoin_ != null) {
enableMergejoin_ =
com.google.protobuf.BoolValue.newBuilder(enableMergejoin_).mergeFrom(value).buildPartial();
} else {
enableMergejoin_ = value;
}
onChanged();
} else {
enableMergejoinBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
public Builder clearEnableMergejoin() {
if (enableMergejoinBuilder_ == null) {
enableMergejoin_ = null;
onChanged();
} else {
enableMergejoin_ = null;
enableMergejoinBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableMergejoinBuilder() {
onChanged();
return getEnableMergejoinFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableMergejoinOrBuilder() {
if (enableMergejoinBuilder_ != null) {
return enableMergejoinBuilder_.getMessageOrBuilder();
} else {
return enableMergejoin_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableMergejoin_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_mergejoin = 60;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableMergejoinFieldBuilder() {
if (enableMergejoinBuilder_ == null) {
enableMergejoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableMergejoin(),
getParentForChildren(),
isClean());
enableMergejoin_ = null;
}
return enableMergejoinBuilder_;
}
private com.google.protobuf.BoolValue enableNestloop_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableNestloopBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
* @return Whether the enableNestloop field is set.
*/
public boolean hasEnableNestloop() {
return enableNestloopBuilder_ != null || enableNestloop_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
* @return The enableNestloop.
*/
public com.google.protobuf.BoolValue getEnableNestloop() {
if (enableNestloopBuilder_ == null) {
return enableNestloop_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableNestloop_;
} else {
return enableNestloopBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
public Builder setEnableNestloop(com.google.protobuf.BoolValue value) {
if (enableNestloopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableNestloop_ = value;
onChanged();
} else {
enableNestloopBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
public Builder setEnableNestloop(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableNestloopBuilder_ == null) {
enableNestloop_ = builderForValue.build();
onChanged();
} else {
enableNestloopBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
public Builder mergeEnableNestloop(com.google.protobuf.BoolValue value) {
if (enableNestloopBuilder_ == null) {
if (enableNestloop_ != null) {
enableNestloop_ =
com.google.protobuf.BoolValue.newBuilder(enableNestloop_).mergeFrom(value).buildPartial();
} else {
enableNestloop_ = value;
}
onChanged();
} else {
enableNestloopBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
public Builder clearEnableNestloop() {
if (enableNestloopBuilder_ == null) {
enableNestloop_ = null;
onChanged();
} else {
enableNestloop_ = null;
enableNestloopBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableNestloopBuilder() {
onChanged();
return getEnableNestloopFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableNestloopOrBuilder() {
if (enableNestloopBuilder_ != null) {
return enableNestloopBuilder_.getMessageOrBuilder();
} else {
return enableNestloop_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableNestloop_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_nestloop = 61;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableNestloopFieldBuilder() {
if (enableNestloopBuilder_ == null) {
enableNestloopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableNestloop(),
getParentForChildren(),
isClean());
enableNestloop_ = null;
}
return enableNestloopBuilder_;
}
private com.google.protobuf.BoolValue enableSeqscan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSeqscanBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
* @return Whether the enableSeqscan field is set.
*/
public boolean hasEnableSeqscan() {
return enableSeqscanBuilder_ != null || enableSeqscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
* @return The enableSeqscan.
*/
public com.google.protobuf.BoolValue getEnableSeqscan() {
if (enableSeqscanBuilder_ == null) {
return enableSeqscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSeqscan_;
} else {
return enableSeqscanBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
public Builder setEnableSeqscan(com.google.protobuf.BoolValue value) {
if (enableSeqscanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableSeqscan_ = value;
onChanged();
} else {
enableSeqscanBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
public Builder setEnableSeqscan(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableSeqscanBuilder_ == null) {
enableSeqscan_ = builderForValue.build();
onChanged();
} else {
enableSeqscanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
public Builder mergeEnableSeqscan(com.google.protobuf.BoolValue value) {
if (enableSeqscanBuilder_ == null) {
if (enableSeqscan_ != null) {
enableSeqscan_ =
com.google.protobuf.BoolValue.newBuilder(enableSeqscan_).mergeFrom(value).buildPartial();
} else {
enableSeqscan_ = value;
}
onChanged();
} else {
enableSeqscanBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
public Builder clearEnableSeqscan() {
if (enableSeqscanBuilder_ == null) {
enableSeqscan_ = null;
onChanged();
} else {
enableSeqscan_ = null;
enableSeqscanBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableSeqscanBuilder() {
onChanged();
return getEnableSeqscanFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableSeqscanOrBuilder() {
if (enableSeqscanBuilder_ != null) {
return enableSeqscanBuilder_.getMessageOrBuilder();
} else {
return enableSeqscan_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableSeqscan_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_seqscan = 62;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableSeqscanFieldBuilder() {
if (enableSeqscanBuilder_ == null) {
enableSeqscanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableSeqscan(),
getParentForChildren(),
isClean());
enableSeqscan_ = null;
}
return enableSeqscanBuilder_;
}
private com.google.protobuf.BoolValue enableSort_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSortBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
* @return Whether the enableSort field is set.
*/
public boolean hasEnableSort() {
return enableSortBuilder_ != null || enableSort_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
* @return The enableSort.
*/
public com.google.protobuf.BoolValue getEnableSort() {
if (enableSortBuilder_ == null) {
return enableSort_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSort_;
} else {
return enableSortBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
public Builder setEnableSort(com.google.protobuf.BoolValue value) {
if (enableSortBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableSort_ = value;
onChanged();
} else {
enableSortBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
public Builder setEnableSort(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableSortBuilder_ == null) {
enableSort_ = builderForValue.build();
onChanged();
} else {
enableSortBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
public Builder mergeEnableSort(com.google.protobuf.BoolValue value) {
if (enableSortBuilder_ == null) {
if (enableSort_ != null) {
enableSort_ =
com.google.protobuf.BoolValue.newBuilder(enableSort_).mergeFrom(value).buildPartial();
} else {
enableSort_ = value;
}
onChanged();
} else {
enableSortBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
public Builder clearEnableSort() {
if (enableSortBuilder_ == null) {
enableSort_ = null;
onChanged();
} else {
enableSort_ = null;
enableSortBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableSortBuilder() {
onChanged();
return getEnableSortFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableSortOrBuilder() {
if (enableSortBuilder_ != null) {
return enableSortBuilder_.getMessageOrBuilder();
} else {
return enableSort_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableSort_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_sort = 63;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableSortFieldBuilder() {
if (enableSortBuilder_ == null) {
enableSortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableSort(),
getParentForChildren(),
isClean());
enableSort_ = null;
}
return enableSortBuilder_;
}
private com.google.protobuf.BoolValue enableTidscan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableTidscanBuilder_;
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
* @return Whether the enableTidscan field is set.
*/
public boolean hasEnableTidscan() {
return enableTidscanBuilder_ != null || enableTidscan_ != null;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
* @return The enableTidscan.
*/
public com.google.protobuf.BoolValue getEnableTidscan() {
if (enableTidscanBuilder_ == null) {
return enableTidscan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableTidscan_;
} else {
return enableTidscanBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
public Builder setEnableTidscan(com.google.protobuf.BoolValue value) {
if (enableTidscanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableTidscan_ = value;
onChanged();
} else {
enableTidscanBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
public Builder setEnableTidscan(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableTidscanBuilder_ == null) {
enableTidscan_ = builderForValue.build();
onChanged();
} else {
enableTidscanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
public Builder mergeEnableTidscan(com.google.protobuf.BoolValue value) {
if (enableTidscanBuilder_ == null) {
if (enableTidscan_ != null) {
enableTidscan_ =
com.google.protobuf.BoolValue.newBuilder(enableTidscan_).mergeFrom(value).buildPartial();
} else {
enableTidscan_ = value;
}
onChanged();
} else {
enableTidscanBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
public Builder clearEnableTidscan() {
if (enableTidscanBuilder_ == null) {
enableTidscan_ = null;
onChanged();
} else {
enableTidscan_ = null;
enableTidscanBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
public com.google.protobuf.BoolValue.Builder getEnableTidscanBuilder() {
onChanged();
return getEnableTidscanFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
public com.google.protobuf.BoolValueOrBuilder getEnableTidscanOrBuilder() {
if (enableTidscanBuilder_ != null) {
return enableTidscanBuilder_.getMessageOrBuilder();
} else {
return enableTidscan_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableTidscan_;
}
}
/**
* <code>.google.protobuf.BoolValue enable_tidscan = 64;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableTidscanFieldBuilder() {
if (enableTidscanBuilder_ == null) {
enableTidscanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableTidscan(),
getParentForChildren(),
isClean());
enableTidscan_ = null;
}
return enableTidscanBuilder_;
}
private com.google.protobuf.Int64Value maxParallelWorkers_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxParallelWorkersBuilder_;
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
* @return Whether the maxParallelWorkers field is set.
*/
public boolean hasMaxParallelWorkers() {
return maxParallelWorkersBuilder_ != null || maxParallelWorkers_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
* @return The maxParallelWorkers.
*/
public com.google.protobuf.Int64Value getMaxParallelWorkers() {
if (maxParallelWorkersBuilder_ == null) {
return maxParallelWorkers_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxParallelWorkers_;
} else {
return maxParallelWorkersBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder setMaxParallelWorkers(com.google.protobuf.Int64Value value) {
if (maxParallelWorkersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxParallelWorkers_ = value;
onChanged();
} else {
maxParallelWorkersBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder setMaxParallelWorkers(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxParallelWorkersBuilder_ == null) {
maxParallelWorkers_ = builderForValue.build();
onChanged();
} else {
maxParallelWorkersBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder mergeMaxParallelWorkers(com.google.protobuf.Int64Value value) {
if (maxParallelWorkersBuilder_ == null) {
if (maxParallelWorkers_ != null) {
maxParallelWorkers_ =
com.google.protobuf.Int64Value.newBuilder(maxParallelWorkers_).mergeFrom(value).buildPartial();
} else {
maxParallelWorkers_ = value;
}
onChanged();
} else {
maxParallelWorkersBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder clearMaxParallelWorkers() {
if (maxParallelWorkersBuilder_ == null) {
maxParallelWorkers_ = null;
onChanged();
} else {
maxParallelWorkers_ = null;
maxParallelWorkersBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public com.google.protobuf.Int64Value.Builder getMaxParallelWorkersBuilder() {
onChanged();
return getMaxParallelWorkersFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxParallelWorkersOrBuilder() {
if (maxParallelWorkersBuilder_ != null) {
return maxParallelWorkersBuilder_.getMessageOrBuilder();
} else {
return maxParallelWorkers_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxParallelWorkers_;
}
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers = 65 [(.yandex.cloud.value) = "0-1024"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxParallelWorkersFieldBuilder() {
if (maxParallelWorkersBuilder_ == null) {
maxParallelWorkersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxParallelWorkers(),
getParentForChildren(),
isClean());
maxParallelWorkers_ = null;
}
return maxParallelWorkersBuilder_;
}
private com.google.protobuf.Int64Value maxParallelWorkersPerGather_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxParallelWorkersPerGatherBuilder_;
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
* @return Whether the maxParallelWorkersPerGather field is set.
*/
public boolean hasMaxParallelWorkersPerGather() {
return maxParallelWorkersPerGatherBuilder_ != null || maxParallelWorkersPerGather_ != null;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
* @return The maxParallelWorkersPerGather.
*/
public com.google.protobuf.Int64Value getMaxParallelWorkersPerGather() {
if (maxParallelWorkersPerGatherBuilder_ == null) {
return maxParallelWorkersPerGather_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxParallelWorkersPerGather_;
} else {
return maxParallelWorkersPerGatherBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder setMaxParallelWorkersPerGather(com.google.protobuf.Int64Value value) {
if (maxParallelWorkersPerGatherBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxParallelWorkersPerGather_ = value;
onChanged();
} else {
maxParallelWorkersPerGatherBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder setMaxParallelWorkersPerGather(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxParallelWorkersPerGatherBuilder_ == null) {
maxParallelWorkersPerGather_ = builderForValue.build();
onChanged();
} else {
maxParallelWorkersPerGatherBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder mergeMaxParallelWorkersPerGather(com.google.protobuf.Int64Value value) {
if (maxParallelWorkersPerGatherBuilder_ == null) {
if (maxParallelWorkersPerGather_ != null) {
maxParallelWorkersPerGather_ =
com.google.protobuf.Int64Value.newBuilder(maxParallelWorkersPerGather_).mergeFrom(value).buildPartial();
} else {
maxParallelWorkersPerGather_ = value;
}
onChanged();
} else {
maxParallelWorkersPerGatherBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public Builder clearMaxParallelWorkersPerGather() {
if (maxParallelWorkersPerGatherBuilder_ == null) {
maxParallelWorkersPerGather_ = null;
onChanged();
} else {
maxParallelWorkersPerGather_ = null;
maxParallelWorkersPerGatherBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public com.google.protobuf.Int64Value.Builder getMaxParallelWorkersPerGatherBuilder() {
onChanged();
return getMaxParallelWorkersPerGatherFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxParallelWorkersPerGatherOrBuilder() {
if (maxParallelWorkersPerGatherBuilder_ != null) {
return maxParallelWorkersPerGatherBuilder_.getMessageOrBuilder();
} else {
return maxParallelWorkersPerGather_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxParallelWorkersPerGather_;
}
}
/**
* <code>.google.protobuf.Int64Value max_parallel_workers_per_gather = 66 [(.yandex.cloud.value) = "0-1024"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxParallelWorkersPerGatherFieldBuilder() {
if (maxParallelWorkersPerGatherBuilder_ == null) {
maxParallelWorkersPerGatherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxParallelWorkersPerGather(),
getParentForChildren(),
isClean());
maxParallelWorkersPerGather_ = null;
}
return maxParallelWorkersPerGatherBuilder_;
}
private java.lang.Object timezone_ = "";
/**
* <code>string timezone = 67;</code>
* @return The timezone.
*/
public java.lang.String getTimezone() {
java.lang.Object ref = timezone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
timezone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string timezone = 67;</code>
* @return The bytes for timezone.
*/
public com.google.protobuf.ByteString
getTimezoneBytes() {
java.lang.Object ref = timezone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
timezone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string timezone = 67;</code>
* @param value The timezone to set.
* @return This builder for chaining.
*/
public Builder setTimezone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
timezone_ = value;
onChanged();
return this;
}
/**
* <code>string timezone = 67;</code>
* @return This builder for chaining.
*/
public Builder clearTimezone() {
timezone_ = getDefaultInstance().getTimezone();
onChanged();
return this;
}
/**
* <code>string timezone = 67;</code>
* @param value The bytes for timezone to set.
* @return This builder for chaining.
*/
public Builder setTimezoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
timezone_ = value;
onChanged();
return this;
}
private com.google.protobuf.Int64Value effectiveIoConcurrency_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> effectiveIoConcurrencyBuilder_;
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
* @return Whether the effectiveIoConcurrency field is set.
*/
public boolean hasEffectiveIoConcurrency() {
return effectiveIoConcurrencyBuilder_ != null || effectiveIoConcurrency_ != null;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
* @return The effectiveIoConcurrency.
*/
public com.google.protobuf.Int64Value getEffectiveIoConcurrency() {
if (effectiveIoConcurrencyBuilder_ == null) {
return effectiveIoConcurrency_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : effectiveIoConcurrency_;
} else {
return effectiveIoConcurrencyBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
public Builder setEffectiveIoConcurrency(com.google.protobuf.Int64Value value) {
if (effectiveIoConcurrencyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveIoConcurrency_ = value;
onChanged();
} else {
effectiveIoConcurrencyBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
public Builder setEffectiveIoConcurrency(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (effectiveIoConcurrencyBuilder_ == null) {
effectiveIoConcurrency_ = builderForValue.build();
onChanged();
} else {
effectiveIoConcurrencyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
public Builder mergeEffectiveIoConcurrency(com.google.protobuf.Int64Value value) {
if (effectiveIoConcurrencyBuilder_ == null) {
if (effectiveIoConcurrency_ != null) {
effectiveIoConcurrency_ =
com.google.protobuf.Int64Value.newBuilder(effectiveIoConcurrency_).mergeFrom(value).buildPartial();
} else {
effectiveIoConcurrency_ = value;
}
onChanged();
} else {
effectiveIoConcurrencyBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
public Builder clearEffectiveIoConcurrency() {
if (effectiveIoConcurrencyBuilder_ == null) {
effectiveIoConcurrency_ = null;
onChanged();
} else {
effectiveIoConcurrency_ = null;
effectiveIoConcurrencyBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
public com.google.protobuf.Int64Value.Builder getEffectiveIoConcurrencyBuilder() {
onChanged();
return getEffectiveIoConcurrencyFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getEffectiveIoConcurrencyOrBuilder() {
if (effectiveIoConcurrencyBuilder_ != null) {
return effectiveIoConcurrencyBuilder_.getMessageOrBuilder();
} else {
return effectiveIoConcurrency_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : effectiveIoConcurrency_;
}
}
/**
* <code>.google.protobuf.Int64Value effective_io_concurrency = 68 [(.yandex.cloud.value) = "0-1000"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getEffectiveIoConcurrencyFieldBuilder() {
if (effectiveIoConcurrencyBuilder_ == null) {
effectiveIoConcurrencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getEffectiveIoConcurrency(),
getParentForChildren(),
isClean());
effectiveIoConcurrency_ = null;
}
return effectiveIoConcurrencyBuilder_;
}
private com.google.protobuf.Int64Value effectiveCacheSize_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> effectiveCacheSizeBuilder_;
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
* @return Whether the effectiveCacheSize field is set.
*/
public boolean hasEffectiveCacheSize() {
return effectiveCacheSizeBuilder_ != null || effectiveCacheSize_ != null;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
* @return The effectiveCacheSize.
*/
public com.google.protobuf.Int64Value getEffectiveCacheSize() {
if (effectiveCacheSizeBuilder_ == null) {
return effectiveCacheSize_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : effectiveCacheSize_;
} else {
return effectiveCacheSizeBuilder_.getMessage();
}
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
public Builder setEffectiveCacheSize(com.google.protobuf.Int64Value value) {
if (effectiveCacheSizeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveCacheSize_ = value;
onChanged();
} else {
effectiveCacheSizeBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
public Builder setEffectiveCacheSize(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (effectiveCacheSizeBuilder_ == null) {
effectiveCacheSize_ = builderForValue.build();
onChanged();
} else {
effectiveCacheSizeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
public Builder mergeEffectiveCacheSize(com.google.protobuf.Int64Value value) {
if (effectiveCacheSizeBuilder_ == null) {
if (effectiveCacheSize_ != null) {
effectiveCacheSize_ =
com.google.protobuf.Int64Value.newBuilder(effectiveCacheSize_).mergeFrom(value).buildPartial();
} else {
effectiveCacheSize_ = value;
}
onChanged();
} else {
effectiveCacheSizeBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
public Builder clearEffectiveCacheSize() {
if (effectiveCacheSizeBuilder_ == null) {
effectiveCacheSize_ = null;
onChanged();
} else {
effectiveCacheSize_ = null;
effectiveCacheSizeBuilder_ = null;
}
return this;
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
public com.google.protobuf.Int64Value.Builder getEffectiveCacheSizeBuilder() {
onChanged();
return getEffectiveCacheSizeFieldBuilder().getBuilder();
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
public com.google.protobuf.Int64ValueOrBuilder getEffectiveCacheSizeOrBuilder() {
if (effectiveCacheSizeBuilder_ != null) {
return effectiveCacheSizeBuilder_.getMessageOrBuilder();
} else {
return effectiveCacheSize_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : effectiveCacheSize_;
}
}
/**
* <code>.google.protobuf.Int64Value effective_cache_size = 69 [(.yandex.cloud.value) = "0-549755813888"];</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getEffectiveCacheSizeFieldBuilder() {
if (effectiveCacheSizeBuilder_ == null) {
effectiveCacheSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getEffectiveCacheSize(),
getParentForChildren(),
isClean());
effectiveCacheSize_ = null;
}
return effectiveCacheSizeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10)
private static final yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10();
}
public static yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PostgresqlHostConfig10>
PARSER = new com.google.protobuf.AbstractParser<PostgresqlHostConfig10>() {
@java.lang.Override
public PostgresqlHostConfig10 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostgresqlHostConfig10(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<PostgresqlHostConfig10> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PostgresqlHostConfig10> getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n2yandex/cloud/mdb/postgresql/v1/config/" +
"host10.proto\022%yandex.cloud.mdb.postgresq" +
"l.v1.config\032\036google/protobuf/wrappers.pr" +
"oto\032\035yandex/cloud/validation.proto\"\226/\n\026P" +
"ostgresqlHostConfig10\022=\n\030recovery_min_ap" +
"ply_delay\030\001 \001(\0132\033.google.protobuf.Int64V" +
"alue\0223\n\016shared_buffers\030\002 \001(\0132\033.google.pr" +
"otobuf.Int64Value\0221\n\014temp_buffers\030\003 \001(\0132" +
"\033.google.protobuf.Int64Value\022-\n\010work_mem" +
"\030\004 \001(\0132\033.google.protobuf.Int64Value\022<\n\027r" +
"eplacement_sort_tuples\030\005 \001(\0132\033.google.pr" +
"otobuf.Int64Value\0224\n\017temp_file_limit\030\006 \001" +
"(\0132\033.google.protobuf.Int64Value\022D\n\023backe" +
"nd_flush_after\030\007 \001(\0132\033.google.protobuf.I" +
"nt64ValueB\n\372\3071\0060-2048\022I\n\026old_snapshot_th" +
"reshold\030\010 \001(\0132\033.google.protobuf.Int64Val" +
"ueB\014\372\3071\010-1-86400\022@\n\033max_standby_streamin" +
"g_delay\030\t \001(\0132\033.google.protobuf.Int64Val" +
"ue\022o\n\024constraint_exclusion\030\n \001(\0162Q.yande" +
"x.cloud.mdb.postgresql.v1.config.Postgre" +
"sqlHostConfig10.ConstraintExclusion\022;\n\025c" +
"ursor_tuple_fraction\030\013 \001(\0132\034.google.prot" +
"obuf.DoubleValue\022J\n\023from_collapse_limit\030" +
"\014 \001(\0132\033.google.protobuf.Int64ValueB\020\372\3071\014" +
"1-2147483647\022J\n\023join_collapse_limit\030\r \001(" +
"\0132\033.google.protobuf.Int64ValueB\020\372\3071\0141-21" +
"47483647\022l\n\023force_parallel_mode\030\016 \001(\0162O." +
"yandex.cloud.mdb.postgresql.v1.config.Po" +
"stgresqlHostConfig10.ForceParallelMode\022c" +
"\n\023client_min_messages\030\017 \001(\0162F.yandex.clo" +
"ud.mdb.postgresql.v1.config.PostgresqlHo" +
"stConfig10.LogLevel\022`\n\020log_min_messages\030" +
"\020 \001(\0162F.yandex.cloud.mdb.postgresql.v1.c" +
"onfig.PostgresqlHostConfig10.LogLevel\022g\n" +
"\027log_min_error_statement\030\021 \001(\0162F.yandex." +
"cloud.mdb.postgresql.v1.config.Postgresq" +
"lHostConfig10.LogLevel\022?\n\032log_min_durati" +
"on_statement\030\022 \001(\0132\033.google.protobuf.Int" +
"64Value\0223\n\017log_checkpoints\030\023 \001(\0132\032.googl" +
"e.protobuf.BoolValue\0223\n\017log_connections\030" +
"\024 \001(\0132\032.google.protobuf.BoolValue\0226\n\022log" +
"_disconnections\030\025 \001(\0132\032.google.protobuf." +
"BoolValue\0220\n\014log_duration\030\026 \001(\0132\032.google" +
".protobuf.BoolValue\022l\n\023log_error_verbosi" +
"ty\030\027 \001(\0162O.yandex.cloud.mdb.postgresql.v" +
"1.config.PostgresqlHostConfig10.LogError" +
"Verbosity\0222\n\016log_lock_waits\030\030 \001(\0132\032.goog" +
"le.protobuf.BoolValue\022a\n\rlog_statement\030\031" +
" \001(\0162J.yandex.cloud.mdb.postgresql.v1.co" +
"nfig.PostgresqlHostConfig10.LogStatement" +
"\0223\n\016log_temp_files\030\032 \001(\0132\033.google.protob" +
"uf.Int64Value\022\023\n\013search_path\030\033 \001(\t\0220\n\014ro" +
"w_security\030\034 \001(\0132\032.google.protobuf.BoolV" +
"alue\022y\n\035default_transaction_isolation\030\035 " +
"\001(\0162R.yandex.cloud.mdb.postgresql.v1.con" +
"fig.PostgresqlHostConfig10.TransactionIs" +
"olation\0226\n\021statement_timeout\030\036 \001(\0132\033.goo" +
"gle.protobuf.Int64Value\0221\n\014lock_timeout\030" +
"\037 \001(\0132\033.google.protobuf.Int64Value\022H\n#id" +
"le_in_transaction_session_timeout\030 \001(\0132" +
"\033.google.protobuf.Int64Value\022_\n\014bytea_ou" +
"tput\030! \001(\0162I.yandex.cloud.mdb.postgresql" +
".v1.config.PostgresqlHostConfig10.ByteaO" +
"utput\022Z\n\txmlbinary\030\" \001(\0162G.yandex.cloud." +
"mdb.postgresql.v1.config.PostgresqlHostC" +
"onfig10.XmlBinary\022Z\n\txmloption\030# \001(\0162G.y" +
"andex.cloud.mdb.postgresql.v1.config.Pos" +
"tgresqlHostConfig10.XmlOption\022;\n\026gin_pen" +
"ding_list_limit\030$ \001(\0132\033.google.protobuf." +
"Int64Value\0225\n\020deadlock_timeout\030% \001(\0132\033.g" +
"oogle.protobuf.Int64Value\022>\n\031max_locks_p" +
"er_transaction\030& \001(\0132\033.google.protobuf.I" +
"nt64Value\022C\n\036max_pred_locks_per_transact" +
"ion\030\' \001(\0132\033.google.protobuf.Int64Value\022/" +
"\n\013array_nulls\030( \001(\0132\032.google.protobuf.Bo" +
"olValue\022e\n\017backslash_quote\030) \001(\0162L.yande" +
"x.cloud.mdb.postgresql.v1.config.Postgre" +
"sqlHostConfig10.BackslashQuote\0225\n\021defaul" +
"t_with_oids\030* \001(\0132\032.google.protobuf.Bool" +
"Value\0229\n\025escape_string_warning\030+ \001(\0132\032.g" +
"oogle.protobuf.BoolValue\0228\n\024lo_compat_pr" +
"ivileges\030, \001(\0132\032.google.protobuf.BoolVal" +
"ue\022?\n\033operator_precedence_warning\030- \001(\0132" +
"\032.google.protobuf.BoolValue\0229\n\025quote_all" +
"_identifiers\030. \001(\0132\032.google.protobuf.Boo" +
"lValue\022?\n\033standard_conforming_strings\030/ " +
"\001(\0132\032.google.protobuf.BoolValue\0228\n\024synch" +
"ronize_seqscans\0300 \001(\0132\032.google.protobuf." +
"BoolValue\0229\n\025transform_null_equals\0301 \001(\013" +
"2\032.google.protobuf.BoolValue\0221\n\rexit_on_" +
"error\0302 \001(\0132\032.google.protobuf.BoolValue\022" +
"3\n\rseq_page_cost\0303 \001(\0132\034.google.protobuf" +
".DoubleValue\0226\n\020random_page_cost\0304 \001(\0132\034" +
".google.protobuf.DoubleValue\0225\n\021enable_b" +
"itmapscan\0306 \001(\0132\032.google.protobuf.BoolVa" +
"lue\0222\n\016enable_hashagg\0307 \001(\0132\032.google.pro" +
"tobuf.BoolValue\0223\n\017enable_hashjoin\0308 \001(\013" +
"2\032.google.protobuf.BoolValue\0224\n\020enable_i" +
"ndexscan\0309 \001(\0132\032.google.protobuf.BoolVal" +
"ue\0228\n\024enable_indexonlyscan\030: \001(\0132\032.googl" +
"e.protobuf.BoolValue\0223\n\017enable_material\030" +
"; \001(\0132\032.google.protobuf.BoolValue\0224\n\020ena" +
"ble_mergejoin\030< \001(\0132\032.google.protobuf.Bo" +
"olValue\0223\n\017enable_nestloop\030= \001(\0132\032.googl" +
"e.protobuf.BoolValue\0222\n\016enable_seqscan\030>" +
" \001(\0132\032.google.protobuf.BoolValue\022/\n\013enab" +
"le_sort\030? \001(\0132\032.google.protobuf.BoolValu" +
"e\0222\n\016enable_tidscan\030@ \001(\0132\032.google.proto" +
"buf.BoolValue\022E\n\024max_parallel_workers\030A " +
"\001(\0132\033.google.protobuf.Int64ValueB\n\372\3071\0060-" +
"1024\022P\n\037max_parallel_workers_per_gather\030" +
"B \001(\0132\033.google.protobuf.Int64ValueB\n\372\3071\006" +
"0-1024\022\020\n\010timezone\030C \001(\t\022I\n\030effective_io" +
"_concurrency\030D \001(\0132\033.google.protobuf.Int" +
"64ValueB\n\372\3071\0060-1000\022M\n\024effective_cache_s" +
"ize\030E \001(\0132\033.google.protobuf.Int64ValueB\022" +
"\372\3071\0160-549755813888\"\232\001\n\023ConstraintExclusi" +
"on\022$\n CONSTRAINT_EXCLUSION_UNSPECIFIED\020\000" +
"\022\033\n\027CONSTRAINT_EXCLUSION_ON\020\001\022\034\n\030CONSTRA" +
"INT_EXCLUSION_OFF\020\002\022\"\n\036CONSTRAINT_EXCLUS" +
"ION_PARTITION\020\003\"\222\001\n\021ForceParallelMode\022#\n" +
"\037FORCE_PARALLEL_MODE_UNSPECIFIED\020\000\022\032\n\026FO" +
"RCE_PARALLEL_MODE_ON\020\001\022\033\n\027FORCE_PARALLEL" +
"_MODE_OFF\020\002\022\037\n\033FORCE_PARALLEL_MODE_REGRE" +
"SS\020\003\"\222\002\n\010LogLevel\022\031\n\025LOG_LEVEL_UNSPECIFI" +
"ED\020\000\022\024\n\020LOG_LEVEL_DEBUG5\020\001\022\024\n\020LOG_LEVEL_" +
"DEBUG4\020\002\022\024\n\020LOG_LEVEL_DEBUG3\020\003\022\024\n\020LOG_LE" +
"VEL_DEBUG2\020\004\022\024\n\020LOG_LEVEL_DEBUG1\020\005\022\021\n\rLO" +
"G_LEVEL_LOG\020\006\022\024\n\020LOG_LEVEL_NOTICE\020\007\022\025\n\021L" +
"OG_LEVEL_WARNING\020\010\022\023\n\017LOG_LEVEL_ERROR\020\t\022" +
"\023\n\017LOG_LEVEL_FATAL\020\n\022\023\n\017LOG_LEVEL_PANIC\020" +
"\013\"\231\001\n\021LogErrorVerbosity\022#\n\037LOG_ERROR_VER" +
"BOSITY_UNSPECIFIED\020\000\022\035\n\031LOG_ERROR_VERBOS" +
"ITY_TERSE\020\001\022\037\n\033LOG_ERROR_VERBOSITY_DEFAU" +
"LT\020\002\022\037\n\033LOG_ERROR_VERBOSITY_VERBOSE\020\003\"\212\001" +
"\n\014LogStatement\022\035\n\031LOG_STATEMENT_UNSPECIF" +
"IED\020\000\022\026\n\022LOG_STATEMENT_NONE\020\001\022\025\n\021LOG_STA" +
"TEMENT_DDL\020\002\022\025\n\021LOG_STATEMENT_MOD\020\003\022\025\n\021L" +
"OG_STATEMENT_ALL\020\004\"\346\001\n\024TransactionIsolat" +
"ion\022%\n!TRANSACTION_ISOLATION_UNSPECIFIED" +
"\020\000\022*\n&TRANSACTION_ISOLATION_READ_UNCOMMI" +
"TTED\020\001\022(\n$TRANSACTION_ISOLATION_READ_COM" +
"MITTED\020\002\022)\n%TRANSACTION_ISOLATION_REPEAT" +
"ABLE_READ\020\003\022&\n\"TRANSACTION_ISOLATION_SER" +
"IALIZABLE\020\004\"[\n\013ByteaOutput\022\034\n\030BYTEA_OUTP" +
"UT_UNSPECIFIED\020\000\022\024\n\020BYTEA_OUTPUT_HEX\020\001\022\030" +
"\n\024BYTEA_OUTPUT_ESCAPED\020\002\"R\n\tXmlBinary\022\032\n" +
"\026XML_BINARY_UNSPECIFIED\020\000\022\025\n\021XML_BINARY_" +
"BASE64\020\001\022\022\n\016XML_BINARY_HEX\020\002\"X\n\tXmlOptio" +
"n\022\032\n\026XML_OPTION_UNSPECIFIED\020\000\022\027\n\023XML_OPT" +
"ION_DOCUMENT\020\001\022\026\n\022XML_OPTION_CONTENT\020\002\"\232" +
"\001\n\016BackslashQuote\022\037\n\033BACKSLASH_QUOTE_UNS" +
"PECIFIED\020\000\022\023\n\017BACKSLASH_QUOTE\020\001\022\026\n\022BACKS" +
"LASH_QUOTE_ON\020\002\022\027\n\023BACKSLASH_QUOTE_OFF\020\003" +
"\022!\n\035BACKSLASH_QUOTE_SAFE_ENCODING\020\004B\201\001\n)" +
"yandex.cloud.api.mdb.postgresql.v1.confi" +
"gZTgithub.com/yandex-cloud/go-genproto/y" +
"andex/cloud/mdb/postgresql/v1/config;pos" +
"tgresqlb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.WrappersProto.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_postgresql_v1_config_PostgresqlHostConfig10_descriptor,
new java.lang.String[] { "RecoveryMinApplyDelay", "SharedBuffers", "TempBuffers", "WorkMem", "ReplacementSortTuples", "TempFileLimit", "BackendFlushAfter", "OldSnapshotThreshold", "MaxStandbyStreamingDelay", "ConstraintExclusion", "CursorTupleFraction", "FromCollapseLimit", "JoinCollapseLimit", "ForceParallelMode", "ClientMinMessages", "LogMinMessages", "LogMinErrorStatement", "LogMinDurationStatement", "LogCheckpoints", "LogConnections", "LogDisconnections", "LogDuration", "LogErrorVerbosity", "LogLockWaits", "LogStatement", "LogTempFiles", "SearchPath", "RowSecurity", "DefaultTransactionIsolation", "StatementTimeout", "LockTimeout", "IdleInTransactionSessionTimeout", "ByteaOutput", "Xmlbinary", "Xmloption", "GinPendingListLimit", "DeadlockTimeout", "MaxLocksPerTransaction", "MaxPredLocksPerTransaction", "ArrayNulls", "BackslashQuote", "DefaultWithOids", "EscapeStringWarning", "LoCompatPrivileges", "OperatorPrecedenceWarning", "QuoteAllIdentifiers", "StandardConformingStrings", "SynchronizeSeqscans", "TransformNullEquals", "ExitOnError", "SeqPageCost", "RandomPageCost", "EnableBitmapscan", "EnableHashagg", "EnableHashjoin", "EnableIndexscan", "EnableIndexonlyscan", "EnableMaterial", "EnableMergejoin", "EnableNestloop", "EnableSeqscan", "EnableSort", "EnableTidscan", "MaxParallelWorkers", "MaxParallelWorkersPerGather", "Timezone", "EffectiveIoConcurrency", "EffectiveCacheSize", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.WrappersProto.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
|
[
"[email protected]"
] | |
0b0e221462bf61ffd7773703575b934393b7a7f3
|
940351bf1f8ec8107f62166879bdb2be046fb23d
|
/src/main/java/com/zzh/design/delegate/simple/IEmployee.java
|
2610709af2a12ffb02ae8be04b49624d8cf132c4
|
[] |
no_license
|
1170907501/GpPatternDesign
|
ee1c9b81f2b9fed00637ed7dbb8f769573b9c4aa
|
f228631f0d0cf7dec69d32654bb535db095587eb
|
refs/heads/master
| 2020-04-27T16:56:21.196223 | 2019-03-20T09:05:16 | 2019-03-20T09:05:16 | 174,498,061 | 0 | 1 | null | null | null | null |
UTF-8
|
Java
| false | false | 117 |
java
|
package com.zzh.design.delegate.simple;
public interface IEmployee {
public void doSomething(String command);
}
|
[
"[email protected]"
] | |
c0cfffd828199a5d15446028e64c6fa4b207ef2d
|
f59a776d9f5c7a1417fe6294ff2827c01e184946
|
/src/main/java/com/forgerock/consumer/data/right/model/v1_0_0/RequestAccountIds.java
|
e1e0be8e5d688594a8939e305ea3c69e11c940b9
|
[
"Apache-2.0"
] |
permissive
|
OpenBankingToolkit/cdr-standards-model
|
4ac0c964af035f7399faff58648ccc1205ae7364
|
e648cd4c17e043012ae33b121512d3693552a21c
|
refs/heads/master
| 2021-03-11T21:46:21.606631 | 2020-04-09T07:25:26 | 2020-04-09T07:25:26 | 246,561,680 | 0 | 1 |
Apache-2.0
| 2020-04-09T07:25:27 | 2020-03-11T12:13:13 |
Java
|
UTF-8
|
Java
| false | false | 3,338 |
java
|
/**
* Copyright 2019 ForgeRock AS.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.forgerock.consumer.data.right.model.v1_0_0;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Objects;
/**
* RequestAccountIds
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-03-05T15:11:31.339883Z[Europe/London]")
public class RequestAccountIds {
@JsonProperty("data")
private Object data = null;
@JsonProperty("meta")
private Meta meta = null;
public RequestAccountIds data(Object data) {
this.data = data;
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(required = true, value = "")
@NotNull
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public RequestAccountIds meta(Meta meta) {
this.meta = meta;
return this;
}
/**
* Get meta
* @return meta
**/
@ApiModelProperty(value = "")
@Valid
public Meta getMeta() {
return meta;
}
public void setMeta(Meta meta) {
this.meta = meta;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RequestAccountIds requestAccountIds = (RequestAccountIds) o;
return Objects.equals(this.data, requestAccountIds.data) &&
Objects.equals(this.meta, requestAccountIds.meta);
}
@Override
public int hashCode() {
return Objects.hash(data, meta);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RequestAccountIds {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" meta: ").append(toIndentedString(meta)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
[
"[email protected]"
] | |
b44418412d91bf8e149eac986ef7e5e803db7901
|
a70a6a6993d4fd5cc12ab370a216825f76618535
|
/entrez-parsing/src/main/java/parsers/pubmed/MedlineCitationSet.java
|
194f52f204c046879dc19ed8a16486b4b5ec557f
|
[] |
no_license
|
agrunfeld/solr-pubmed
|
ea034e8f87d42e889686e90bb2d386236ce265e6
|
ce517813e7eeb032b91f99e85c20077579688b9e
|
refs/heads/master
| 2021-01-24T21:41:16.911047 | 2015-01-07T04:25:49 | 2015-01-07T04:25:49 | 35,726,154 | 3 | 2 | null | 2015-05-16T14:10:23 | 2015-05-16T14:10:22 | null |
UTF-8
|
Java
| false | false | 2,254 |
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.10.08 at 07:13:02 PM PDT
//
package parsers.pubmed;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"medlineCitation",
"deleteCitation"
})
@XmlRootElement(name = "MedlineCitationSet")
public class MedlineCitationSet {
@XmlElement(name = "MedlineCitation")
protected List<MedlineCitation> medlineCitation;
@XmlElement(name = "DeleteCitation")
protected DeleteCitation deleteCitation;
/**
* Gets the value of the medlineCitation property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the medlineCitation property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMedlineCitation().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link parsers.pubmed.MedlineCitation }
*
*
*/
public List<MedlineCitation> getMedlineCitation() {
if (medlineCitation == null) {
medlineCitation = new ArrayList<MedlineCitation>();
}
return this.medlineCitation;
}
/**
* Gets the value of the deleteCitation property.
*
* @return
* possible object is
* {@link DeleteCitation }
*
*/
public DeleteCitation getDeleteCitation() {
return deleteCitation;
}
/**
* Sets the value of the deleteCitation property.
*
* @param value
* allowed object is
* {@link DeleteCitation }
*
*/
public void setDeleteCitation(DeleteCitation value) {
this.deleteCitation = value;
}
}
|
[
"[email protected]"
] | |
97848c214474478cff1d32f121beb63c1bc7ea74
|
d520d51ff0e99fcced2af6b67c1e71c35360574f
|
/capture.java
|
7c83ab31fd0b7aca1fa595646b7269ed6aa20248
|
[] |
no_license
|
prateek552/opencv-android-app
|
6c9a08ff055838ad3463b38d48feed28e6e64ea5
|
606f497539de495641559c4e1b188b9218cfda16
|
refs/heads/master
| 2021-04-12T05:06:51.212534 | 2018-03-19T18:57:30 | 2018-03-19T18:57:30 | 125,903,841 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,745 |
java
|
package com.example.prateekbajaj.opencv;
import com.example.prateekbajaj.opencv.*;
import android.graphics.Bitmap;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import org.opencv.android.Utils;
import org.opencv.core.CvException;
import org.opencv.core.Mat;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by Prateek bajaj on 15-08-2017.
*/
public class capture extends AppCompatActivity{
void clickcapture(Mat subimg) {
File sd = new File(Environment.getExternalStorageDirectory().toString()+File.separator+"/pb");
boolean success = true;
if (!sd.exists()) {
sd.mkdir();
}
/* if (success) {
File dest = new File(sd, filename);
try {
out = new FileOutputStream(dest);
bmp.compress(Bitmap.CompressFormat.PNG, 100, out); // bmp is your Bitmap instance
// PNG is a lossless format, the compression factor (100) is ignored
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (out != null) {
out.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
/* Bitmap bmp = null;
try {
bmp = Bitmap.createBitmap(subimg.cols(), subimg.rows(), Bitmap.Config.ARGB_8888);
Utils.matToBitmap(subimg, bmp);
} catch (CvException e) {
}
subimg.release();
String timestamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
FileOutputStream out = null;
String filename = "Pic" + " " + timestamp + ".jpg";
Log.i(tag,Environment.getExternalStorageDirectory().toString());
File sd = new File(Environment.getExternalStorageDirectory().toString() + File.separator+"TheCameraApp");
if(!sd.exists())
{
sd.mkdir();
}
File file = new File(sd, filename);
try {
out = new FileOutputStream(file);
bmp.compress(Bitmap.CompressFormat.JPEG, 100, out);
out.close();
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (out != null) {
out.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}*/
}
}
|
[
"prateek bajaj"
] |
prateek bajaj
|
555f1e8d9d9b776e54e837a60be55622abc82830
|
50553064717edb07eab1975dd23696325de235c4
|
/test/ToDoLog/input/test/SystemTest.java
|
caf4dd0ecae47e4181bac64bd26c46cb4e539c55
|
[] |
no_license
|
ncnlinh/code-collate-cs2103
|
7aa989f6eb1ee8fc9820bc91b33b16395a3eff74
|
ac9cc6caad2b1e09b1a96f4efcd935b0b3365e27
|
refs/heads/master
| 2020-05-17T16:01:42.643633 | 2015-03-14T09:50:55 | 2015-03-14T09:50:55 | 29,126,775 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,475 |
java
|
package test;
//import static org.junit.Assert.fail;
import java.util.Random;
import org.junit.BeforeClass;
import org.junit.Test;
import controller.Controller;
//@author A0112156U
public class SystemTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@Test
public void testScalability() {
Controller.init("testScale.xml");
//DateTime now = new DateTime();
for (int i = 0; i<300; i++) {
Controller.acceptUserCommand(createRandomFloatingTaskString());
Controller.acceptUserCommand(createRandomTimedTaskString());
Controller.acceptUserCommand(createRandomDeadlineTaskString());
}
// DateTime now2 = new DateTime();
// System.out.println(now2.getSecondOfDay()-now.getSecondOfDay());
}
private String createRandomFloatingTaskString() {
String name = createRandomString();
return "add "+name;
}
private String createRandomTimedTaskString() {
//TODO
String name = createRandomString();
return "add "+name + " by tomorrow";
}
private String createRandomDeadlineTaskString() {
String name = createRandomString();
return "add "+name + " on sunday";
}
private String createRandomString() {
char[] chars = "abcdefghijklmnopqrstuvwxyz01123456789".toCharArray();
StringBuilder sb = new StringBuilder();
Random random = new Random();
for (int i = 0; i < 20; i++) {
char c = chars[random.nextInt(chars.length)];
sb.append(c);
}
String name = sb.toString();
return name;
}
}
|
[
"[email protected]"
] | |
bca703e9e4c825db577bea8e095c456373021750
|
86fa27e7f92edcddb2c0e1d49d10db9144b15487
|
/spring/beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java
|
c00ac4ec13c7f5cd9ee362f5852631b01c922567
|
[] |
no_license
|
melodyfff/xc-magic
|
ba59502c1a01320b1b3f298445ae555bdb19f82a
|
a655cd9b39c36c606b8cc3c8b3459a773a2ac2a9
|
refs/heads/master
| 2022-12-01T05:25:32.108353 | 2021-08-11T00:34:52 | 2021-08-11T00:34:52 | 164,128,233 | 0 | 0 | null | 2022-11-24T08:37:23 | 2019-01-04T16:10:30 |
Java
|
UTF-8
|
Java
| false | false | 47,396 |
java
|
package org.springframework.beans.factory.annotation;
import static org.assertj.core.api.AssertionsForClassTypes.assertThatExceptionOfType;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
import java.io.Serializable;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.stream.Collectors;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.support.GenericBeanDefinition;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.beans.testfixture.beans.ITestBean;
import org.springframework.beans.testfixture.beans.IndexedTestBean;
import org.springframework.beans.testfixture.beans.NestedTestBean;
import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.cglib.proxy.InvocationHandler;
import org.springframework.cglib.proxy.Proxy;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
import org.springframework.core.annotation.Order;
/**
* @date 2021-08-02 13:50
*/
class AutowiredAnnotationBeanPostProcessorTests {
private DefaultListableBeanFactory defaultListableBeanFactory;
private AutowiredAnnotationBeanPostProcessor beanPostProcessor;
@BeforeEach
public void setup() {
defaultListableBeanFactory = new DefaultListableBeanFactory();
defaultListableBeanFactory.registerResolvableDependency(BeanFactory.class,
defaultListableBeanFactory);
beanPostProcessor = new AutowiredAnnotationBeanPostProcessor();
beanPostProcessor.setBeanFactory(defaultListableBeanFactory);
defaultListableBeanFactory.addBeanPostProcessor(beanPostProcessor);
defaultListableBeanFactory.setAutowireCandidateResolver(new QualifierAnnotationAutowireCandidateResolver());
defaultListableBeanFactory.setDependencyComparator(AnnotationAwareOrderComparator.INSTANCE);
}
@AfterEach
public void close() {
defaultListableBeanFactory.destroySingletons();
}
@Test
public void testIncompleteBeanDefinition() {
// 不完整的bean
defaultListableBeanFactory.registerBeanDefinition("testBean", new GenericBeanDefinition());
assertThatExceptionOfType(BeanCreationException.class).isThrownBy(() ->
defaultListableBeanFactory.getBean("testBean"))
.withRootCauseInstanceOf(IllegalStateException.class);
}
@Test
public void testResourceInjection() {
RootBeanDefinition beanDefinition = new RootBeanDefinition(ResourceInjectionBean.class);
// 这里设置为prototype,每次新建
beanDefinition.setScope(BeanDefinition.SCOPE_PROTOTYPE);
defaultListableBeanFactory.registerBeanDefinition("annotatedBean", beanDefinition);
TestBean tb = new TestBean();
defaultListableBeanFactory.registerSingleton("testBean", tb);
// 以下获取的TestBean均为同一个
ResourceInjectionBean bean = (ResourceInjectionBean) defaultListableBeanFactory.getBean("annotatedBean");
assertThat(bean.getTestBean()).isSameAs(tb);
assertThat(bean.getTestBean2()).isSameAs(tb);
bean = (ResourceInjectionBean) defaultListableBeanFactory.getBean("annotatedBean");
assertThat(bean.getTestBean()).isSameAs(tb);
assertThat(bean.getTestBean2()).isSameAs(tb);
}
@Test
public void testExtendedResourceInjection() {
RootBeanDefinition bd = new RootBeanDefinition(TypedExtendedResourceInjectionBean.class);
bd.setScope(BeanDefinition.SCOPE_PROTOTYPE);
defaultListableBeanFactory.registerBeanDefinition("annotatedBean", bd);
TestBean tb = new TestBean();
defaultListableBeanFactory.registerSingleton("testBean", tb);
NestedTestBean ntb = new NestedTestBean();
defaultListableBeanFactory.registerSingleton("nestedTestBean", ntb);
TypedExtendedResourceInjectionBean bean = (TypedExtendedResourceInjectionBean) defaultListableBeanFactory.getBean("annotatedBean");
assertThat(bean.getTestBean()).isSameAs(tb);
assertThat(bean.getTestBean2()).isSameAs(tb);
assertThat(bean.getTestBean3()).isSameAs(tb);
assertThat(bean.getTestBean4()).isSameAs(tb);
assertThat(bean.getNestedTestBean()).isSameAs(ntb);
assertThat(bean.getBeanFactory()).isSameAs(defaultListableBeanFactory);
bean = (TypedExtendedResourceInjectionBean) defaultListableBeanFactory.getBean("annotatedBean");
assertThat(bean.getTestBean()).isSameAs(tb);
assertThat(bean.getTestBean2()).isSameAs(tb);
assertThat(bean.getTestBean3()).isSameAs(tb);
assertThat(bean.getTestBean4()).isSameAs(tb);
assertThat(bean.getNestedTestBean()).isSameAs(ntb);
assertThat(bean.getBeanFactory()).isSameAs(defaultListableBeanFactory);
String[] depBeans = defaultListableBeanFactory.getDependenciesForBean("annotatedBean");
assertThat(depBeans.length).isEqualTo(2);
assertThat(depBeans[0]).isEqualTo("testBean");
assertThat(depBeans[1]).isEqualTo("nestedTestBean");
}
@Test
public void testExtendedResourceInjectionWithDestruction() {
defaultListableBeanFactory.registerBeanDefinition("annotatedBean", new RootBeanDefinition(TypedExtendedResourceInjectionBean.class));
defaultListableBeanFactory.registerBeanDefinition("testBean", new RootBeanDefinition(TestBean.class));
NestedTestBean ntb = new NestedTestBean();
defaultListableBeanFactory.registerSingleton("nestedTestBean", ntb);
TestBean tb = defaultListableBeanFactory.getBean("testBean", TestBean.class);
TypedExtendedResourceInjectionBean bean = (TypedExtendedResourceInjectionBean) defaultListableBeanFactory.getBean("annotatedBean");
assertThat(bean.getTestBean()).isSameAs(tb);
assertThat(bean.getTestBean2()).isSameAs(tb);
assertThat(bean.getTestBean3()).isSameAs(tb);
assertThat(bean.getTestBean4()).isSameAs(tb);
assertThat(bean.getNestedTestBean()).isSameAs(ntb);
assertThat(bean.getBeanFactory()).isSameAs(defaultListableBeanFactory);
assertThat(defaultListableBeanFactory.getDependenciesForBean("annotatedBean")).isEqualTo(new String[] {"testBean", "nestedTestBean"});
defaultListableBeanFactory.destroySingleton("testBean");
assertThat(defaultListableBeanFactory.containsSingleton("testBean")).isFalse();
assertThat(defaultListableBeanFactory.containsSingleton("annotatedBean")).isFalse();
assertThat(bean.destroyed).isTrue();
assertThat(defaultListableBeanFactory.getDependenciesForBean("annotatedBean").length).isSameAs(0);
}
//============================================================================
// TEST FIXTURES FOR AutowiredAnnotationBeanPostProcessorTests
//============================================================================
@Qualifier("testBean")
private void testBeanQualifierProvider() {}
@Qualifier("integerRepo")
private Repository<?> integerRepositoryQualifierProvider;
public static class ResourceInjectionBean {
@Autowired(required = false)
private TestBean testBean;
private TestBean testBean2;
@Autowired
public void setTestBean2(TestBean testBean2) {
if (this.testBean2 != null) {
throw new IllegalStateException("Already called");
}
this.testBean2 = testBean2;
}
public TestBean getTestBean() {
return this.testBean;
}
public TestBean getTestBean2() {
return this.testBean2;
}
}
static class NonPublicResourceInjectionBean<T> extends ResourceInjectionBean {
@Autowired
public final ITestBean testBean3 = null;
private T nestedTestBean;
private ITestBean testBean4;
protected BeanFactory beanFactory;
public boolean baseInjected = false;
public NonPublicResourceInjectionBean() {
}
@Override
@Autowired
@Required
@SuppressWarnings("deprecation")
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
}
@Autowired
private void inject(ITestBean testBean4, T nestedTestBean) {
this.testBean4 = testBean4;
this.nestedTestBean = nestedTestBean;
}
@Autowired
private void inject(ITestBean testBean4) {
this.baseInjected = true;
}
@Autowired
protected void initBeanFactory(BeanFactory beanFactory) {
this.beanFactory = beanFactory;
}
public ITestBean getTestBean3() {
return this.testBean3;
}
public ITestBean getTestBean4() {
return this.testBean4;
}
public T getNestedTestBean() {
return this.nestedTestBean;
}
public BeanFactory getBeanFactory() {
return this.beanFactory;
}
}
public static class TypedExtendedResourceInjectionBean extends NonPublicResourceInjectionBean<NestedTestBean>
implements DisposableBean {
public boolean destroyed = false;
@Override
public void destroy() {
this.destroyed = true;
}
}
public static class OverriddenExtendedResourceInjectionBean extends NonPublicResourceInjectionBean<NestedTestBean> {
public boolean subInjected = false;
@Override
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
}
@Override
protected void initBeanFactory(BeanFactory beanFactory) {
this.beanFactory = beanFactory;
}
@Autowired
private void inject(ITestBean testBean4) {
this.subInjected = true;
}
}
public interface InterfaceWithDefaultMethod {
@Autowired
void setTestBean2(TestBean testBean2);
@Autowired
default void injectDefault(ITestBean testBean4) {
markSubInjected();
}
void markSubInjected();
}
public static class DefaultMethodResourceInjectionBean extends NonPublicResourceInjectionBean<NestedTestBean>
implements InterfaceWithDefaultMethod {
public boolean subInjected = false;
@Override
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
}
@Override
protected void initBeanFactory(BeanFactory beanFactory) {
this.beanFactory = beanFactory;
}
@Override
public void markSubInjected() {
subInjected = true;
}
}
public static class OptionalResourceInjectionBean extends ResourceInjectionBean {
@Autowired(required = false)
protected ITestBean testBean3;
private IndexedTestBean indexedTestBean;
private NestedTestBean[] nestedTestBeans;
@Autowired(required = false)
public NestedTestBean[] nestedTestBeansField;
private ITestBean testBean4;
@Override
@Autowired(required = false)
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
}
@Autowired(required = false)
private void inject(ITestBean testBean4, NestedTestBean[] nestedTestBeans, IndexedTestBean indexedTestBean) {
this.testBean4 = testBean4;
this.indexedTestBean = indexedTestBean;
this.nestedTestBeans = nestedTestBeans;
}
public ITestBean getTestBean3() {
return this.testBean3;
}
public ITestBean getTestBean4() {
return this.testBean4;
}
public IndexedTestBean getIndexedTestBean() {
return this.indexedTestBean;
}
public NestedTestBean[] getNestedTestBeans() {
return this.nestedTestBeans;
}
}
public static class OptionalCollectionResourceInjectionBean extends ResourceInjectionBean {
@Autowired(required = false)
protected ITestBean testBean3;
private IndexedTestBean indexedTestBean;
private List<NestedTestBean> nestedTestBeans;
public List<NestedTestBean> nestedTestBeansSetter;
@Autowired(required = false)
public List<NestedTestBean> nestedTestBeansField;
private ITestBean testBean4;
@Override
@Autowired(required = false)
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
}
@Autowired(required = false)
private void inject(ITestBean testBean4, List<NestedTestBean> nestedTestBeans, IndexedTestBean indexedTestBean) {
this.testBean4 = testBean4;
this.indexedTestBean = indexedTestBean;
this.nestedTestBeans = nestedTestBeans;
}
@Autowired(required = false)
public void setNestedTestBeans(List<NestedTestBean> nestedTestBeans) {
this.nestedTestBeansSetter = nestedTestBeans;
}
public ITestBean getTestBean3() {
return this.testBean3;
}
public ITestBean getTestBean4() {
return this.testBean4;
}
public IndexedTestBean getIndexedTestBean() {
return this.indexedTestBean;
}
public List<NestedTestBean> getNestedTestBeans() {
return this.nestedTestBeans;
}
}
public static class ConstructorResourceInjectionBean extends ResourceInjectionBean {
@Autowired(required = false)
protected ITestBean testBean3;
private ITestBean testBean4;
private NestedTestBean nestedTestBean;
private ConfigurableListableBeanFactory beanFactory;
public ConstructorResourceInjectionBean() {
throw new UnsupportedOperationException();
}
public ConstructorResourceInjectionBean(ITestBean testBean3) {
throw new UnsupportedOperationException();
}
@Autowired
public ConstructorResourceInjectionBean(@Autowired(required = false) ITestBean testBean4,
@Autowired(required = false) NestedTestBean nestedTestBean,
ConfigurableListableBeanFactory beanFactory) {
this.testBean4 = testBean4;
this.nestedTestBean = nestedTestBean;
this.beanFactory = beanFactory;
}
public ConstructorResourceInjectionBean(NestedTestBean nestedTestBean) {
throw new UnsupportedOperationException();
}
public ConstructorResourceInjectionBean(ITestBean testBean3, ITestBean testBean4, NestedTestBean nestedTestBean) {
throw new UnsupportedOperationException();
}
@Override
@Autowired(required = false)
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
}
public ITestBean getTestBean3() {
return this.testBean3;
}
public ITestBean getTestBean4() {
return this.testBean4;
}
public NestedTestBean getNestedTestBean() {
return this.nestedTestBean;
}
public ConfigurableListableBeanFactory getBeanFactory() {
return this.beanFactory;
}
}
public static class ConstructorsResourceInjectionBean {
protected ITestBean testBean3;
private ITestBean testBean4;
private NestedTestBean[] nestedTestBeans;
public ConstructorsResourceInjectionBean() {
}
@Autowired(required = false)
public ConstructorsResourceInjectionBean(ITestBean testBean3) {
this.testBean3 = testBean3;
}
@Autowired(required = false)
public ConstructorsResourceInjectionBean(ITestBean testBean4, NestedTestBean[] nestedTestBeans) {
this.testBean4 = testBean4;
this.nestedTestBeans = nestedTestBeans;
}
public ConstructorsResourceInjectionBean(NestedTestBean nestedTestBean) {
throw new UnsupportedOperationException();
}
public ConstructorsResourceInjectionBean(ITestBean testBean3, ITestBean testBean4, NestedTestBean nestedTestBean) {
throw new UnsupportedOperationException();
}
public ITestBean getTestBean3() {
return this.testBean3;
}
public ITestBean getTestBean4() {
return this.testBean4;
}
public NestedTestBean[] getNestedTestBeans() {
return this.nestedTestBeans;
}
}
public static class ConstructorWithoutFallbackBean {
protected ITestBean testBean3;
@Autowired(required = false)
public ConstructorWithoutFallbackBean(ITestBean testBean3) {
this.testBean3 = testBean3;
}
public ITestBean getTestBean3() {
return this.testBean3;
}
}
public static class ConstructorsCollectionResourceInjectionBean {
protected ITestBean testBean3;
private ITestBean testBean4;
private List<NestedTestBean> nestedTestBeans;
public ConstructorsCollectionResourceInjectionBean() {
}
@Autowired(required = false)
public ConstructorsCollectionResourceInjectionBean(ITestBean testBean3) {
this.testBean3 = testBean3;
}
@Autowired(required = false)
public ConstructorsCollectionResourceInjectionBean(ITestBean testBean4, List<NestedTestBean> nestedTestBeans) {
this.testBean4 = testBean4;
this.nestedTestBeans = nestedTestBeans;
}
public ConstructorsCollectionResourceInjectionBean(NestedTestBean nestedTestBean) {
throw new UnsupportedOperationException();
}
public ConstructorsCollectionResourceInjectionBean(ITestBean testBean3, ITestBean testBean4,
NestedTestBean nestedTestBean) {
throw new UnsupportedOperationException();
}
public ITestBean getTestBean3() {
return this.testBean3;
}
public ITestBean getTestBean4() {
return this.testBean4;
}
public List<NestedTestBean> getNestedTestBeans() {
return this.nestedTestBeans;
}
}
public static class SingleConstructorVarargBean {
private ITestBean testBean;
private List<NestedTestBean> nestedTestBeans;
public SingleConstructorVarargBean(ITestBean testBean, NestedTestBean... nestedTestBeans) {
this.testBean = testBean;
this.nestedTestBeans = Arrays.asList(nestedTestBeans);
}
public ITestBean getTestBean() {
return this.testBean;
}
public List<NestedTestBean> getNestedTestBeans() {
return this.nestedTestBeans;
}
}
public static class SingleConstructorRequiredCollectionBean {
private ITestBean testBean;
private List<NestedTestBean> nestedTestBeans;
public SingleConstructorRequiredCollectionBean(ITestBean testBean, List<NestedTestBean> nestedTestBeans) {
this.testBean = testBean;
this.nestedTestBeans = nestedTestBeans;
}
public ITestBean getTestBean() {
return this.testBean;
}
public List<NestedTestBean> getNestedTestBeans() {
return this.nestedTestBeans;
}
}
public static class SingleConstructorOptionalCollectionBean {
private ITestBean testBean;
private List<NestedTestBean> nestedTestBeans;
public SingleConstructorOptionalCollectionBean(ITestBean testBean,
@Autowired(required = false) List<NestedTestBean> nestedTestBeans) {
this.testBean = testBean;
this.nestedTestBeans = nestedTestBeans;
}
public ITestBean getTestBean() {
return this.testBean;
}
public List<NestedTestBean> getNestedTestBeans() {
return this.nestedTestBeans;
}
}
@SuppressWarnings("serial")
public static class MyTestBeanMap extends LinkedHashMap<String, TestBean> {
}
@SuppressWarnings("serial")
public static class MyTestBeanSet extends LinkedHashSet<TestBean> {
}
public static class MapConstructorInjectionBean {
private Map<String, TestBean> testBeanMap;
@Autowired
public MapConstructorInjectionBean(Map<String, TestBean> testBeanMap) {
this.testBeanMap = testBeanMap;
}
public Map<String, TestBean> getTestBeanMap() {
return this.testBeanMap;
}
}
public static class QualifiedMapConstructorInjectionBean {
private Map<String, TestBean> testBeanMap;
@Autowired
public QualifiedMapConstructorInjectionBean(@Qualifier("myTestBeanMap") Map<String, TestBean> testBeanMap) {
this.testBeanMap = testBeanMap;
}
public Map<String, TestBean> getTestBeanMap() {
return this.testBeanMap;
}
}
public static class SetConstructorInjectionBean {
private Set<TestBean> testBeanSet;
@Autowired
public SetConstructorInjectionBean(Set<TestBean> testBeanSet) {
this.testBeanSet = testBeanSet;
}
public Set<TestBean> getTestBeanSet() {
return this.testBeanSet;
}
}
public static class SelfInjectionBean {
@Autowired
public SelfInjectionBean reference;
@Autowired(required = false)
public List<SelfInjectionBean> referenceCollection;
}
@SuppressWarnings("serial")
public static class SelfInjectionCollectionBean extends ArrayList<SelfInjectionCollectionBean> {
@Autowired
public SelfInjectionCollectionBean reference;
@Autowired(required = false)
public List<SelfInjectionCollectionBean> referenceCollection;
}
public static class MapFieldInjectionBean {
@Autowired
private Map<String, TestBean> testBeanMap;
public Map<String, TestBean> getTestBeanMap() {
return this.testBeanMap;
}
}
public static class MapMethodInjectionBean {
private TestBean testBean;
private Map<String, TestBean> testBeanMap;
@Autowired(required = false)
public void setTestBeanMap(TestBean testBean, Map<String, TestBean> testBeanMap) {
this.testBean = testBean;
this.testBeanMap = testBeanMap;
}
public TestBean getTestBean() {
return this.testBean;
}
public Map<String, TestBean> getTestBeanMap() {
return this.testBeanMap;
}
}
@SuppressWarnings("serial")
public static class ObjectFactoryFieldInjectionBean implements Serializable {
@Autowired
private ObjectFactory<TestBean> testBeanFactory;
public TestBean getTestBean() {
return this.testBeanFactory.getObject();
}
}
@SuppressWarnings("serial")
public static class ObjectFactoryConstructorInjectionBean implements Serializable {
private final ObjectFactory<TestBean> testBeanFactory;
public ObjectFactoryConstructorInjectionBean(ObjectFactory<TestBean> testBeanFactory) {
this.testBeanFactory = testBeanFactory;
}
public TestBean getTestBean() {
return this.testBeanFactory.getObject();
}
}
public static class ObjectFactoryQualifierInjectionBean {
@Autowired
@Qualifier("testBean")
private ObjectFactory<?> testBeanFactory;
public TestBean getTestBean() {
return (TestBean) this.testBeanFactory.getObject();
}
}
public static class ObjectProviderInjectionBean {
@Autowired
private ObjectProvider<TestBean> testBeanProvider;
private TestBean consumedTestBean;
public TestBean getTestBean() {
return this.testBeanProvider.getObject();
}
public TestBean getTestBean(String name) {
return this.testBeanProvider.getObject(name);
}
public TestBean getOptionalTestBean() {
return this.testBeanProvider.getIfAvailable();
}
public TestBean getOptionalTestBeanWithDefault() {
return this.testBeanProvider.getIfAvailable(() -> new TestBean("default"));
}
public TestBean consumeOptionalTestBean() {
this.testBeanProvider.ifAvailable(tb -> consumedTestBean = tb);
return consumedTestBean;
}
public TestBean getUniqueTestBean() {
return this.testBeanProvider.getIfUnique();
}
public TestBean getUniqueTestBeanWithDefault() {
return this.testBeanProvider.getIfUnique(() -> new TestBean("default"));
}
public TestBean consumeUniqueTestBean() {
this.testBeanProvider.ifUnique(tb -> consumedTestBean = tb);
return consumedTestBean;
}
public List<TestBean> iterateTestBeans() {
List<TestBean> resolved = new ArrayList<>();
for (TestBean tb : this.testBeanProvider) {
resolved.add(tb);
}
return resolved;
}
public List<TestBean> forEachTestBeans() {
List<TestBean> resolved = new ArrayList<>();
this.testBeanProvider.forEach(resolved::add);
return resolved;
}
public List<TestBean> streamTestBeans() {
return this.testBeanProvider.stream().collect(Collectors.toList());
}
public List<TestBean> sortedTestBeans() {
return this.testBeanProvider.orderedStream().collect(Collectors.toList());
}
}
public static class CustomAnnotationRequiredFieldResourceInjectionBean {
@MyAutowired(optional = false)
private TestBean testBean;
public TestBean getTestBean() {
return this.testBean;
}
}
public static class CustomAnnotationRequiredMethodResourceInjectionBean {
private TestBean testBean;
@MyAutowired(optional = false)
public void setTestBean(TestBean testBean) {
this.testBean = testBean;
}
public TestBean getTestBean() {
return this.testBean;
}
}
public static class CustomAnnotationOptionalFieldResourceInjectionBean extends ResourceInjectionBean {
@MyAutowired(optional = true)
private TestBean testBean3;
public TestBean getTestBean3() {
return this.testBean3;
}
}
public static class CustomAnnotationOptionalMethodResourceInjectionBean extends ResourceInjectionBean {
private TestBean testBean3;
@MyAutowired(optional = true)
protected void setTestBean3(TestBean testBean3) {
this.testBean3 = testBean3;
}
public TestBean getTestBean3() {
return this.testBean3;
}
}
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAutowired {
boolean optional() default false;
}
/**
* Bean with a dependency on a {@link FactoryBean}.
*/
private static class FactoryBeanDependentBean {
@Autowired
private FactoryBean<?> factoryBean;
public final FactoryBean<?> getFactoryBean() {
return this.factoryBean;
}
}
public static class StringFactoryBean implements FactoryBean<String> {
@Override
public String getObject() throws Exception {
return "";
}
@Override
public Class<String> getObjectType() {
return String.class;
}
@Override
public boolean isSingleton() {
return true;
}
}
public static class OrderedNestedTestBean extends NestedTestBean implements Ordered {
private int order;
public void setOrder(int order) {
this.order = order;
}
@Override
public int getOrder() {
return this.order;
}
}
@Order(1)
public static class FixedOrder1NestedTestBean extends NestedTestBean {
}
@Order(2)
public static class FixedOrder2NestedTestBean extends NestedTestBean {
}
public interface Repository<T> {
}
public static class StringRepository implements Repository<String> {
}
public static class IntegerRepository implements Repository<Integer> {
}
public static class GenericRepository<T> implements Repository<T> {
}
@SuppressWarnings("rawtypes")
public static class GenericRepositorySubclass extends GenericRepository {
}
@SuppressWarnings("rawtypes")
public static class SimpleRepository implements Repository {
}
public static class SimpleRepositorySubclass extends SimpleRepository {
}
public static class RepositoryFactoryBean<T> implements FactoryBean<T> {
@Override
public T getObject() {
throw new IllegalStateException();
}
@Override
public Class<?> getObjectType() {
return Object.class;
}
@Override
public boolean isSingleton() {
return false;
}
}
public static class RepositoryFieldInjectionBean {
@Autowired
public String string;
@Autowired
public Integer integer;
@Autowired
public String[] stringArray;
@Autowired
public Integer[] integerArray;
@Autowired
public List<String> stringList;
@Autowired
public List<Integer> integerList;
@Autowired
public Map<String, String> stringMap;
@Autowired
public Map<String, Integer> integerMap;
@Autowired
public Repository<String> stringRepository;
@Autowired
public Repository<Integer> integerRepository;
@Autowired
public Repository<String>[] stringRepositoryArray;
@Autowired
public Repository<Integer>[] integerRepositoryArray;
@Autowired
public List<Repository<String>> stringRepositoryList;
@Autowired
public List<Repository<Integer>> integerRepositoryList;
@Autowired
public Map<String, Repository<String>> stringRepositoryMap;
@Autowired
public Map<String, Repository<Integer>> integerRepositoryMap;
}
public static class RepositoryFieldInjectionBeanWithVariables<S, I> {
@Autowired
public S string;
@Autowired
public I integer;
@Autowired
public S[] stringArray;
@Autowired
public I[] integerArray;
@Autowired
public List<S> stringList;
@Autowired
public List<I> integerList;
@Autowired
public Map<String, S> stringMap;
@Autowired
public Map<String, I> integerMap;
@Autowired
public Repository<S> stringRepository;
@Autowired
public Repository<I> integerRepository;
@Autowired
public Repository<S>[] stringRepositoryArray;
@Autowired
public Repository<I>[] integerRepositoryArray;
@Autowired
public List<Repository<S>> stringRepositoryList;
@Autowired
public List<Repository<I>> integerRepositoryList;
@Autowired
public Map<String, Repository<S>> stringRepositoryMap;
@Autowired
public Map<String, Repository<I>> integerRepositoryMap;
}
public static class RepositoryFieldInjectionBeanWithSubstitutedVariables
extends RepositoryFieldInjectionBeanWithVariables<String, Integer> {
}
public static class RepositoryFieldInjectionBeanWithQualifiers {
@Autowired @Qualifier("stringRepo")
public Repository<?> stringRepository;
@Autowired @Qualifier("integerRepo")
public Repository<?> integerRepository;
@Autowired @Qualifier("stringRepo")
public Repository<?>[] stringRepositoryArray;
@Autowired @Qualifier("integerRepo")
public Repository<?>[] integerRepositoryArray;
@Autowired @Qualifier("stringRepo")
public List<Repository<?>> stringRepositoryList;
@Autowired @Qualifier("integerRepo")
public List<Repository<?>> integerRepositoryList;
@Autowired @Qualifier("stringRepo")
public Map<String, Repository<?>> stringRepositoryMap;
@Autowired @Qualifier("integerRepo")
public Map<String, Repository<?>> integerRepositoryMap;
}
public static class RepositoryFieldInjectionBeanWithSimpleMatch {
@Autowired
public Repository<?> repository;
@Autowired
public Repository<String> stringRepository;
@Autowired
public Repository<?>[] repositoryArray;
@Autowired
public Repository<String>[] stringRepositoryArray;
@Autowired
public List<Repository<?>> repositoryList;
@Autowired
public List<Repository<String>> stringRepositoryList;
@Autowired
public Map<String, Repository<?>> repositoryMap;
@Autowired
public Map<String, Repository<String>> stringRepositoryMap;
}
public static class RepositoryFactoryBeanInjectionBean {
@Autowired
public RepositoryFactoryBean<?> repositoryFactoryBean;
}
public static class RepositoryMethodInjectionBean {
public String string;
public Integer integer;
public String[] stringArray;
public Integer[] integerArray;
public List<String> stringList;
public List<Integer> integerList;
public Map<String, String> stringMap;
public Map<String, Integer> integerMap;
public Repository<String> stringRepository;
public Repository<Integer> integerRepository;
public Repository<String>[] stringRepositoryArray;
public Repository<Integer>[] integerRepositoryArray;
public List<Repository<String>> stringRepositoryList;
public List<Repository<Integer>> integerRepositoryList;
public Map<String, Repository<String>> stringRepositoryMap;
public Map<String, Repository<Integer>> integerRepositoryMap;
@Autowired
public void setString(String string) {
this.string = string;
}
@Autowired
public void setInteger(Integer integer) {
this.integer = integer;
}
@Autowired
public void setStringArray(String[] stringArray) {
this.stringArray = stringArray;
}
@Autowired
public void setIntegerArray(Integer[] integerArray) {
this.integerArray = integerArray;
}
@Autowired
public void setStringList(List<String> stringList) {
this.stringList = stringList;
}
@Autowired
public void setIntegerList(List<Integer> integerList) {
this.integerList = integerList;
}
@Autowired
public void setStringMap(Map<String, String> stringMap) {
this.stringMap = stringMap;
}
@Autowired
public void setIntegerMap(Map<String, Integer> integerMap) {
this.integerMap = integerMap;
}
@Autowired
public void setStringRepository(Repository<String> stringRepository) {
this.stringRepository = stringRepository;
}
@Autowired
public void setIntegerRepository(Repository<Integer> integerRepository) {
this.integerRepository = integerRepository;
}
@Autowired
public void setStringRepositoryArray(Repository<String>[] stringRepositoryArray) {
this.stringRepositoryArray = stringRepositoryArray;
}
@Autowired
public void setIntegerRepositoryArray(Repository<Integer>[] integerRepositoryArray) {
this.integerRepositoryArray = integerRepositoryArray;
}
@Autowired
public void setStringRepositoryList(List<Repository<String>> stringRepositoryList) {
this.stringRepositoryList = stringRepositoryList;
}
@Autowired
public void setIntegerRepositoryList(List<Repository<Integer>> integerRepositoryList) {
this.integerRepositoryList = integerRepositoryList;
}
@Autowired
public void setStringRepositoryMap(Map<String, Repository<String>> stringRepositoryMap) {
this.stringRepositoryMap = stringRepositoryMap;
}
@Autowired
public void setIntegerRepositoryMap(Map<String, Repository<Integer>> integerRepositoryMap) {
this.integerRepositoryMap = integerRepositoryMap;
}
}
public static class RepositoryMethodInjectionBeanWithVariables<S, I> {
public S string;
public I integer;
public S[] stringArray;
public I[] integerArray;
public List<S> stringList;
public List<I> integerList;
public Map<String, S> stringMap;
public Map<String, I> integerMap;
public Repository<S> stringRepository;
public Repository<I> integerRepository;
public Repository<S>[] stringRepositoryArray;
public Repository<I>[] integerRepositoryArray;
public List<Repository<S>> stringRepositoryList;
public List<Repository<I>> integerRepositoryList;
public Map<String, Repository<S>> stringRepositoryMap;
public Map<String, Repository<I>> integerRepositoryMap;
@Autowired
public void setString(S string) {
this.string = string;
}
@Autowired
public void setInteger(I integer) {
this.integer = integer;
}
@Autowired
public void setStringArray(S[] stringArray) {
this.stringArray = stringArray;
}
@Autowired
public void setIntegerArray(I[] integerArray) {
this.integerArray = integerArray;
}
@Autowired
public void setStringList(List<S> stringList) {
this.stringList = stringList;
}
@Autowired
public void setIntegerList(List<I> integerList) {
this.integerList = integerList;
}
@Autowired
public void setStringMap(Map<String, S> stringMap) {
this.stringMap = stringMap;
}
@Autowired
public void setIntegerMap(Map<String, I> integerMap) {
this.integerMap = integerMap;
}
@Autowired
public void setStringRepository(Repository<S> stringRepository) {
this.stringRepository = stringRepository;
}
@Autowired
public void setIntegerRepository(Repository<I> integerRepository) {
this.integerRepository = integerRepository;
}
@Autowired
public void setStringRepositoryArray(Repository<S>[] stringRepositoryArray) {
this.stringRepositoryArray = stringRepositoryArray;
}
@Autowired
public void setIntegerRepositoryArray(Repository<I>[] integerRepositoryArray) {
this.integerRepositoryArray = integerRepositoryArray;
}
@Autowired
public void setStringRepositoryList(List<Repository<S>> stringRepositoryList) {
this.stringRepositoryList = stringRepositoryList;
}
@Autowired
public void setIntegerRepositoryList(List<Repository<I>> integerRepositoryList) {
this.integerRepositoryList = integerRepositoryList;
}
@Autowired
public void setStringRepositoryMap(Map<String, Repository<S>> stringRepositoryMap) {
this.stringRepositoryMap = stringRepositoryMap;
}
@Autowired
public void setIntegerRepositoryMap(Map<String, Repository<I>> integerRepositoryMap) {
this.integerRepositoryMap = integerRepositoryMap;
}
}
public static class RepositoryMethodInjectionBeanWithSubstitutedVariables
extends RepositoryMethodInjectionBeanWithVariables<String, Integer> {
}
public static class RepositoryConstructorInjectionBean {
public Repository<String> stringRepository;
public Repository<Integer> integerRepository;
public Repository<String>[] stringRepositoryArray;
public Repository<Integer>[] integerRepositoryArray;
public List<Repository<String>> stringRepositoryList;
public List<Repository<Integer>> integerRepositoryList;
public Map<String, Repository<String>> stringRepositoryMap;
public Map<String, Repository<Integer>> integerRepositoryMap;
@Autowired
public RepositoryConstructorInjectionBean(Repository<String> stringRepository, Repository<Integer> integerRepository,
Repository<String>[] stringRepositoryArray, Repository<Integer>[] integerRepositoryArray,
List<Repository<String>> stringRepositoryList, List<Repository<Integer>> integerRepositoryList,
Map<String, Repository<String>> stringRepositoryMap, Map<String, Repository<Integer>> integerRepositoryMap) {
this.stringRepository = stringRepository;
this.integerRepository = integerRepository;
this.stringRepositoryArray = stringRepositoryArray;
this.integerRepositoryArray = integerRepositoryArray;
this.stringRepositoryList = stringRepositoryList;
this.integerRepositoryList = integerRepositoryList;
this.stringRepositoryMap = stringRepositoryMap;
this.integerRepositoryMap = integerRepositoryMap;
}
}
/**
* Pseudo-implementation of EasyMock's {@code MocksControl} class.
*/
public static class MocksControl {
@SuppressWarnings("unchecked")
public <T> T createMock(Class<T> toMock) {
return (T) Proxy.newProxyInstance(AutowiredAnnotationBeanPostProcessorTests.class.getClassLoader(), new Class<?>[] {toMock},
new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
throw new UnsupportedOperationException("mocked!");
}
});
}
}
public interface GenericInterface1<T> {
String doSomethingGeneric(T o);
}
public static class GenericInterface1Impl<T> implements GenericInterface1<T> {
@Autowired
private GenericInterface2<T> gi2;
@Override
public String doSomethingGeneric(T o) {
return gi2.doSomethingMoreGeneric(o) + "_somethingGeneric_" + o;
}
public static GenericInterface1<String> create() {
return new StringGenericInterface1Impl();
}
public static GenericInterface1<String> createErased() {
return new GenericInterface1Impl<>();
}
@SuppressWarnings("rawtypes")
public static GenericInterface1 createPlain() {
return new GenericInterface1Impl();
}
}
public static class StringGenericInterface1Impl extends GenericInterface1Impl<String> {
}
public interface GenericInterface2<K> {
String doSomethingMoreGeneric(K o);
}
public static class GenericInterface2Impl implements GenericInterface2<String> {
@Override
public String doSomethingMoreGeneric(String o) {
return "somethingMoreGeneric_" + o;
}
}
public static class ReallyGenericInterface2Impl implements GenericInterface2<Object> {
@Override
public String doSomethingMoreGeneric(Object o) {
return "somethingMoreGeneric_" + o;
}
}
public static class GenericInterface2Bean<K> implements GenericInterface2<K>, BeanNameAware {
private String name;
@Override
public void setBeanName(String name) {
this.name = name;
}
@Override
public String doSomethingMoreGeneric(K o) {
return this.name + " " + o;
}
}
public static class MultiGenericFieldInjection {
@Autowired
private GenericInterface2<String> stringBean;
@Autowired
private GenericInterface2<Integer> integerBean;
@Override
public String toString() {
return this.stringBean.doSomethingMoreGeneric("a") + " " + this.integerBean.doSomethingMoreGeneric(123);
}
}
@SuppressWarnings("rawtypes")
public static class PlainGenericInterface2Impl implements GenericInterface2 {
@Override
public String doSomethingMoreGeneric(Object o) {
return "somethingMoreGeneric_" + o;
}
}
@SuppressWarnings("rawtypes")
public interface StockMovement<P extends StockMovementInstruction> {
}
@SuppressWarnings("rawtypes")
public interface StockMovementInstruction<C extends StockMovement> {
}
@SuppressWarnings("rawtypes")
public interface StockMovementDao<S extends StockMovement> {
}
@SuppressWarnings("rawtypes")
public static class StockMovementImpl<P extends StockMovementInstruction> implements StockMovement<P> {
}
@SuppressWarnings("rawtypes")
public static class StockMovementInstructionImpl<C extends StockMovement> implements StockMovementInstruction<C> {
}
@SuppressWarnings("rawtypes")
public static class StockMovementDaoImpl<E extends StockMovement> implements StockMovementDao<E> {
}
public static class StockServiceImpl {
@Autowired
@SuppressWarnings("rawtypes")
private StockMovementDao<StockMovement> stockMovementDao;
}
public static class MyCallable implements Callable<Thread> {
@Override
public Thread call() throws Exception {
return null;
}
}
public static class SecondCallable implements Callable<Thread> {
@Override
public Thread call() throws Exception {
return null;
}
}
public static abstract class Foo<T extends Runnable, RT extends Callable<T>> {
private RT obj;
protected void setObj(RT obj) {
if (this.obj != null) {
throw new IllegalStateException("Already called");
}
this.obj = obj;
}
}
public static class FooBar extends Foo<Thread, MyCallable> {
@Override
@Autowired
public void setObj(MyCallable obj) {
super.setObj(obj);
}
}
public static class NullNestedTestBeanFactoryBean implements FactoryBean<NestedTestBean> {
@Override
public NestedTestBean getObject() {
return null;
}
@Override
public Class<?> getObjectType() {
return NestedTestBean.class;
}
@Override
public boolean isSingleton() {
return true;
}
}
public static class NullFactoryMethods {
public static TestBean createTestBean() {
return null;
}
public static NestedTestBean createNestedTestBean() {
return null;
}
}
public static class ProvidedArgumentBean {
public ProvidedArgumentBean(String[] args) {
}
}
public static class CollectionFactoryMethods {
public static Map<String, TestBean> testBeanMap() {
Map<String, TestBean> tbm = new LinkedHashMap<>();
tbm.put("testBean1", new TestBean("tb1"));
tbm.put("testBean2", new TestBean("tb2"));
return tbm;
}
public static Set<TestBean> testBeanSet() {
Set<TestBean> tbs = new LinkedHashSet<>();
tbs.add(new TestBean("tb1"));
tbs.add(new TestBean("tb2"));
return tbs;
}
}
public static class CustomCollectionFactoryMethods {
public static CustomMap<String, TestBean> testBeanMap() {
CustomMap<String, TestBean> tbm = new CustomHashMap<>();
tbm.put("testBean1", new TestBean("tb1"));
tbm.put("testBean2", new TestBean("tb2"));
return tbm;
}
public static CustomSet<TestBean> testBeanSet() {
CustomSet<TestBean> tbs = new CustomHashSet<>();
tbs.add(new TestBean("tb1"));
tbs.add(new TestBean("tb2"));
return tbs;
}
}
public static class CustomMapConstructorInjectionBean {
private CustomMap<String, TestBean> testBeanMap;
@Autowired
public CustomMapConstructorInjectionBean(CustomMap<String, TestBean> testBeanMap) {
this.testBeanMap = testBeanMap;
}
public CustomMap<String, TestBean> getTestBeanMap() {
return this.testBeanMap;
}
}
public static class CustomSetConstructorInjectionBean {
private CustomSet<TestBean> testBeanSet;
@Autowired
public CustomSetConstructorInjectionBean(CustomSet<TestBean> testBeanSet) {
this.testBeanSet = testBeanSet;
}
public CustomSet<TestBean> getTestBeanSet() {
return this.testBeanSet;
}
}
public interface CustomMap<K, V> extends Map<K, V> {
}
@SuppressWarnings("serial")
public static class CustomHashMap<K, V> extends LinkedHashMap<K, V> implements CustomMap<K, V> {
}
public interface CustomSet<E> extends Set<E> {
}
@SuppressWarnings("serial")
public static class CustomHashSet<E> extends LinkedHashSet<E> implements CustomSet<E> {
}
public static class AnnotatedDefaultConstructorBean {
@Autowired
public AnnotatedDefaultConstructorBean() {
}
}
public static class SelfInjectingFactoryBean implements FactoryBean<TestBean> {
private final TestBean exposedTestBean = new TestBean();
@Autowired
TestBean testBean;
@Override
public TestBean getObject() {
return exposedTestBean;
}
@Override
public Class<?> getObjectType() {
return TestBean.class;
}
@Override
public boolean isSingleton() {
return true;
}
public static SelfInjectingFactoryBean create() {
return new SelfInjectingFactoryBean();
}
}
public static class TestBeanFactory {
@Order(1)
public static TestBean newTestBean1() {
return new TestBean();
}
@Order(0)
public static TestBean newTestBean2() {
return new TestBean();
}
}
}
|
[
"[email protected]"
] | |
780d1229af3ef5e86418089404ce5bd85410aba0
|
0618a9ba009cacc20a935977e6cb5e2a0b40e457
|
/src/game/NetWorkWorker.java
|
1877ebce16ef3182b38c92e5357c0cf3698692c8
|
[] |
no_license
|
mhakash/Throwmaster
|
de1b3fc24a7e8ac2b740f519f740c3cd9e52d081
|
5d582cebe2dd1df035d672594b05dcb4763b0963
|
refs/heads/master
| 2020-04-19T23:08:36.850060 | 2019-04-11T15:11:02 | 2019-04-11T15:11:02 | 168,487,955 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 709 |
java
|
package game;
import networking.Client;
import networking.Server;
import java.util.concurrent.BlockingQueue;
public class NetWorkWorker implements Runnable {
boolean isServer;
BlockingQueue<ProcessAction> queue;
public NetWorkWorker() {
}
public NetWorkWorker(boolean isServer, BlockingQueue<ProcessAction> queue) {
this.isServer = isServer;
this.queue=queue;
Thread t=new Thread(this);
t.start();
}
@Override
public void run() {
if(isServer) {
Server server = new Server(queue);
}
else
{
Client client =new Client(ProcessGame.ipAdress,22222,queue);
}
}
}
|
[
"[email protected]"
] | |
eb179ccaa81099992455b6e5fb669db4349c3859
|
1cf51c0d7d8031ba971cbe447334b265d3ea3fcb
|
/src/main/java/com/botscrew/botframework/plivo/model/PlivoUser.java
|
70aa3533605468e917d436ff6d1fceb4535063a8
|
[] |
no_license
|
botscrew-projects/bot-framework-plivo
|
79192c1dfec984d797562403bd3740fb64550ad0
|
bb20a9d205ded921a6b07ecda9b62f318c6bdd1a
|
refs/heads/master
| 2020-04-30T02:40:36.140180 | 2019-03-19T15:49:23 | 2019-03-19T15:49:23 | 176,567,052 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 932 |
java
|
/*
* Copyright 2019 BotsCrew
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.botscrew.botframework.plivo.model;
import com.botscrew.botframework.domain.user.Bot;
import com.botscrew.botframework.domain.user.PlatformUser;
public interface PlivoUser extends PlatformUser {
Long getPhoneNumber();
@Override
default Bot getBot(){
return new DefaultPlivoBot(null, null, null);
};
}
|
[
"[email protected]"
] | |
79686fb5deedd5c746eb88f6611a0657283368cf
|
cb7c8275c787dd5adf3b56cca7116295da286e6d
|
/BSc/EDA1/Labirinto/src/NoSuchElementException.java
|
ef470f2b1f16a25675fc89362e5a2d20f62fee4c
|
[] |
no_license
|
l40126-uevora/Trabs_Exerc_Univ
|
ddd2e0c6cee6e066393617ab5875ac1397211b58
|
86230cec82eb8051fb97a4a3cce9181052217c64
|
refs/heads/master
| 2021-10-08T16:24:56.591457 | 2018-12-14T15:49:11 | 2018-12-14T15:49:11 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 157 |
java
|
public class NoSuchElementException extends Exception {
public NoSuchElementException(){}
public NoSuchElementException(String mgs){
super(mgs);
}
}
|
[
"[email protected]"
] | |
e28318a91cbe5ca5fd538653bbb855267bbb0a06
|
3acc8309ef4ac8cd6e987b5ac7a34f7868e12762
|
/firegroup/firegroup-service/src/main/java/com/uc/firegroup/service/mapper/FriendLogMapper.java
|
c8983587c5b8bf8f77e948955428fa047516ffb5
|
[] |
no_license
|
HadLuo/springcloud-demo
|
23c4b06cecda15ae177cf22d6cc4ff26a7b6498b
|
ec9745d3b06bbb08b7613150cd78598d2a32742f
|
refs/heads/main
| 2023-01-05T19:30:08.795489 | 2020-10-29T07:07:47 | 2020-10-29T07:07:47 | 303,635,573 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,551 |
java
|
package com.uc.firegroup.service.mapper;
import com.uc.firegroup.api.pojo.FriendLog;
import com.uc.firegroup.api.request.FriendLogRequest;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;
public interface FriendLogMapper extends BaseMapper<FriendLog> {
/**
* 根据日期查询该水军wxId主动加好友的操作日志信息
* @param request
* @return
* @author 鲁志学 2020年9月09日
*/
public FriendLog selectFriendLogFromByDay(FriendLogRequest request);
/**
* 根据日期查询该水军wxId被加好友的操作日志信息
* @param request
* @return
* @author 鲁志学 2020年9月09日
*/
public FriendLog selectFriendLogToByDay(FriendLogRequest request);
/**
* 根据日期查询该水军wxId最后一条的操作日志信息
* @param request
* @return
* @author 鲁志学 2020年9月09日
*/
public FriendLog selectFriendLogAllByDay(FriendLogRequest request);
/**
* 查询指定时间有多少条水军加好友操作记录
* @param date
* @return
* @author 鲁志学 2020年9月09日
*/
public Integer selectTodayCount(String date);
/**
* 根据传入的主加微信ID跟被加微信ID查询操作记录
* @param fromWxId 主加WXID
* @param toWxId 被加WXID
* @return
* @author 鲁志学 2020年9月10日
*/
public FriendLog selectOneLogByWxId(@Param("fromWxId")String fromWxId, @Param("toWxId")String toWxId);
}
|
[
"[email protected]"
] | |
6bc9ed32b05737fb6029675502eed0c17cc71140
|
50603118c4242dfe22aecf82eea6f7419275829f
|
/ChatMessage/ChatMessage.java
|
a23449ecbcae4bccfd8f5caadd22a12555d24bec
|
[
"MIT"
] |
permissive
|
SebbeJohansson/TCPChat
|
1408fe4ed4dc12f12255156cee6224db01ac1ee3
|
87c9734282201c0ab28d9625c852be5b607c5426
|
refs/heads/master
| 2021-01-22T18:50:41.377718 | 2017-03-15T21:24:45 | 2017-03-15T21:25:34 | 85,122,285 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,322 |
java
|
package ChatMessage;
import java.io.Serializable;
import org.json.simple.*;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
public class ChatMessage implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private JSONObject obj = new JSONObject();
@SuppressWarnings("unchecked")
public ChatMessage(String command, String parameters, String sender){
obj.put("command", command);
obj.put("parameters", parameters);
obj.put("sender", sender);
obj.put("timestamp", System.currentTimeMillis());
}
public ChatMessage(JSONObject m_obj){
obj = m_obj;
}
public String getCommand(){
return (String)obj.get("command");
}
public String getParameters(){
return (String)obj.get("parameters");
}
public String getSender(){
return (String)obj.get("sender");
}
public String getTimeStamp(){
return obj.get("timestamp").toString();
}
public String getJsonString(){
return obj.toJSONString();
}
static public JSONObject getJsonObject(String JsonString){
JSONParser parser = new JSONParser();
JSONObject obj = new JSONObject();
try {
obj = (JSONObject)parser.parse(JsonString);
} catch (ParseException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
return obj;
}
}
|
[
"[email protected]"
] | |
ac7b9805bc1627c068dd4e3517223d96f35cdbf6
|
c2fe878eb3c72480135140449fc84a112703fc03
|
/src/javatutor/ComputeExpression.java
|
57402ec50496ae1c8ff7e902eb242f2941f6b82f
|
[] |
no_license
|
AngWng999/javatutorial
|
594c29942d9d9a131c66a43b4da4f3af1b7de012
|
1c873938546665ca9f873daa424b4650cb794530
|
refs/heads/master
| 2020-12-05T19:45:37.797702 | 2016-08-30T05:51:45 | 2016-08-30T05:51:45 | 66,783,310 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 142 |
java
|
package javatutor;
public class ComputeExpression {
public static void main(String[] args) {
System.out.println((10+3*5)/(7-2));
}
}
|
[
"[email protected]"
] | |
5bf1c329eea534a9cfb0d7e9c395d3f4caf3f29d
|
302bcf1eaef562036d96d709479ce17e8a92dea0
|
/example1/src/main/java/com/example1/membership/MembershipRepository.java
|
52f86a83b278e0f647250625bbde79b2b497e495
|
[] |
no_license
|
abakhsh/kotlin-meetup
|
539305137f3e98699a1dad24350973a68472def1
|
fedd6fbede32bec86ca21d1e953848a2ba833175
|
refs/heads/master
| 2021-01-25T01:14:51.362337 | 2017-06-20T17:50:14 | 2017-06-20T17:50:14 | 94,734,231 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 242 |
java
|
package com.example1.membership;
import org.springframework.stereotype.Component;
@Component
public class MembershipRepository {
void save(Membership membership) {
System.out.println("saving membership: " + membership);
}
}
|
[
"[email protected]"
] | |
b1fe42a3ca92eb801341b9fb2dec13f1c42d185b
|
11d2840de620867e5a6da98da2dc6f704fafe9fe
|
/src/main/java/me/remind/rest/reminder/config/GitConfig.java
|
da5a8a5712aa73beb8598c9f89441a99e9dffcc2
|
[] |
no_license
|
IndianMinerva/reminder
|
48e3de59f0335cb094bbdb9972765773af5283bf
|
2917758d92b2f973b5ee5b0f7065b2babc615a64
|
refs/heads/master
| 2022-12-19T21:09:49.378754 | 2020-06-13T12:40:58 | 2020-06-13T12:40:58 | 272,006,219 | 0 | 0 | null | 2020-10-13T22:46:17 | 2020-06-13T12:39:53 |
Java
|
UTF-8
|
Java
| false | false | 740 |
java
|
package me.remind.rest.reminder.config;
import org.kohsuke.github.GitHub;
import org.kohsuke.github.GitHubBuilder;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.io.IOException;
@Configuration
public class GitConfig {
@Value("${git.token}")
private String gitToken;
public String getGitToken() {
return gitToken;
}
@Bean
public GitHub getGitConnection() {
try {
return new GitHubBuilder().withOAuthToken(gitToken).build();
} catch (IOException io) {
throw new RuntimeException("Not able to connect to git");
}
}
}
|
[
"[email protected]"
] | |
582e16b2f16a108855415c35dd7080bb0b6c5caa
|
9d9431a2c455abdfdd657423e9daf8d76423ec32
|
/WeatherCurrentPOJO/Main.java
|
8d5803867e347fb7b9857c89554c0020fc1adc7a
|
[] |
no_license
|
yshuynh/Weather
|
6de7955d5f30b892de950144fc1df016bd9b67fb
|
664ec3d4123c2cf1cb531371bb6ed307dbda4c29
|
refs/heads/master
| 2020-04-16T18:41:14.296704 | 2019-01-15T10:26:51 | 2019-01-15T10:26:51 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,271 |
java
|
package com.example.huynh.weatherapp.WeatherCurrentPOJO;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Main {
@SerializedName("temp")
@Expose
private Double temp;
@SerializedName("pressure")
@Expose
private Integer pressure;
@SerializedName("humidity")
@Expose
private Integer humidity;
@SerializedName("temp_min")
@Expose
private Double tempMin;
@SerializedName("temp_max")
@Expose
private Double tempMax;
public Double getTemp() {
return temp;
}
public void setTemp(Double temp) {
this.temp = temp;
}
public Integer getPressure() {
return pressure;
}
public void setPressure(Integer pressure) {
this.pressure = pressure;
}
public Integer getHumidity() {
return humidity;
}
public void setHumidity(Integer humidity) {
this.humidity = humidity;
}
public Double getTempMin() {
return tempMin;
}
public void setTempMin(Double tempMin) {
this.tempMin = tempMin;
}
public Double getTempMax() {
return tempMax;
}
public void setTempMax(Double tempMax) {
this.tempMax = tempMax;
}
}
|
[
"[email protected]"
] | |
730cb2709f8b5bfb13403e363308b8edb333518c
|
8bc0ba64df8cfe38ffea933de769855405f6519a
|
/junixsocket-demo/src/main/java/org/newsclub/net/unix/demo/server/EchoServer.java
|
cfe765e866d4a6f04b2f40b1bcabd1a7a1475eea
|
[
"Apache-2.0"
] |
permissive
|
csdaa/junixsocket
|
22ab19add5e03ac6d7e841d77d639a698cc7f11f
|
26d958adc802c59701b8b748938aab2cb8f1e5bc
|
refs/heads/master
| 2023-06-26T22:39:15.184390 | 2021-07-31T04:10:50 | 2021-07-31T04:10:50 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,483 |
java
|
/*
* junixsocket
*
* Copyright 2009-2021 Christian Kohlschütter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.newsclub.net.unix.demo.server;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.SocketAddress;
/**
* A multi-threaded unix socket server that simply echoes all input, byte per byte.
*
* @author Christian Kohlschütter
*/
public final class EchoServer extends DemoServerBase {
public EchoServer(SocketAddress listenAddress) {
super(listenAddress);
}
@Override
protected void doServeSocket(Socket socket) throws IOException {
int bufferSize = socket.getReceiveBufferSize();
byte[] buffer = new byte[bufferSize];
try (InputStream is = socket.getInputStream(); //
OutputStream os = socket.getOutputStream()) {
int read;
while ((read = is.read(buffer)) != -1) {
os.write(buffer, 0, read);
}
}
}
}
|
[
"[email protected]"
] | |
21fa15e7408d69ffc1861caea817251e954d6c16
|
8bc703b99f417c4e066ec7e009c3b14e2135d905
|
/src/test/java/pro/devlib/paribas/service/BnpParibasServiceTest.java
|
472118fe3c78411037894a78140b865edfea1c44
|
[] |
no_license
|
CaymanJava/bnp-parser
|
11a697d279a13f4db4358036d00e70334739eca9
|
2d1ddfac151285dd464418c23869a7185fad41b1
|
refs/heads/master
| 2021-01-21T14:53:11.709787 | 2017-07-13T14:52:55 | 2017-07-13T14:52:55 | 95,352,480 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,080 |
java
|
package pro.devlib.paribas.service;
import org.junit.Ignore;
import org.junit.Test;
import pro.devlib.paribas.exception.BadCredentialsException;
import pro.devlib.paribas.exception.IncorrectParameterException;
import pro.devlib.paribas.model.Account;
import pro.devlib.paribas.model.UserFinances;
import static junit.framework.TestCase.assertTrue;
public class BnpParibasServiceTest {
// To run those tests fill in login and password.
// Make sure that user has accounts, cards and every account has at least one transaction.
@Test
@Ignore
public void getUserFinancesWithHttpUnit() throws Exception {
getUserFinances(true);
}
@Test
@Ignore
public void getUserFinancesWithApache() throws Exception {
getUserFinances(false);
}
@Test(expected = BadCredentialsException.class)
public void badCredentialsTest() throws Exception {
String login = "blabla";
String password = "blabla123!";
BnpParibasService bnpParibasService = new BnpParibasService(login, password);
bnpParibasService.execute();
}
@Test(expected = IncorrectParameterException.class)
public void badMonthsToParseParameterTest() throws Exception {
String login = "blabla";
String password = "blabla123!";
BnpParibasService bnpParibasService = new BnpParibasService(login, password);
bnpParibasService.setMonthsToParse(-10);
bnpParibasService.execute();
}
private void getUserFinances(boolean useHttpUnit) throws Exception {
String login = "";
String password = "";
BnpParibasService bnpParibasService = new BnpParibasService(login, password);
bnpParibasService.setUseHttpUnit(useHttpUnit);
bnpParibasService.setMonthsToParse(6);
UserFinances userFinances = bnpParibasService.execute();
assertTrue(userFinances != null);
assertTrue(userFinances.getAccounts() != null);
assertTrue(userFinances.getAccounts().size() > 0);
assertTrue(userFinances.getCards().size() > 0);
for (Account account : userFinances.getAccounts()) {
assertTrue(account.getTransactions().size() > 0);
}
}
}
|
[
"[email protected]"
] | |
fd7fb95efe17afa518039405dff91caf3a290346
|
707b46345eb3bc556feae8ba24599573227087a4
|
/Converter/src/ee/ut/model/xpdl2/Documentation.java
|
a3ca033ae3c01c87f6b3f52fa471c4617bff721e
|
[] |
no_license
|
karlblum/xpdl-to-cpn
|
20616f2316431fbf124658222a44e4d61e542756
|
d5fc44d76b2e2442853ffd14531581ca4530bd24
|
refs/heads/master
| 2016-09-15T18:59:09.400229 | 2016-01-31T16:46:38 | 2016-01-31T16:46:38 | 32,211,892 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,352 |
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.09.15 at 06:18:08 PM EST
//
package ee.ut.model.xpdl2;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.namespace.QName;
/**
* <p>
* Java class for anonymous complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType>
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>string">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "value" })
@XmlRootElement(name = "Documentation")
public class Documentation {
@XmlValue
protected String value;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the value property.
*
* @return possible object is {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed
* property on this class.
*
* <p>
* the map is keyed by the name of the attribute and the value is the string
* value of the attribute.
*
* the map returned by this method is live, and you can add new attribute by
* updating the map directly. Because of this design, there's no setter.
*
*
* @return always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
}
|
[
"karl.blum@dc0fc8c4-2f53-11df-bfeb-7b4c664f286a"
] |
karl.blum@dc0fc8c4-2f53-11df-bfeb-7b4c664f286a
|
43181e27f308f99c4dfc077be3e55926a38e2585
|
5deb6039e4ff75d6835a914563025806cf3e2f78
|
/src/main/java/com/example/springbootvipiapi/exceptions/AGStatus.java
|
aa1dd36e4c409f8e7929b043c0e221ef676d1815
|
[] |
no_license
|
Vipisanan/Spring-boot-API
|
4b10016fd7e3a1bd110ecca2e746022e05b7a92e
|
a1da3f36b59bcf052e47588d8ab8b2ab6882fc48
|
refs/heads/master
| 2020-04-12T04:34:20.758212 | 2019-03-12T16:09:43 | 2019-03-12T16:09:43 | 162,299,476 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,791 |
java
|
package com.example.springbootvipiapi.exceptions;
public enum AGStatus {
SUCCESS("S1000", "Success"),
ERROR("E1000", "Unknown error occurred in operation"),
DB_ERROR("E1002", "Unknown error occurred in database operation"),
NO_ENTRY_FOUND("E1003", "Empty results from database"),
MISSING_REQUIRED_PARAMS("E1004", "One or more required parameters are missing"),
EMPTY_FILE("E1005","Uploaded file is empty"),
PARTIALLY_STORED1("E1006","Images are parlially uploaded.Unknown error occurred in database operation"),
PARTIALLY_STORED2("E1007","Images are parlially uploaded.One or more required parameters are missing"),
EMAIL_ALREDY_EXIST("E1008","The email you entered alredy has an account "),
USER_NOT_FOUND("E1009","The email id is not registered, must create a account" ),
AWS_ERROR("E1010","Some error occurred with AWS server" ),
FILE_CONVERTION_ERROR("E1011","Unknown error occurred while converting a file" ),
UNKOWN_OBJECT("E1012","New object are not allowed" );
private final String statusCode;
private final String statusDescription;
AGStatus(String statusCode, String successDescription) {
this.statusCode = statusCode;
this.statusDescription = successDescription;
}
public static AGStatus getCCStatus(String statusCode) {
for (AGStatus ccStatus : AGStatus.values()) {
if (ccStatus.statusCode.equals(statusCode)) {
return ccStatus;
}
}
return SUCCESS;
}
public String getStatusCode() {
return statusCode;
}
public String getStatusDescription() {
return statusDescription;
}
public boolean isSuccess() {
return this.statusCode.equals(AGStatus.SUCCESS.statusCode);
}
}
|
[
"[email protected]"
] | |
abe9a4ede3ee910a89cee29d2c40dc5f8048fdcd
|
cbc07c283a1008ea0974184f026b2ac38f60c804
|
/app/src/main/java/com/example/carson_ho/toptabbar/Fragment4.java
|
70199a56b6c1855c5e182adb897c103df14e4dd4
|
[] |
no_license
|
TitaniumOne/Profile_2.0
|
aa099323547bf2343433ca6bed2beb1037b2263b
|
23dbea261ef78b8ea85bfc77fe72a7b35a6cb9e3
|
refs/heads/master
| 2021-01-25T14:23:20.746490 | 2018-03-03T13:23:57 | 2018-03-03T13:23:57 | 123,691,955 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,568 |
java
|
package com.example.carson_ho.toptabbar;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Carson_Ho on 16/7/22.
*/
public class Fragment4 extends Fragment {
View view;
MainActivity mainActivity;
private Button btnCountManger;
private List<Fruit> fruitList = new ArrayList<>();
@Nullable
@Override
public View onCreateView(LayoutInflater inflater,
@Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment4,container,false);
mainActivity = (MainActivity)getActivity();
initFruits();
FruitAdapter adapter = new FruitAdapter(mainActivity,R.layout.fruit_item,fruitList);
ListView listView = (ListView)view.findViewById(R.id.list_view);
listView.setAdapter(adapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Fruit fruit = fruitList.get(position);
Toast.makeText(mainActivity,fruit.getName(),Toast.LENGTH_SHORT).show();
}
});
Toolbar toolbar = (Toolbar)view.findViewById(R.id.toolbar);
mainActivity.setSupportActionBar(toolbar);
//账户管理按钮
btnCountManger = (Button)view.findViewById(R.id.btn_countManager);
btnCountManger.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(mainActivity,CountManger.class);
startActivity(intent);
}
});
return view;
}
private void initFruits()
{
Fruit fruit1 = new Fruit("兑换积分",R.mipmap.money,R.mipmap.arrow);
fruitList.add(fruit1);
Fruit fruit2 = new Fruit("信用值历史记录",R.mipmap.history,R.mipmap.arrow);
fruitList.add(fruit2);
Fruit fruit3 = new Fruit("系统设置",R.mipmap.gear,R.mipmap.arrow);
fruitList.add(fruit3);
}
}
|
[
"[email protected]"
] | |
3929e7708a7b07b28d813427ab12cca2859ad426
|
7c69c006bb83f44899183af0cf6c6c78bf5ddd64
|
/app/src/main/java/com/example/suryamylar/tmdb/MainActivity.java
|
0b824ea9b6e95f30d673386307798fc6cc148478
|
[] |
no_license
|
surya1024/TMDB
|
936c23b3431ded9e0047624906d0bec02e3d008d
|
5ab389fd06093269e7529a0e608c8c0da9052132
|
refs/heads/master
| 2020-05-20T11:17:07.235647 | 2015-09-09T22:10:23 | 2015-09-09T22:10:23 | 42,204,674 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,698 |
java
|
package com.example.suryamylar.tmdb;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.widget.SearchView;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import java.lang.reflect.AccessibleObject;
public class MainActivity extends Activity {
public static String query = "/movie/popular?";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
View frag= this.findViewById(R.id.fragment);
final SearchView search =(SearchView) this.findViewById(R.id.searchView);
final TextView app_title=(TextView) this.findViewById(R.id.app_title);
search.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//app_title.setEnabled(false);
app_title.setText(" ");
}
});
search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
MainActivity.query = "/search/movie?query="+query;
Fragment newFragment = new MainFragment();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.replace(R.id.fragment, newFragment);
transaction.commit();
app_title.setText(query);
app_title.setEnabled(true);
search.onActionViewCollapsed();
return true;
}
@Override
public boolean onQueryTextChange(String newText) {
return false;
}
});
}
@Override
public void onDestroy() {
super.onDestroy();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
|
[
"[email protected]"
] | |
b404ad8321444b625ea763e092a84039717f24bf
|
21ba724b8c7052930d743b0907f205cfed55fb20
|
/lmsfc/lmsfc-admin/src/main/java/com/cc/lmsfc/admin/controller/ArticleController.java
|
276fda5f068b5ecf2049b4533f28a6ae72f8b036
|
[] |
no_license
|
cc121100/lmsfc
|
7f44d1582fb31db8aeca3e6a9da4e1a269be73ab
|
49a4c9703d91b369202b1f2937e9b0eeab30bd34
|
refs/heads/master
| 2020-12-24T14:57:19.149834 | 2017-05-27T08:20:44 | 2017-05-27T08:20:44 | 32,393,279 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,102 |
java
|
package com.cc.lmsfc.admin.controller;
import com.cc.lmsfc.common.model.article.Article;
import com.cc.lmsfc.common.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by tomchen on 15-3-23.
*/
@Controller
@RequestMapping(value = "/article")
public class ArticleController extends BaseCRUDController<Article,ArticleService,String> {
@Autowired
private ArticleService articleService;
@RequestMapping(value = "/index")
public String toArticle(){
return "article/index";
}
@Override
protected ArticleService getService() {
return articleService;
}
@Override
protected String getPrefix() {
return "article";
}
@InitBinder("article")
public void initBinder1(WebDataBinder binder) {
binder.setFieldDefaultPrefix(modelNameLower + ".");
}
}
|
[
"[email protected]"
] | |
d14430daff5f5ec2befedf6ec64422457c0eb565
|
c842b218cf37eb24f06a3d2ed31a6c13828422b9
|
/kafka-order/src/main/java/com/antocecere77/kafka/api/server/WebColorVoteApi.java
|
ef23e30e62fca917dcde7b7b7b6a035519b5fc13
|
[] |
no_license
|
antocecere77/kafka-spring-boot
|
d9fa1be190514b3b78dff0378cc02ec927a6dc34
|
f5164c7bff9a917b0cd46d97c793d7dc24c70105
|
refs/heads/master
| 2023-04-22T18:23:28.158900 | 2021-05-01T10:11:41 | 2021-05-01T10:11:41 | 342,916,746 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,160 |
java
|
package com.antocecere77.kafka.api.server;
import com.antocecere77.kafka.api.request.WebColorVoteRequest;
import com.antocecere77.kafka.command.service.WebColorVoteService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/web/color/vote")
public class WebColorVoteApi {
private final WebColorVoteService service;
@PostMapping(value = "", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.TEXT_PLAIN_VALUE)
public ResponseEntity<String> createColorVote(@RequestBody WebColorVoteRequest request) {
service.createColorVote(request);
return ResponseEntity.status(HttpStatus.CREATED).body(
"Color vote created with color : " + request.getColor() + ", by username : " + request.getUsername());
}
}
|
[
"[email protected]"
] | |
da956ec4454dec39366e2940ef522f34598a6226
|
1f33b1933b90b2938c89c60c6681506e48a7b0b8
|
/CL-Launcher/app/src/main/java/apihandler/ApiInterface.java
|
8f0afbeac48171fd92f3371540bb774a05230b6a
|
[
"MIT"
] |
permissive
|
curiouslearning/launcher2017
|
6c99280e8933d2dd07395fb9a129576ed452572a
|
f6abb60b68e194f1fac2d12b5d5a91499a353059
|
refs/heads/master
| 2021-03-30T16:33:19.817182 | 2017-09-26T03:53:41 | 2017-09-26T03:53:41 | 77,537,698 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,393 |
java
|
package apihandler;
import com.google.gson.JsonObject;
import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
/**
* Created by Alok on 222-02-2017.
*/
public interface ApiInterface {
/**Registration
* @param tablet_serial_number
* @param launcher_version
* @param android_version
* @param cl_serial_number
* @return
*/
@FormUrlEncoded
@POST("/register")
Call<JsonObject> registerTabletCall(@Field("tablet_serial_number") String tablet_serial_number,
@Field("launcher_version") String launcher_version,
@Field("android_version") String android_version,
@Field("cl_serial_number") String cl_serial_number);
@FormUrlEncoded
@POST("/oauth/access_token")
Call<JsonObject> getAccessTokenCall(
@Header("Authorization") String authorizationHeader,
@Field("grant_type") String grant_type);
@GET("/manifest/{cl_serial_number}")
Call<JsonObject> getManifestCall(
@Header("Authorization") String authorizationHeader,
@Path("cl_serial_number") String cl_serial_number);
@Multipart
@POST("/tablet/{tablet-serial-number}/data")
Call<String> callUploadFile(
@Header("Authorization") String authorizationHeader,
@Path("tablet-serial-number") String tablet_serial_number,
@Part MultipartBody.Part file);
@POST("/deployment/{deployment_id}/tablet/{cl_serial_number}")
Call<JsonObject> getDeploymentRegCall(
@Header("Authorization") String authorizationHeader,
@Path("deployment_id") String deployment_id,
@Path("cl_serial_number") String cl_serial_number);
@POST("/deployment/{deployment_id}/tablet/{cl_serial_number}/group/{group_id}")
Call<JsonObject> getGroupDeploymentRegCall(
@Header("Authorization") String authorizationHeader,
@Path("deployment_id") String deployment_id,
@Path("cl_serial_number") String cl_serial_number,
@Path("group_id") String group_id);
}
|
[
"[email protected]"
] | |
04ebe9b1dc014ecf9957d085358816b968bfe296
|
aecffb5cc456d31f938774a02de30c062fee726b
|
/sources/com/sec/android/app/clockpackage/worldclock/viewmodel/WorldclockListViewActionMode$$Lambda$1.java
|
c79b991b114c68c2422dff43429904da2e3ef32e
|
[] |
no_license
|
Austin-Chow/SamsungClock10.0.04.3
|
6d48abd288f3b182a6520315ef526163a94b0278
|
5523378f7fea1bf462248fddf52a7828ff2de0a9
|
refs/heads/master
| 2020-06-29T12:44:41.353764 | 2019-08-04T20:47:14 | 2019-08-04T20:47:14 | 200,538,351 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 820 |
java
|
package com.sec.android.app.clockpackage.worldclock.viewmodel;
import android.view.View;
import android.view.View.OnClickListener;
import java.lang.invoke.LambdaForm.Hidden;
final /* synthetic */ class WorldclockListViewActionMode$$Lambda$1 implements OnClickListener {
private final WorldclockListViewActionMode arg$1;
private WorldclockListViewActionMode$$Lambda$1(WorldclockListViewActionMode worldclockListViewActionMode) {
this.arg$1 = worldclockListViewActionMode;
}
public static OnClickListener lambdaFactory$(WorldclockListViewActionMode worldclockListViewActionMode) {
return new WorldclockListViewActionMode$$Lambda$1(worldclockListViewActionMode);
}
@Hidden
public void onClick(View view) {
this.arg$1.lambda$initMultiSelectActionBar$0(view);
}
}
|
[
"myemail"
] |
myemail
|
91d555cb41bf2250de673b629994020aa68e0301
|
1eed947256efd2de023d1326c68edc1868d8b781
|
/WIYD/src/main/java/com/spr/web/system/entity/BaseDict.java
|
712a965e68ab4c46a392076e20194173ea136fd3
|
[] |
no_license
|
807126439/WIYD
|
e8f4984ddad4b44687d5381c76f2d021555bc892
|
aa898de975d5b1708656d2c5b595f5c7af0bb5d3
|
refs/heads/master
| 2021-07-01T02:56:45.448751 | 2017-07-14T10:08:06 | 2017-07-14T10:08:06 | 91,320,199 | 0 | 0 | null | 2019-12-26T01:26:48 | 2017-05-15T09:33:25 |
JavaScript
|
UTF-8
|
Java
| false | false | 2,489 |
java
|
package com.spr.web.system.entity;
import java.io.Serializable;
import com.spr.core.annotations.DbField;
import com.spr.core.common.entity.UUIDEntity;
/**
* 基础数字字典
* @author wb_java_zjr
*
*/
public class BaseDict extends UUIDEntity implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1390712608278314943L;
public static final int useable = 1;
public static final int unuseable = 0;
public static final String USER_DICT_TYPE = "user_dict";
public static final String USER_DICT_ITEM_UP_NUM = "limit_upnum";
public static final String USER_DICT_ITEM_UP_SIZE = "limit_upsize";
public static final String AUTH_FLAG_DICT_TYPE = "auth_flag";
public static final String AUTH_TYPE_DICT_TYPE = "auth_type";
public static final String ROLE_TYPE_DICT_TYPE = "role_flag";
public static final String FILE_TYPE = "file_type"; //文件类型
public static final String USER_FRONT_TYPE = "user_front_type"; //用户类型
public static final String USER_BACK_TYPE = "user_back_type"; //用户类型
public static final String ROLE_TYPE = "role_type"; //用户类型
public static final String SYS_CONFIG_TYPE = "sys_config";
private String dictItem;
private String dictType;
private String dictValue;
private Boolean dictFlag;
public BaseDict(){}
public BaseDict(String dictItem, String dictType, String dictValue,
Boolean dictFlag) {
super();
this.dictItem = dictItem;
this.dictType = dictType;
this.dictValue = dictValue;
this.dictFlag = dictFlag;
}
@DbField(name="dict_item")
public String getDictItem() {
return dictItem;
}
public void setDictItem(String dictItem) {
this.dictItem = dictItem == null ? null : dictItem.trim();
}
@DbField(name="dict_type")
public String getDictType() {
return dictType;
}
public void setDictType(String dictType) {
this.dictType = dictType == null ? null : dictType.trim();
}
@DbField(name="dict_value")
public String getDictValue() {
return dictValue;
}
public void setDictValue(String dictValue) {
this.dictValue = dictValue == null ? null : dictValue.trim();
}
@DbField(name="dict_flag")
public Boolean getDictFlag() {
return dictFlag;
}
public void setDictFlag(Boolean dictFlag) {
this.dictFlag = dictFlag;
}
}
|
[
"Java2@Java2-PC"
] |
Java2@Java2-PC
|
1650d180870a26f75e55ffd2ad908fd7af7502f4
|
9d47b53122d84baf15999cb493e6d112dc70ad44
|
/app/src/main/java/org/jay/androidcustomview/c_text/C6TextPathView.java
|
2100c947461dfb994e4598ac12823aee11c79510
|
[] |
no_license
|
Leesin729/AndroidCustomView
|
adda0f04dfa5cafbf954f214d18ccfc728a68619
|
45842f9d62d79747b56a7c085edcc6fa600537f2
|
refs/heads/master
| 2022-01-11T09:36:34.054401 | 2019-08-27T11:26:53 | 2019-08-27T11:26:53 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 3,215 |
java
|
package org.jay.androidcustomview.c_text;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import androidx.annotation.RequiresApi;
import org.jay.androidcustomview.BaseView;
public class C6TextPathView extends BaseView {
private int centerX;
private float radius;
private Paint paint;
private Path path;
public C6TextPathView(Context context) {
this(context, null);
}
public C6TextPathView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public C6TextPathView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
private void init() {
radius = dp2px(35);
paint = getGrayPaint();
path = new Path();
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
centerX = w / 2;
}
@Override
protected void onDraw(Canvas canvas) {
float left = centerX - dp2px(90);
float top = dp2px(40);
// 无偏移
drawText(canvas, left, top, 0, 0);
// 正向水平偏移
drawText(canvas, centerX, top, 20, 0);
// 反向水平偏移
left = centerX + dp2px(90);
drawText(canvas, left, top, -20, 0);
// 正向垂直偏移
top = dp2px(130);
left = centerX - dp2px(50);
drawText(canvas, left, top, 0, 20);
// 反向垂直偏移
left = centerX + dp2px(50);
drawText(canvas, left, top, 0, -20);
}
private void drawText(Canvas canvas, float left, float top,
int horizontalOffset, int verticalOffset) {
// 画参考线
drawLines(canvas, left, top);
// 绘制圆形路径
Path path = getCirclePath(left, top);
paint.setColor(Color.DKGRAY);
paint.setStyle(Paint.Style.STROKE);
canvas.drawPath(path, paint);
// 沿路径绘制文本
paint.setStyle(Paint.Style.FILL);
canvas.drawTextOnPath("自定义", path, horizontalOffset, verticalOffset, paint);
}
private void drawLines(Canvas canvas, float left, float top) {
path.rewind();
path.moveTo(left - radius, top);
path.lineTo(left + radius, top);
paint.setColor(Color.GREEN);
paint.setStyle(Paint.Style.STROKE);
canvas.drawPath(path, paint);
path.rewind();
path.moveTo(left, top - radius);
path.lineTo(left, top + radius);
canvas.drawPath(path, paint);
}
private Path getCirclePath(float left, float top) {
path.rewind();
path.addCircle(left, top, radius, Path.Direction.CW);
return path;
}
private Paint getGrayPaint() {
Paint paint = new Paint();
paint.setStyle(Paint.Style.STROKE);
paint.setColor(Color.DKGRAY);
paint.setAntiAlias(true);
paint.setTextSize(sp2px(13));
return paint;
}
}
|
[
"[email protected]"
] | |
6000df88fe49a4030834c6e54507ac263663989b
|
8b01a4be5820f6d28688cd0d4b90305adab42e7e
|
/back-end/ct-common/src/main/java/com/vn/green/common/dto/LessonDTO.java
|
49eb46a12051c48680461edae0f7662f4beac725
|
[] |
no_license
|
caominhnhut/code-tutor-web
|
511617ba3b712fbe53eafb7cfb20c673d3b0cb0d
|
ee8ad6cfe2541e436d74ee5b0602578c314be90f
|
refs/heads/master
| 2023-05-05T11:16:39.453211 | 2021-05-26T04:39:18 | 2021-05-26T04:39:18 | 354,718,976 | 2 | 0 | null | 2021-04-12T08:22:13 | 2021-04-05T04:38:48 |
JavaScript
|
UTF-8
|
Java
| false | false | 1,155 |
java
|
package com.vn.green.common.dto;
import com.vn.green.common.enums.Status;
public class LessonDTO {
private Long id;
private String title;
private String iconUri;
private String content;
private LessonMetaDataDTO metaData;
private Status status;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getIconUri() {
return iconUri;
}
public void setIconUri(String iconUri) {
this.iconUri = iconUri;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public LessonMetaDataDTO getMetaData() {
return metaData;
}
public void setMetaData(LessonMetaDataDTO metaData) {
this.metaData = metaData;
}
public Status getStatus() {
return status;
}
public void setStatus(Status status) {
this.status = status;
}
}
|
[
"[email protected]"
] | |
9513b091c45b90e8afff4e2575a2b47a5e3ecf1e
|
0d89cf4831bc49cda0d03406a98cac4069402ecd
|
/src/shejimoshi/chapter12/SubSystemTwo.java
|
fc1d4943d3206c13fa7de3402ef66fcced01ecf3
|
[] |
no_license
|
jxy0413/JavaStruct
|
6fe7c0b026a0e3c2d9627723e482d520c81f62b5
|
5077a6148794cadef44e7357473b4916614c1cb5
|
refs/heads/master
| 2023-01-21T16:42:56.489425 | 2023-01-11T09:53:32 | 2023-01-11T09:53:32 | 233,161,058 | 2 | 1 | null | null | null | null |
UTF-8
|
Java
| false | false | 206 |
java
|
package shejimoshi.chapter12;
/**
* @author jiaxiangyu
* @date 2022/4/3 8:27 下午
*/
public class SubSystemTwo {
public void methodTwo(){
System.out.println("子系统方法二");
}
}
|
[
"[email protected]"
] | |
909c8fdf7563abb8e47203615ac3762a6687400b
|
d8c99a9300027c5bfa07b210f3bb394ab17e1e4c
|
/src/main/java/week5/day2/Ng_lExtentTestCases2.java
|
303356028425bcd667001b2241e732d223090a49
|
[] |
no_license
|
itsanjan/tl_java_se_sources
|
58271c3640c81c23d11dd3efa0c00f420d9a1caf
|
f551063b8edd86494cb98836d6ef8d3bebc7ac78
|
refs/heads/master
| 2020-03-25T06:48:44.620672 | 2018-08-04T12:05:40 | 2018-08-04T12:05:40 | 143,525,327 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 913 |
java
|
package week5.day2;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.reporter.ExtentHtmlReporter;
import WdMethods.Annotations;
@Listeners(TestNGListners.class)
public class Ng_lExtentTestCases2 extends Annotations{
@Test(groups= {"smoke"})
public void createContact() {
ExtentHtmlReporter html=new ExtentHtmlReporter("./reports/result.html");
//this line only works inside nested class
html.setAppendExisting(true);
ExtentReports extent=new ExtentReports();
extent.attachReporter(html);
//click(locateElement("linktext","My Contacts"));
System.out.println("create contact");
}
@Test(groups= {"regression"})
public void createLead() {
//click(locateElement("linktext","Create Lead"));
System.out.println("create contact");
}
}
|
[
"[email protected]"
] | |
60c0cb333faef02f36bd186ad3be5aac72047591
|
5269065c41601d98bc64efd47f7bfcaf128ad269
|
/src/chapter-2-linked-lists/KthFromLast.java
|
5a7f8e9dcbf5c61dee04f157ecfaf82c9a5a0818
|
[] |
no_license
|
grantamos/cracking-the-coding-interview
|
7df9ea0f56cf970112589ee209e48c23f2a00c33
|
f38de22e99e150d3768a5b74bd82bca95c59e0f7
|
refs/heads/master
| 2020-06-04T14:05:55.316477 | 2015-03-29T03:15:45 | 2015-03-29T03:15:45 | 33,047,310 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 385 |
java
|
public class KthFromLast {
public static int kthFromLast(Node head, int k) {
if (head == null)
return -1;
Node p1 = head;
Node p2 = head;
while (k-- > 0 && p2.next != null) {
p2 = p2.next;
}
if (p2.next == null && k >= 0)
return -1;
while (p2.next != null) {
p2 = p2.next;
p1 = p1.next;
}
return p1.val;
}
}
|
[
"[email protected]"
] | |
00a394fa0ad8c818c5f973348f81864553c73240
|
03173c9a75c0ee1069b98bf101bda8e90ed2c352
|
/flicklib-core/src/main/java/com/flicklib/service/movie/tmdb/TmdbBackDrop.java
|
ea0c9c45e91b9710fa179a592b177b74a8640ae0
|
[
"Apache-2.0"
] |
permissive
|
francisdb/flicklib
|
6176fa0cebc3f297844c5cc60d18cb932394db5b
|
627bc8a6e3cd92f72be6ad749c6fafafb6cb189f
|
refs/heads/master
| 2020-12-30T10:23:25.408728 | 2011-12-02T19:09:47 | 2011-12-02T19:09:47 | 32,103,561 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 97 |
java
|
package com.flicklib.service.movie.tmdb;
public class TmdbBackDrop{
public TmdbImage image;
}
|
[
"[email protected]"
] | |
65c0ea0b10324db8d1ba328ea94954c3ca3abc2a
|
b34f7e632e450aa8095bd5fbdc9bbdebfa494d66
|
/src/main/java/StateMachine.java
|
5c3cb2ac3c4f926692d58bf4d02c94adc5c221e1
|
[] |
no_license
|
srj920507/leetcode
|
819667f570f07584a1848431fc1897ba82eeee69
|
5c8697cb74ca101e540d141c8f7af290cf93a9e0
|
refs/heads/master
| 2022-12-30T01:02:01.843272 | 2020-10-13T13:08:03 | 2020-10-13T13:08:03 | 303,704,697 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 2,787 |
java
|
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class StateMachine {
public static void main(String[] args) {
int[] nums = {1, 3, 2, 3, 4, 5,6};
StateMachine arrayTest = new StateMachine();
// int[] res = arrayTest.calculateProduct(nums);
//
// for (int i = 0; i < res.length; i++) {
// System.out.print(res[i] + " ");
// }
System.out.println( arrayTest.stringtoNum(" ¥¥1343$%^%&"));
}
public long stringtoNum(String str){
AutoMachine autoMachine = new AutoMachine();
return autoMachine.runMachine(str);
}
class AutoMachine{
private Map<String, List<String>> states = new HashMap<String, List<String>>(){
{
put("start", new ArrayList<String>(){{
add("start");
add("signal");
add("num");
add("end");
}
});
put("signal", new ArrayList<String>(){{
add("end");
add("end");
add("num");
add("end");
}
});
put("num", new ArrayList<String>(){{
add("end");
add("end");
add("num");
add("end");
}
});
put("end", new ArrayList<String>(){{
add("end");
add("end");
add("end");
add("end");
}
});
}
};
private String state = "start";
private void transferToNextState(Character c){
List<String> curStateList = states.get(state);
int type;
if(c==' '){
type=0;
}else if(c == '-' || c == '+'){
type =1;
}else if(c >= '0' && c<='9'){
type = 2;
}else{
type = 3;
}
state = curStateList.get(type);
}
public long runMachine(String str){
long ans = 0;
long signal = 1;
for(int i=0;i<str.length();i++){
transferToNextState(str.charAt(i));
if(state.equals("num")){
ans= ans*10+ (str.charAt(i)-'0');
}
if(state.equals("signal")){
if(str.charAt(i) == '-'){
signal = -1;
}
}
if(state.equals("end")){
return signal*ans;
}
}
return signal*ans;
}
}
}
|
[
"[email protected]"
] | |
28543c780aa4f259ed62ef0cad0726335c6784c6
|
c2fb5675c2452ee44d046d5c6e84073ba8a99a66
|
/src/main/java/com/pub/enumeration/Country.java
|
02366a023a661482f4db93a7312697bbf38f787b
|
[
"Apache-2.0"
] |
permissive
|
iamthiago/pubanywhere
|
b04c91cb1613e3d352ffaf191049fa9d9e94c755
|
bc88dbcdf0aa7477914e07d8027d7635e24eb4b3
|
refs/heads/master
| 2021-05-30T14:18:18.663070 | 2016-03-09T11:56:51 | 2016-03-09T11:56:51 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 254 |
java
|
package com.pub.enumeration;
public enum Country {
BRAZIL("Brazil"),
BRASIL("Brasil");
private final String descricao;
private Country(String descricao) {
this.descricao = descricao;
}
public String getDescricao() {
return descricao;
}
}
|
[
"[email protected]"
] | |
30198c7fdeeb4349145ca33f1d28a9b59500d982
|
450266fe2cea6a16fa3c367b80cc1dc8af98f97e
|
/src/main/java/com/utils/MathUtils.java
|
ad4cc153c9e107cd23d10ceb1b22ac34ee8f1d38
|
[
"LicenseRef-scancode-free-unknown",
"MIT"
] |
permissive
|
spfrommer/JCommunique
|
378f7b368c92cd005d5531856dee58773a11fdb6
|
ac5b1895776ad6baead6c7881d9790f051ae3de3
|
refs/heads/master
| 2021-05-04T09:29:14.753142 | 2020-02-09T20:26:03 | 2020-02-09T20:26:03 | 29,876,211 | 34 | 13 |
MIT
| 2020-02-09T20:26:05 | 2015-01-26T18:55:49 |
Java
|
UTF-8
|
Java
| false | false | 651 |
java
|
package com.utils;
public class MathUtils {
/**
* @param number
* the number to find the sign of
* @return the sign of the number
*/
public static int sign(double number) {
return (int) Math.signum(number);
}
/**
* Clamps the number to be between the min and the max.
*
* @param num
* the number to clamp
* @param min
* the minimum value
* @param max
* the maximum value
* @return the clamped number between min and max
*/
public static double clamp(double num, double min, double max) {
if (num < min)
return min;
if (num > max)
return max;
return num;
}
}
|
[
"[email protected]"
] | |
da7b7b21d962e3583898190d7a6c4554368cd572
|
33f1bfa1f7b6c91052f4458a399ecf2dfccac3d1
|
/app/src/main/java/com/ajithvgiri/notes/ui/NoteEditActivity.java
|
dc29970b860fb6208b4fdd435fc05e42e456d539
|
[] |
no_license
|
ajithvgiri/demo-notes
|
ac52450713463c1f90f15ecb9b2e9adcee3ecb80
|
3ae5cbaa1dac92f8a24042ff2e71a209de74d74a
|
refs/heads/master
| 2021-01-08T06:02:32.143257 | 2020-02-20T16:40:08 | 2020-02-20T16:40:08 | 241,935,332 | 1 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,149 |
java
|
package com.ajithvgiri.notes.ui;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProvider;
import com.ajithvgiri.notes.NotesViewModel;
import com.ajithvgiri.notes.R;
import com.ajithvgiri.notes.service.Notes;
public class NoteEditActivity extends AppCompatActivity {
private NotesViewModel notesViewModel;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_note_edit);
notesViewModel = new ViewModelProvider(this).get(NotesViewModel.class);
Button cancel = findViewById(R.id.buttonCancel);
Button save = findViewById(R.id.buttonSave);
cancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
save.setOnClickListener(v -> {
//notesViewModel.updateNote();
finish();
});
}
}
|
[
"[email protected]"
] | |
fc86ec2ead13ca0f3db71bf7a8d95598ad2a050f
|
3193fe2de16641eb3a59f958d3d228fb520f61ff
|
/src/test/java/com/cybertek/step_definitions/HomePageStepDefinitions.java
|
59e47bdcab1a079385e50459def3db90c69fb093
|
[] |
no_license
|
ibrhmvt21/CucuRep-1
|
2d260d38e8d4acd11caa41c0ded9bb5b3abdf903
|
c696bdfdf1cbcfd978af9447b94c0b0d4e4ec26f
|
refs/heads/master
| 2020-04-20T13:49:48.105569 | 2019-02-02T21:37:34 | 2019-02-02T21:37:34 | 168,880,356 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 631 |
java
|
package com.cybertek.step_definitions;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class HomePageStepDefinitions {
@Given("user is on the login page")
public void user_is_on_the_login_page() {
System.out.println("I am going to login page");
}
@When("user logs in as a team lead")
public void user_logs_in_as_a_team_lead() {
System.out.println("I am logging in");
}
@Then("homepage should be displayed")
public void homepage_should_be_displayed() {
System.out.println("I can see the homepage");
}
}
|
[
"[email protected]"
] | |
f03e302b6c40cef134680623d1c7bd6dc2c3f1bd
|
2a195e327c05cf5b13cf366c051a76eb1a396c89
|
/app/src/main/java/com/example/aaron/fragmenttest/SharedNotification.java
|
e6fa0cd219d375889c7773b6faab392975183db2
|
[] |
no_license
|
aaronmcanerney/Android-application-group
|
d8fb0328e2866819a8d15dbf7354d2ba3a88ba2b
|
2fd908387fa710c1a4b08a762cd11b19b7b78b59
|
refs/heads/master
| 2021-06-07T10:55:28.165015 | 2016-09-13T02:58:49 | 2016-09-13T02:58:49 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 240 |
java
|
package com.example.aaron.fragmenttest;
/**
* Created by rogowski on 9/12/2016.
*/
public class SharedNotification {
public String profilePictureURI;
public String text;
public SharedNotification() {
}
}
|
[
"[email protected]"
] | |
04a26de9ca6d8a027934927d50ccbdecfc812d2a
|
336d6d27e649afbcabe5d9c8e0700d675334067d
|
/src/main/java/com/github/elgleidson/multi/tenant/schema/domain/Demo.java
|
78ef1b20554fe895a5c59c6f1a0299232cf125d9
|
[] |
no_license
|
wdpimenta/multi-tenant-schema
|
dd702eb804b5794e5a3be15b8bc96fab6f204f34
|
040cd313158d742a15eff46a8a6142b44e7e2491
|
refs/heads/master
| 2020-05-07T15:27:17.315308 | 2018-08-23T20:03:29 | 2018-08-23T20:03:29 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,098 |
java
|
package com.github.elgleidson.multi.tenant.schema.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import com.github.elgleidson.multi.tenant.schema.audit.AbstractAuditableEntity;
@Entity
public class Demo extends AbstractAuditableEntity {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="sq_demo")
@SequenceGenerator(name="sq_demo", sequenceName="sq_demo", allocationSize=1)
private Long id;
@Column
private String description;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "Demo [id=" + id + ", description=" + description + "]";
}
}
|
[
"[email protected]"
] | |
e4d3dab380c92d4eb07237e5840f2b6a3b8f817f
|
8543535a1c7ba7823987a3ad9d7c8787769e2ea0
|
/src/main/java/com/xuexikuaile/deng/controller/StudentOneController.java
|
b90f597703112980c70406bbb5b986d32e58beb8
|
[] |
no_license
|
cytern/-xuekejian
|
e7a6553b1e3b7626d2761c0164a2d8836d45f0cd
|
8005d802b4dbdb2cc0dcfb1cba4f77e72a1eb6ba
|
refs/heads/master
| 2023-03-06T22:46:30.349129 | 2020-07-09T07:02:53 | 2020-07-09T07:02:53 | 278,287,940 | 2 | 0 | null | 2023-02-22T07:49:57 | 2020-07-09T06:58:29 |
TSQL
|
UTF-8
|
Java
| false | false | 8,863 |
java
|
package com.xuexikuaile.deng.controller;
import com.xuexikuaile.deng.dao.*;
import com.xuexikuaile.deng.plugin.ChangeDate;
import com.xuexikuaile.deng.pojo.*;
import com.xuexikuaile.deng.service.StudentConf;
import com.xuexikuaile.deng.service.TitleService;
import com.xuexikuaile.deng.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.*;
/**
* @Author: cytern
* @Date: 2020/6/11 15:51
*/
@RestController
public class StudentOneController {
@Autowired
private SStudentDao sStudentDao;
@Autowired
private SClassDao sClassDao;
@Autowired
private GradeNumDao gradeNumDao;
@Autowired
StudentConf studentConf = new StudentConf();
@Autowired
private STitleUserDao sTitleUserDao;
@Autowired
private STitleDao sTitleDao;
@Autowired
private STokenDao sTokenDao;
@Autowired
private UserService userService;
@Autowired
private TitleService titleService;
@RequestMapping("student/getMyAbility")
public Map<String,Object> getStudentMainConf(@RequestParam(defaultValue = "0",required = true)Integer studentId){
Map<String,Object> map = studentConf.mainMethod(studentId);
return map;
}
@RequestMapping("student/getTiles")
public List<Map<String,Object>> getTitles(@RequestParam(defaultValue = "0",required = true)Integer userId){
List<STitleUser> sTitleUsers = sTitleUserDao.getByUserId(userId);
ChangeDate changeDate = new ChangeDate();
if (sTitleUsers.size()<1){
return null;
}
List<Map<String,Object>> map = new ArrayList<>();
for (STitleUser sTitleUser:sTitleUsers){
STitle sTitle = sTitleDao.selectByPrimaryKey(sTitleUser.getTitleId());
Map<String,Object> map1 = new HashMap<>();
try {
map1.put("sTitleId",sTitle.getSTitleId());
} catch (Exception e) {
break;
}
try {
map1.put("sTitleTitle",sTitle.getSTitleTitle());
} catch (Exception e) {
map1.put("sTitleTitle",null);
}
try {
map1.put("startUserId",sTitle.getStartUserId());
map1.put("startName",userService.getUserRealName(sTitle.getStartUserId()));
} catch (Exception e) {
break;
}
try {
map1.put("sTitleConf",sTitle.getSTitleConf());
} catch (Exception e) {
map1.put("sTitleConf",null);
}
try {
map1.put("cTime",changeDate.changeTime(sTitle.getCTime()));
new Date().getTime();
if (sTitle.getCTime().getTime() < changeDate.getDate().getTime()){
map1.put("isStart",true);
}else {
map1.put("isStart",false);
}
} catch (Exception e) {
break;
}
try {
map1.put("endTime",changeDate.changeTime(sTitle.getEndTime()));
if (sTitle.getEndTime().getTime() < changeDate.getDate().getTime()){
map1.put("isEnd",true);
}else {
map1.put("isEnd",false);
}
} catch (Exception e) {
break;
}
try {
map1.put("titleType",sTitle.getTitleType());
} catch (Exception e) {
map1.put("titleType",null);
}
try {
if (sTitle.getStartUserId().equals(userId)){
map1.put("isMine",true);
}else{
map1.put("isMine",false);
}
} catch (Exception e) {
break;
}
map.add(map1);
}
return map;
}
@PostMapping("student/addTitle/{titleType}")
public Map<String,Object> addTitles(@RequestParam String startUserId,
@RequestParam String sTitleConf,
@RequestParam String cTime,
@RequestParam String endTime,
@RequestParam String sTitleTitle,
@PathVariable String titleType, HttpServletRequest request) throws ParseException {
ChangeDate changeDate = new ChangeDate();
Map<String,Object> map = new HashMap<>();
String token = "";
STitle sTitle = new STitle();
sTitle.setStartUserId(Integer.valueOf(startUserId));
sTitle.setSTitleConf(sTitleConf);
sTitle.setCTime(changeDate.changeDate(cTime));
sTitle.setEndTime(changeDate.changeDate(endTime));
sTitle.setSTitleTitle(sTitleTitle);
try {
token = request.getHeader("User-Token");
} catch (Exception e) {
map.put("error","过期登录");
return map;
}
SToken sToken = sTokenDao.getTokenByToken(token);
try {
if (sToken.getUserId() ==0 || sToken.getUserId() ==null){
map.put("error","过期登录");
return map;
}
} catch (Exception e) {
map.put("error","过期登录");
return map;
}
if (!sTitle.getStartUserId().equals(sToken.getUserId())){
map.put("error","错误的使用他人信息");
return map;
}
map = titleService.addTitle(sTitle.getStartUserId(),titleType,sTitle);
return map;
}
@GetMapping("student/deleteTitle/{titleId}")
public Map<String,Object> deleteTitle(HttpServletRequest request,@PathVariable Integer titleId){
Map<String,Object> map = new HashMap<>();
String token = "";
try {
token = request.getHeader("User-Token");
} catch (Exception e) {
map.put("error","过期登录");
return map;
}
SToken sToken = sTokenDao.getTokenByToken(token);
try {
if (sToken.getUserId() ==0 || sToken.getUserId() ==null){
map.put("error","过期登录");
return map;
}
} catch (Exception e) {
map.put("error","过期登录");
return map;
}
STitle sTitle = sTitleDao.selectByPrimaryKey(titleId);
if (!sTitle.getStartUserId().equals(sToken.getUserId())){
map.put("error","错误的使用他人信息");
return map;
}
map = titleService.deleteTitle(titleId);
return map;
}
@PostMapping("student/updateTitle")
public Map<String,Object> editTitle(@RequestParam Integer sTitleId,
@RequestParam String startUserId,
@RequestParam String sTitleConf,
@RequestParam String cTime,
@RequestParam String endTime,
@RequestParam String sTitleTitle,
@RequestParam String titleType,HttpServletRequest request) throws ParseException {
Map<String,Object> map = new HashMap<>();
ChangeDate changeDate = new ChangeDate();
STitle sTitle = new STitle();
sTitle.setStartUserId(Integer.valueOf(startUserId));
sTitle.setSTitleConf(sTitleConf);
sTitle.setCTime(changeDate.changeDate(cTime));
sTitle.setEndTime(changeDate.changeDate(endTime));
sTitle.setSTitleTitle(sTitleTitle);
sTitle.setSTitleId(sTitleId);
String token = "";
try {
token = request.getHeader("User-Token");
} catch (Exception e) {
map.put("error","过期登录");
return map;
}
SToken sToken = sTokenDao.getTokenByToken(token);
try {
if (sToken.getUserId() ==0 || sToken.getUserId() ==null){
map.put("error","过期登录");
return map;
}
} catch (Exception e) {
map.put("error","过期登录");
return map;
}
STitle sTitle2 = sTitleDao.selectByPrimaryKey(sTitle.getSTitleId());
if (!sTitle2.getStartUserId().equals(sToken.getUserId())){
map.put("error","错误的使用他人信息");
return map;
}
System.out.println(sTitle + "id");
map = titleService.editTitle(sTitle);
return map;
}
}
|
[
"[email protected]"
] | |
b66c3f94430ce66bf7f656f0e8811328d8e35be7
|
8af1164bac943cef64e41bae312223c3c0e38114
|
/results-java/naver--pinpoint/400bc293ae1ce412e79bcae5d03d677bfdcea63b/before/GarbageCollectorFactoryTest.java
|
1c9d9d5132ac99442274b1f864f48f6934276ec6
|
[] |
no_license
|
fracz/refactor-extractor
|
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
|
dd5e82bfcc376e74a99e18c2bf54c95676914272
|
refs/heads/master
| 2021-01-19T06:50:08.211003 | 2018-11-30T13:00:57 | 2018-11-30T13:00:57 | 87,353,478 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 3,373 |
java
|
/*
* Copyright 2014 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.navercorp.pinpoint.profiler.monitor.codahale.gc;
import com.navercorp.pinpoint.bootstrap.config.DefaultProfilerConfig;
import com.navercorp.pinpoint.bootstrap.config.ProfilerConfig;
import com.navercorp.pinpoint.profiler.context.DefaultTransactionCounter;
import com.navercorp.pinpoint.profiler.context.IdGenerator;
import com.navercorp.pinpoint.profiler.context.TransactionCounter;
import com.navercorp.pinpoint.profiler.context.active.ActiveTraceRepository;
import com.navercorp.pinpoint.profiler.context.monitor.DefaultPluginMonitorContext;
import com.navercorp.pinpoint.profiler.context.monitor.PluginMonitorContext;
import com.navercorp.pinpoint.profiler.monitor.codahale.AgentStatCollectorFactory;
import com.navercorp.pinpoint.thrift.dto.TJvmGc;
import org.junit.Test;
import org.mockito.Mockito;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class GarbageCollectorFactoryTest {
private final Logger logger = LoggerFactory.getLogger(this.getClass());
private AgentStatCollectorFactory newAgentStatCollectorFactory(boolean detailedMetrics) {
ProfilerConfig profilerConfig = Mockito.mock(DefaultProfilerConfig.class);
if (detailedMetrics) {
Mockito.when(profilerConfig.isProfilerJvmCollectDetailedMetrics()).thenReturn(true);
}
ActiveTraceRepository activeTraceRepository = new ActiveTraceRepository();
IdGenerator idGenerator = new IdGenerator();
TransactionCounter transactionCounter = new DefaultTransactionCounter(idGenerator);
PluginMonitorContext pluginMonitorContext = new DefaultPluginMonitorContext();
return new AgentStatCollectorFactory(profilerConfig, activeTraceRepository, transactionCounter, pluginMonitorContext);
}
@Test
public void test() {
AgentStatCollectorFactory agentStatCollectorFactory = newAgentStatCollectorFactory(false);
GarbageCollector collector = agentStatCollectorFactory.getGarbageCollector();
logger.debug("collector.getType():{}", collector);
TJvmGc collect1 = collector.collect();
logger.debug("collector.collect():{}", collect1);
TJvmGc collect2 = collector.collect();
logger.debug("collector.collect():{}", collect2);
}
@Test
public void testDetailedMetrics() {
AgentStatCollectorFactory agentStatCollectorFactory = newAgentStatCollectorFactory(true);
GarbageCollector collector = agentStatCollectorFactory.getGarbageCollector();
logger.debug("collector.getType():{}", collector);
TJvmGc collect1 = collector.collect();
logger.debug("collector.collect():{}", collect1);
TJvmGc collect2 = collector.collect();
logger.debug("collector.collect():{}", collect2);
}
}
|
[
"[email protected]"
] | |
7ba11014634ffe0ba8b8e5e53d15cad3d41b5226
|
180df6a1fedd50e0af4bcf7e05f7f328b3145cbc
|
/src/test/java/Functional_residentRegistration/Testcase02_Validatelogin.java
|
fdf328b70e7ef0265e59e51536fb7314aa82cd87
|
[] |
no_license
|
priya060709/cafe
|
4569371d5dd3377e177cde76de382ec1c160e14c
|
880bbda854d465fa8dc77de98741fd60b10f045e
|
refs/heads/master
| 2023-05-10T13:49:47.136175 | 2020-06-08T23:14:14 | 2020-06-08T23:14:14 | 270,530,501 | 0 | 0 | null | 2023-05-09T18:24:32 | 2020-06-08T04:39:19 |
Java
|
UTF-8
|
Java
| false | false | 434 |
java
|
package Functional_residentRegistration;
import org.testng.annotations.Test;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class Testcase02_Validatelogin {
@Test
public void Login() {
// TODO Auto-generated method stub
WebDriverManager.chromedriver().setup();
ChromeDriver driver = new ChromeDriver();
driver.get("http://google.com");
driver.quit();
}
}
|
[
"[email protected]"
] | |
4d605a47de7251786b4de76c8e048d37fdf48296
|
38aa3eb6c6ff5fcc2ad314cf69ed2e3e2fa22306
|
/eureka2/src/main/java/com/liqiwei/software/eureka/DemoApplication.java
|
5489d32619a622e1f1e55b49d39ce2eebbc85720
|
[] |
no_license
|
ChinaOpenSourceFramework/DistributedSystem
|
8c7f24de570c6486a4c7e02afde2d1c1dbb9abf3
|
7896fe78d8b1a1e7d2ef37919c7636cf66463e91
|
refs/heads/master
| 2021-01-15T13:29:25.501514 | 2017-08-12T03:13:09 | 2017-08-12T03:13:09 | 99,675,007 | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 412 |
java
|
package com.liqiwei.software.eureka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@EnableEurekaServer
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
|
[
"[email protected]"
] | |
f5841920e481b679e6ae3e86bd22c9620633f37d
|
00ccc55950782514335fb66d1b04328ea2f9688e
|
/Leet/113_PathSumII.java
|
65f670643bed6186875088a7b5aeaf50be48f356
|
[] |
no_license
|
manishsat/geeks
|
4676e887a89ca63f1a031f5ba2473913634e17b7
|
5f01f5cc2b59bd3dd71823e73358919f49d0260b
|
refs/heads/master
| 2022-11-05T09:16:01.628668 | 2020-06-13T04:15:41 | 2020-06-13T04:15:41 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Java
| false | false | 1,116 |
java
|
/*
backtrack + DFS
*/
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
public List<List<Integer>> pathSum(TreeNode root, int sum) {
List<List<Integer>> res = new ArrayList<>();
List<Integer> cur = new ArrayList<>();
dfs(root, sum, res, cur);
return res;
}
private void dfs(TreeNode root, int sum, List<List<Integer>> res, List<Integer> cur) {
if (root == null) {
return;
}
// complete condition:
// (1) got leaf node
// (2) with leaf node the target is met
cur.add(root.val);
if (root.left == null && root.right == null && sum == root.val) {
res.add(new ArrayList<Integer>(cur));
} else {
// check left/right child approach
dfs(root.left, sum - root.val, res, cur);
dfs(root.right, sum - root.val, res, cur);
}
// backtrack: remove root.val
cur.remove(cur.size() - 1);
}
}
|
[
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.