Send feedback
Class RegionPreferences.Builder (0.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.19.0 keyboard_arrow_down
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
Send feedback
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 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]