# Interface SkuOrBuilder (2.93.0)

2.93.0 (latest) 2.91.0 2.88.0 2.87.0 2.85.0 2.83.0 2.82.0 2.81.0 2.80.0 2.78.0 2.76.0 2.75.0 2.74.0 2.73.0 2.72.0 2.70.0 2.68.0 2.67.0 2.64.0 2.63.0 2.62.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.52.0 2.51.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.5 2.2.1 2.1.12

    public interface SkuOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCategory()

    public abstract Category getCategory()

The category hierarchy of this SKU, purely for organizational purpose.

`.google.cloud.billing.v1.Category category = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.Category` | The category. |

### getCategoryOrBuilder()

    public abstract CategoryOrBuilder getCategoryOrBuilder()

The category hierarchy of this SKU, purely for organizational purpose.

`.google.cloud.billing.v1.Category category = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.CategoryOrBuilder` |   |

### getDescription()

    public abstract String getDescription()

A human readable description of the SKU, has a maximum length of 256
characters.

`string description = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

A human readable description of the SKU, has a maximum length of 256
characters.

`string description = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getGeoTaxonomy()

    public abstract GeoTaxonomy getGeoTaxonomy()

The geographic taxonomy for this sku.

`.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.GeoTaxonomy` | The geoTaxonomy. |

### getGeoTaxonomyOrBuilder()

    public abstract GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder()

The geographic taxonomy for this sku.

`.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.GeoTaxonomyOrBuilder` |   |

### getName()

    public abstract String getName()

The resource name for the SKU.
Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

The resource name for the SKU.
Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"

`string name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getPricingInfo(int index)

    public abstract PricingInfo getPricingInfo(int index)

A timeline of pricing info for this SKU in chronological order.

`repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.PricingInfo` |   |

### getPricingInfoCount()

    public abstract int getPricingInfoCount()

A timeline of pricing info for this SKU in chronological order.

`repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getPricingInfoList()

    public abstract List<PricingInfo> getPricingInfoList()

A timeline of pricing info for this SKU in chronological order.

`repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.PricingInfo>` |   |

### getPricingInfoOrBuilder(int index)

    public abstract PricingInfoOrBuilder getPricingInfoOrBuilder(int index)

A timeline of pricing info for this SKU in chronological order.

`repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-billing/latest/com.google.cloud.billing.v1.PricingInfoOrBuilder` |   |

### getPricingInfoOrBuilderList()

    public abstract List<? extends PricingInfoOrBuilder> getPricingInfoOrBuilderList()

A timeline of pricing info for this SKU in chronological order.

`repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.billing.v1.PricingInfoOrBuilder>` |   |

### getServiceProviderName()

    public abstract String getServiceProviderName()

Identifies the service provider.
This is 'Google' for first party services in Google Cloud Platform.

`string service_provider_name = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The serviceProviderName. |

### getServiceProviderNameBytes()

    public abstract ByteString getServiceProviderNameBytes()

Identifies the service provider.
This is 'Google' for first party services in Google Cloud Platform.

`string service_provider_name = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for serviceProviderName. |

### getServiceRegions(int index)

    public abstract String getServiceRegions(int index)

List of service regions this SKU is offered at.
Example: "asia-east1"
Service regions can be found at <https://cloud.google.com/about/locations/>

`repeated string service_regions = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The serviceRegions at the given index. |

### getServiceRegionsBytes(int index)

    public abstract ByteString getServiceRegionsBytes(int index)

List of service regions this SKU is offered at.
Example: "asia-east1"
Service regions can be found at <https://cloud.google.com/about/locations/>

`repeated string service_regions = 5;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the serviceRegions at the given index. |

### getServiceRegionsCount()

    public abstract int getServiceRegionsCount()

List of service regions this SKU is offered at.
Example: "asia-east1"
Service regions can be found at <https://cloud.google.com/about/locations/>

`repeated string service_regions = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of serviceRegions. |

### getServiceRegionsList()

    public abstract List<String> getServiceRegionsList()

List of service regions this SKU is offered at.
Example: "asia-east1"
Service regions can be found at <https://cloud.google.com/about/locations/>

`repeated string service_regions = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the serviceRegions. |

### getSkuId()

    public abstract String getSkuId()

The identifier for the SKU.
Example: "D041-B8A1-6E0B"

`string sku_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The skuId. |

### getSkuIdBytes()

    public abstract ByteString getSkuIdBytes()

The identifier for the SKU.
Example: "D041-B8A1-6E0B"

`string sku_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for skuId. |

### hasCategory()

    public abstract boolean hasCategory()

The category hierarchy of this SKU, purely for organizational purpose.

`.google.cloud.billing.v1.Category category = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the category field is set. |

### hasGeoTaxonomy()

    public abstract boolean hasGeoTaxonomy()

The geographic taxonomy for this sku.

`.google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the geoTaxonomy field is set. |