Class RegionPreferences (0.12.0)

public final class RegionPreferences extends GeneratedMessageV3 implements RegionPreferencesOrBuilder

The user preferences relating to target regions.

Protobuf type google.cloud.migrationcenter.v1.RegionPreferences

Static Fields

PREFERRED_REGIONS_FIELD_NUMBER

public static final int PREFERRED_REGIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RegionPreferences getDefaultInstance()
Returns
TypeDescription
RegionPreferences

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RegionPreferences.Builder newBuilder()
Returns
TypeDescription
RegionPreferences.Builder

newBuilder(RegionPreferences prototype)

public static RegionPreferences.Builder newBuilder(RegionPreferences prototype)
Parameter
NameDescription
prototypeRegionPreferences
Returns
TypeDescription
RegionPreferences.Builder

parseDelimitedFrom(InputStream input)

public static RegionPreferences parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RegionPreferences parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RegionPreferences parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RegionPreferences parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RegionPreferences parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RegionPreferences parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RegionPreferences parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RegionPreferences parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RegionPreferences parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RegionPreferences parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RegionPreferences parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RegionPreferences parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RegionPreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RegionPreferences> parser()
Returns
TypeDescription
Parser<RegionPreferences>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RegionPreferences getDefaultInstanceForType()
Returns
TypeDescription
RegionPreferences

getParserForType()

public Parser<RegionPreferences> getParserForType()
Returns
TypeDescription
Parser<RegionPreferences>
Overrides

getPreferredRegions(int index)

public String getPreferredRegions(int index)

A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.

repeated string preferred_regions = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The preferredRegions at the given index.

getPreferredRegionsBytes(int index)

public ByteString getPreferredRegionsBytes(int index)

A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.

repeated string preferred_regions = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the preferredRegions at the given index.

getPreferredRegionsCount()

public int getPreferredRegionsCount()

A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.

repeated string preferred_regions = 1;

Returns
TypeDescription
int

The count of preferredRegions.

getPreferredRegionsList()

public ProtocolStringList getPreferredRegionsList()

A list of preferred regions, ordered by the most preferred region first. Set only valid Google Cloud region names. See https://cloud.google.com/compute/docs/regions-zones for available regions.

repeated string preferred_regions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the preferredRegions.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RegionPreferences.Builder newBuilderForType()
Returns
TypeDescription
RegionPreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RegionPreferences.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RegionPreferences.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RegionPreferences.Builder toBuilder()
Returns
TypeDescription
RegionPreferences.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException