public static final class RegionPreferences.Builder extends GeneratedMessageV3.Builder<RegionPreferences.Builder> implements RegionPreferencesOrBuilder
The user preferences relating to target regions.
Protobuf type google.cloud.migrationcenter.v1.RegionPreferences
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllPreferredRegions(Iterable<String> values)
public RegionPreferences.Builder addAllPreferredRegions(Iterable<String> values)
Parameter |
---|
Name | Description |
values | Iterable<String>
The preferredRegions to add.
|
addPreferredRegions(String value)
public RegionPreferences.Builder addPreferredRegions(String value)
Parameter |
---|
Name | Description |
value | String
The preferredRegions to add.
|
addPreferredRegionsBytes(ByteString value)
public RegionPreferences.Builder addPreferredRegionsBytes(ByteString value)
Parameter |
---|
Name | Description |
value | ByteString
The bytes of the preferredRegions to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RegionPreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RegionPreferences build()
buildPartial()
public RegionPreferences buildPartial()
clear()
public RegionPreferences.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RegionPreferences.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RegionPreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPreferredRegions()
public RegionPreferences.Builder clearPreferredRegions()
clone()
public RegionPreferences.Builder clone()
Overrides
getDefaultInstanceForType()
public RegionPreferences getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPreferredRegions(int index)
public String getPreferredRegions(int index)
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The preferredRegions at the given index.
|
getPreferredRegionsBytes(int index)
public ByteString getPreferredRegionsBytes(int index)
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the preferredRegions at the given index.
|
getPreferredRegionsCount()
public int getPreferredRegionsCount()
Returns |
---|
Type | Description |
int | The count of preferredRegions.
|
getPreferredRegionsList()
public ProtocolStringList getPreferredRegionsList()
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RegionPreferences other)
public RegionPreferences.Builder mergeFrom(RegionPreferences other)
public RegionPreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RegionPreferences.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RegionPreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RegionPreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPreferredRegions(int index, String value)
public RegionPreferences.Builder setPreferredRegions(int index, String value)
Parameters |
---|
Name | Description |
index | int
The index to set the value at.
|
value | String
The preferredRegions to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RegionPreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RegionPreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides