Class GeoTaxonomy (2.20.0)

public final class GeoTaxonomy extends GeneratedMessageV3 implements GeoTaxonomyOrBuilder

Encapsulates the geographic taxonomy data for a sku.

Protobuf type google.cloud.billing.v1.GeoTaxonomy

Static Fields

REGIONS_FIELD_NUMBER

public static final int REGIONS_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GeoTaxonomy getDefaultInstance()
Returns
TypeDescription
GeoTaxonomy

getDescriptor()

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

newBuilder()

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

newBuilder(GeoTaxonomy prototype)

public static GeoTaxonomy.Builder newBuilder(GeoTaxonomy prototype)
Parameter
NameDescription
prototypeGeoTaxonomy
Returns
TypeDescription
GeoTaxonomy.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GeoTaxonomy getDefaultInstanceForType()
Returns
TypeDescription
GeoTaxonomy

getParserForType()

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

getRegions(int index)

public String getRegions(int index)

The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.

repeated string regions = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The regions at the given index.

getRegionsBytes(int index)

public ByteString getRegionsBytes(int index)

The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.

repeated string regions = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the regions at the given index.

getRegionsCount()

public int getRegionsCount()

The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.

repeated string regions = 2;

Returns
TypeDescription
int

The count of regions.

getRegionsList()

public ProtocolStringList getRegionsList()

The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.

repeated string regions = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the regions.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public GeoTaxonomy.Type getType()

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.

.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;

Returns
TypeDescription
GeoTaxonomy.Type

The type.

getTypeValue()

public int getTypeValue()

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.

.google.cloud.billing.v1.GeoTaxonomy.Type type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

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 GeoTaxonomy.Builder newBuilderForType()
Returns
TypeDescription
GeoTaxonomy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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