Class SqlInstancesInsertRequest.Builder (0.1.0)
public static final class SqlInstancesInsertRequest.Builder extends GeneratedMessage.Builder<SqlInstancesInsertRequest.Builder> implements SqlInstancesInsertRequestOrBuilder
Instance insert request.
Protobuf type google.cloud.sql.v1.SqlInstancesInsertRequest
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public SqlInstancesInsertRequest build()
buildPartial()
public SqlInstancesInsertRequest buildPartial()
clear()
public SqlInstancesInsertRequest.Builder clear()
Overrides
clearBody()
public SqlInstancesInsertRequest.Builder clearBody()
.google.cloud.sql.v1.DatabaseInstance body = 100;
clearProject()
public SqlInstancesInsertRequest.Builder clearProject()
Project ID of the project to which the newly created Cloud SQL instances
should belong.
string project = 1;
getBody()
public DatabaseInstance getBody()
.google.cloud.sql.v1.DatabaseInstance body = 100;
getBodyBuilder()
public DatabaseInstance.Builder getBodyBuilder()
.google.cloud.sql.v1.DatabaseInstance body = 100;
getBodyOrBuilder()
public DatabaseInstanceOrBuilder getBodyOrBuilder()
.google.cloud.sql.v1.DatabaseInstance body = 100;
getDefaultInstanceForType()
public SqlInstancesInsertRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getProject()
public String getProject()
Project ID of the project to which the newly created Cloud SQL instances
should belong.
string project = 1;
| Returns |
| Type |
Description |
String |
The project.
|
getProjectBytes()
public ByteString getProjectBytes()
Project ID of the project to which the newly created Cloud SQL instances
should belong.
string project = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for project.
|
hasBody()
.google.cloud.sql.v1.DatabaseInstance body = 100;
| Returns |
| Type |
Description |
boolean |
Whether the body field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeBody(DatabaseInstance value)
public SqlInstancesInsertRequest.Builder mergeBody(DatabaseInstance value)
.google.cloud.sql.v1.DatabaseInstance body = 100;
mergeFrom(SqlInstancesInsertRequest other)
public SqlInstancesInsertRequest.Builder mergeFrom(SqlInstancesInsertRequest other)
public SqlInstancesInsertRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SqlInstancesInsertRequest.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
setBody(DatabaseInstance value)
public SqlInstancesInsertRequest.Builder setBody(DatabaseInstance value)
.google.cloud.sql.v1.DatabaseInstance body = 100;
setBody(DatabaseInstance.Builder builderForValue)
public SqlInstancesInsertRequest.Builder setBody(DatabaseInstance.Builder builderForValue)
.google.cloud.sql.v1.DatabaseInstance body = 100;
setProject(String value)
public SqlInstancesInsertRequest.Builder setProject(String value)
Project ID of the project to which the newly created Cloud SQL instances
should belong.
string project = 1;
| Parameter |
| Name |
Description |
value |
String
The project to set.
|
setProjectBytes(ByteString value)
public SqlInstancesInsertRequest.Builder setProjectBytes(ByteString value)
Project ID of the project to which the newly created Cloud SQL instances
should belong.
string project = 1;
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for project to set.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-08-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-05 UTC."],[],[]]