public static final class Tier.Builder extends GeneratedMessage.Builder<Tier.Builder> implements TierOrBuilderA Google Cloud SQL service tier resource.
Protobuf type google.cloud.sql.v1.Tier
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Tier.BuilderImplements
TierOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllRegion(Iterable<String> values)
public Tier.Builder addAllRegion(Iterable<String> values)The applicable regions for this tier.
repeated string region = 5;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The region to add. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
addRegion(String value)
public Tier.Builder addRegion(String value)The applicable regions for this tier.
repeated string region = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe region to add. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
addRegionBytes(ByteString value)
public Tier.Builder addRegionBytes(ByteString value)The applicable regions for this tier.
repeated string region = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the region to add. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
build()
public Tier build()| Returns | |
|---|---|
| Type | Description |
Tier |
|
buildPartial()
public Tier buildPartial()| Returns | |
|---|---|
| Type | Description |
Tier |
|
clear()
public Tier.Builder clear()| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
|
clearDiskQuota()
public Tier.Builder clearDiskQuota()The maximum disk size of this tier in bytes.
int64 Disk_Quota = 4 [json_name = "DiskQuota"];
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
clearKind()
public Tier.Builder clearKind() This is always sql#tier.
string kind = 3;
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
clearRAM()
public Tier.Builder clearRAM()The maximum RAM usage of this tier in bytes.
int64 RAM = 2 [json_name = "RAM"];
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
clearRegion()
public Tier.Builder clearRegion()The applicable regions for this tier.
repeated string region = 5;
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
clearTier()
public Tier.Builder clearTier() An identifier for the machine type, for example, db-custom-1-3840. For
related information, see Pricing.
string tier = 1;
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Tier getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Tier |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDiskQuota()
public long getDiskQuota()The maximum disk size of this tier in bytes.
int64 Disk_Quota = 4 [json_name = "DiskQuota"];
| Returns | |
|---|---|
| Type | Description |
long |
The diskQuota. |
getKind()
public String getKind() This is always sql#tier.
string kind = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#tier.
string kind = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getRAM()
public long getRAM()The maximum RAM usage of this tier in bytes.
int64 RAM = 2 [json_name = "RAM"];
| Returns | |
|---|---|
| Type | Description |
long |
The rAM. |
getRegion(int index)
public String getRegion(int index)The applicable regions for this tier.
repeated string region = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The region at the given index. |
getRegionBytes(int index)
public ByteString getRegionBytes(int index)The applicable regions for this tier.
repeated string region = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the region at the given index. |
getRegionCount()
public int getRegionCount()The applicable regions for this tier.
repeated string region = 5;
| Returns | |
|---|---|
| Type | Description |
int |
The count of region. |
getRegionList()
public ProtocolStringList getRegionList()The applicable regions for this tier.
repeated string region = 5;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the region. |
getTier()
public String getTier() An identifier for the machine type, for example, db-custom-1-3840. For
related information, see Pricing.
string tier = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The tier. |
getTierBytes()
public ByteString getTierBytes() An identifier for the machine type, for example, db-custom-1-3840. For
related information, see Pricing.
string tier = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tier. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Tier other)
public Tier.Builder mergeFrom(Tier other)| Parameter | |
|---|---|
| Name | Description |
other |
Tier |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Tier.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Tier.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
|
setDiskQuota(long value)
public Tier.Builder setDiskQuota(long value)The maximum disk size of this tier in bytes.
int64 Disk_Quota = 4 [json_name = "DiskQuota"];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe diskQuota to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
setKind(String value)
public Tier.Builder setKind(String value) This is always sql#tier.
string kind = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public Tier.Builder setKindBytes(ByteString value) This is always sql#tier.
string kind = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
setRAM(long value)
public Tier.Builder setRAM(long value)The maximum RAM usage of this tier in bytes.
int64 RAM = 2 [json_name = "RAM"];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe rAM to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
setRegion(int index, String value)
public Tier.Builder setRegion(int index, String value)The applicable regions for this tier.
repeated string region = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe region to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
setTier(String value)
public Tier.Builder setTier(String value) An identifier for the machine type, for example, db-custom-1-3840. For
related information, see Pricing.
string tier = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tier to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |
setTierBytes(ByteString value)
public Tier.Builder setTierBytes(ByteString value) An identifier for the machine type, for example, db-custom-1-3840. For
related information, see Pricing.
string tier = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tier to set. |
| Returns | |
|---|---|
| Type | Description |
Tier.Builder |
This builder for chaining. |