public static final class Service.MultiRegionSettings.Builder extends GeneratedMessage.Builder<Service.MultiRegionSettings.Builder> implements Service.MultiRegionSettingsOrBuilderSettings for multi-region deployment.
Protobuf type google.cloud.run.v2.Service.MultiRegionSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Service.MultiRegionSettings.BuilderImplements
Service.MultiRegionSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllRegions(Iterable<String> values)
public Service.MultiRegionSettings.Builder addAllRegions(Iterable<String> values)Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The regions to add. |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
addRegions(String value)
public Service.MultiRegionSettings.Builder addRegions(String value)Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe regions to add. |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
addRegionsBytes(ByteString value)
public Service.MultiRegionSettings.Builder addRegionsBytes(ByteString value)Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the regions to add. |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
build()
public Service.MultiRegionSettings build()| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings |
|
buildPartial()
public Service.MultiRegionSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings |
|
clear()
public Service.MultiRegionSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
|
clearMultiRegionId()
public Service.MultiRegionSettings.Builder clearMultiRegionId()Optional. System-generated unique id for the multi-region Service.
string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
clearRegions()
public Service.MultiRegionSettings.Builder clearRegions()Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Service.MultiRegionSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMultiRegionId()
public String getMultiRegionId()Optional. System-generated unique id for the multi-region Service.
string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The multiRegionId. |
getMultiRegionIdBytes()
public ByteString getMultiRegionIdBytes()Optional. System-generated unique id for the multi-region Service.
string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for multiRegionId. |
getRegions(int index)
public String getRegions(int index)Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The regions at the given index. |
getRegionsBytes(int index)
public ByteString getRegionsBytes(int index)Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the regions at the given index. |
getRegionsCount()
public int getRegionsCount()Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of regions. |
getRegionsList()
public ProtocolStringList getRegionsList()Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the regions. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Service.MultiRegionSettings other)
public Service.MultiRegionSettings.Builder mergeFrom(Service.MultiRegionSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
Service.MultiRegionSettings |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Service.MultiRegionSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Service.MultiRegionSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
|
setMultiRegionId(String value)
public Service.MultiRegionSettings.Builder setMultiRegionId(String value)Optional. System-generated unique id for the multi-region Service.
string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe multiRegionId to set. |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
setMultiRegionIdBytes(ByteString value)
public Service.MultiRegionSettings.Builder setMultiRegionIdBytes(ByteString value)Optional. System-generated unique id for the multi-region Service.
string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for multiRegionId to set. |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |
setRegions(int index, String value)
public Service.MultiRegionSettings.Builder setRegions(int index, String value)Required. List of regions to deploy to, including primary region.
repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe regions to set. |
| Returns | |
|---|---|
| Type | Description |
Service.MultiRegionSettings.Builder |
This builder for chaining. |