- 2.55.0 (latest)
- 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Category.BuilderImplements
CategoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Category.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Category.Builder |
build()
public Category build()
Returns | |
---|---|
Type | Description |
Category |
buildPartial()
public Category buildPartial()
Returns | |
---|---|
Type | Description |
Category |
clear()
public Category.Builder clear()
Returns | |
---|---|
Type | Description |
Category.Builder |
clearField(Descriptors.FieldDescriptor field)
public Category.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Category.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Category.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Category.Builder |
clearResourceFamily()
public Category.Builder clearResourceFamily()
The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
string resource_family = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Category.Builder |
This builder for chaining. |
clone()
public Category.Builder clone()
Returns | |
---|---|
Type | Description |
Category.Builder |
getDefaultInstanceForType()
public Category getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Category |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getResourceFamily()
public String getResourceFamily()
The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
string resource_family = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
The serviceDisplayName. |
getServiceDisplayNameBytes()
public ByteString getServiceDisplayNameBytes()
The display name of the service this SKU belongs to.
string service_display_name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
The usageType. |
getUsageTypeBytes()
public ByteString getUsageTypeBytes()
Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
string usage_type = 4;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for usageType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Category other)
public Category.Builder mergeFrom(Category other)
Parameter | |
---|---|
Name | Description |
other |
Category |
Returns | |
---|---|
Type | Description |
Category.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Category.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Category.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Category.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Category.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Category.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Category.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Category.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Category.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Category.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Category.Builder |
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 | |
---|---|
Name | Description |
value |
String The resourceFamily to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for resourceFamily to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The resourceGroup to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for resourceGroup to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The serviceDisplayName to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for serviceDisplayName to set. |
Returns | |
---|---|
Type | Description |
Category.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Category.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Category.Builder |
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 | |
---|---|
Name | Description |
value |
String The usageType to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for usageType to set. |
Returns | |
---|---|
Type | Description |
Category.Builder |
This builder for chaining. |