Class Category.Builder (2.14.0)

public static final class Category.Builder extends GeneratedMessageV3.Builder<Category.Builder> implements CategoryOrBuilder

Represents the category hierarchy of a SKU.

Protobuf type google.cloud.billing.v1.Category

Implements

CategoryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Category.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Category.Builder
Overrides

build()

public Category build()
Returns
TypeDescription
Category

buildPartial()

public Category buildPartial()
Returns
TypeDescription
Category

clear()

public Category.Builder clear()
Returns
TypeDescription
Category.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Category.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Category.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Category.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Category.Builder
Overrides

clearResourceFamily()

public Category.Builder clearResourceFamily()

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

string resource_family = 2;

Returns
TypeDescription
Category.Builder

This builder for chaining.

clearResourceGroup()

public Category.Builder clearResourceGroup()

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

string resource_group = 3;

Returns
TypeDescription
Category.Builder

This builder for chaining.

clearServiceDisplayName()

public Category.Builder clearServiceDisplayName()

The display name of the service this SKU belongs to.

string service_display_name = 1;

Returns
TypeDescription
Category.Builder

This builder for chaining.

clearUsageType()

public Category.Builder clearUsageType()

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

string usage_type = 4;

Returns
TypeDescription
Category.Builder

This builder for chaining.

clone()

public Category.Builder clone()
Returns
TypeDescription
Category.Builder
Overrides

getDefaultInstanceForType()

public Category getDefaultInstanceForType()
Returns
TypeDescription
Category

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResourceFamily()

public String getResourceFamily()

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

string resource_family = 2;

Returns
TypeDescription
String

The resourceFamily.

getResourceFamilyBytes()

public ByteString getResourceFamilyBytes()

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

string resource_family = 2;

Returns
TypeDescription
ByteString

The bytes for resourceFamily.

getResourceGroup()

public String getResourceGroup()

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

string resource_group = 3;

Returns
TypeDescription
String

The resourceGroup.

getResourceGroupBytes()

public ByteString getResourceGroupBytes()

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

string resource_group = 3;

Returns
TypeDescription
ByteString

The bytes for resourceGroup.

getServiceDisplayName()

public String getServiceDisplayName()

The display name of the service this SKU belongs to.

string service_display_name = 1;

Returns
TypeDescription
String

The serviceDisplayName.

getServiceDisplayNameBytes()

public ByteString getServiceDisplayNameBytes()

The display name of the service this SKU belongs to.

string service_display_name = 1;

Returns
TypeDescription
ByteString

The bytes for serviceDisplayName.

getUsageType()

public String getUsageType()

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

string usage_type = 4;

Returns
TypeDescription
String

The usageType.

getUsageTypeBytes()

public ByteString getUsageTypeBytes()

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

string usage_type = 4;

Returns
TypeDescription
ByteString

The bytes for usageType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Category other)

public Category.Builder mergeFrom(Category other)
Parameter
NameDescription
otherCategory
Returns
TypeDescription
Category.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Category.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Category.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Category.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Category.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Category.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Category.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Category.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Category.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Category.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Category.Builder
Overrides

setResourceFamily(String value)

public Category.Builder setResourceFamily(String value)

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

string resource_family = 2;

Parameter
NameDescription
valueString

The resourceFamily to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setResourceFamilyBytes(ByteString value)

public Category.Builder setResourceFamilyBytes(ByteString value)

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

string resource_family = 2;

Parameter
NameDescription
valueByteString

The bytes for resourceFamily to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setResourceGroup(String value)

public Category.Builder setResourceGroup(String value)

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

string resource_group = 3;

Parameter
NameDescription
valueString

The resourceGroup to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setResourceGroupBytes(ByteString value)

public Category.Builder setResourceGroupBytes(ByteString value)

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

string resource_group = 3;

Parameter
NameDescription
valueByteString

The bytes for resourceGroup to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setServiceDisplayName(String value)

public Category.Builder setServiceDisplayName(String value)

The display name of the service this SKU belongs to.

string service_display_name = 1;

Parameter
NameDescription
valueString

The serviceDisplayName to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setServiceDisplayNameBytes(ByteString value)

public Category.Builder setServiceDisplayNameBytes(ByteString value)

The display name of the service this SKU belongs to.

string service_display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for serviceDisplayName to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Category.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Category.Builder
Overrides

setUsageType(String value)

public Category.Builder setUsageType(String value)

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

string usage_type = 4;

Parameter
NameDescription
valueString

The usageType to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.

setUsageTypeBytes(ByteString value)

public Category.Builder setUsageTypeBytes(ByteString value)

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

string usage_type = 4;

Parameter
NameDescription
valueByteString

The bytes for usageType to set.

Returns
TypeDescription
Category.Builder

This builder for chaining.