public static final class Sku.Builder extends GeneratedMessageV3.Builder<Sku.Builder> implements SkuOrBuilder
A stock keeping unit (SKU) of GDC hardware.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Sku
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Sku.BuilderImplements
SkuOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllInstances(Iterable<? extends SkuInstance> values)
public Sku.Builder addAllInstances(Iterable<? extends SkuInstance> values)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance> |
Returns | |
---|---|
Type | Description |
Sku.Builder |
addInstances(SkuInstance value)
public Sku.Builder addInstances(SkuInstance value)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
SkuInstance |
Returns | |
---|---|
Type | Description |
Sku.Builder |
addInstances(SkuInstance.Builder builderForValue)
public Sku.Builder addInstances(SkuInstance.Builder builderForValue)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
SkuInstance.Builder |
Returns | |
---|---|
Type | Description |
Sku.Builder |
addInstances(int index, SkuInstance value)
public Sku.Builder addInstances(int index, SkuInstance value)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
SkuInstance |
Returns | |
---|---|
Type | Description |
Sku.Builder |
addInstances(int index, SkuInstance.Builder builderForValue)
public Sku.Builder addInstances(int index, SkuInstance.Builder builderForValue)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
SkuInstance.Builder |
Returns | |
---|---|
Type | Description |
Sku.Builder |
addInstancesBuilder()
public SkuInstance.Builder addInstancesBuilder()
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SkuInstance.Builder |
addInstancesBuilder(int index)
public SkuInstance.Builder addInstancesBuilder(int index)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SkuInstance.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Sku.Builder |
build()
public Sku build()
Returns | |
---|---|
Type | Description |
Sku |
buildPartial()
public Sku buildPartial()
Returns | |
---|---|
Type | Description |
Sku |
clear()
public Sku.Builder clear()
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearConfig()
public Sku.Builder clearConfig()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearCreateTime()
public Sku.Builder clearCreateTime()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearDescription()
public Sku.Builder clearDescription()
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clearDisplayName()
public Sku.Builder clearDisplayName()
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Sku.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearInstances()
public Sku.Builder clearInstances()
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearIsActive()
public Sku.Builder clearIsActive()
Output only. Flag to indicate whether or not this revision is active. Only an active revision can be used in a new Order.
bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clearName()
public Sku.Builder clearName()
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Sku.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearRevisionId()
public Sku.Builder clearRevisionId()
Output only. The SKU revision ID.
A new revision is created whenever config
is updated. The format is an
8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clearType()
public Sku.Builder clearType()
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clearUpdateTime()
public Sku.Builder clearUpdateTime()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
clearVcpuCount()
public Sku.Builder clearVcpuCount()
Output only. The vCPU count associated with this SKU.
int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
clone()
public Sku.Builder clone()
Returns | |
---|---|
Type | Description |
Sku.Builder |
getConfig()
public SkuConfig getConfig()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SkuConfig |
The config. |
getConfigBuilder()
public SkuConfig.Builder getConfigBuilder()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SkuConfig.Builder |
getConfigOrBuilder()
public SkuConfigOrBuilder getConfigOrBuilder()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SkuConfigOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Sku |
getDescription()
public String getDescription()
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for displayName. |
getInstances(int index)
public SkuInstance getInstances(int index)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SkuInstance |
getInstancesBuilder(int index)
public SkuInstance.Builder getInstancesBuilder(int index)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SkuInstance.Builder |
getInstancesBuilderList()
public List<SkuInstance.Builder> getInstancesBuilderList()
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<Builder> |
getInstancesCount()
public int getInstancesCount()
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
getInstancesList()
public List<SkuInstance> getInstancesList()
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<SkuInstance> |
getInstancesOrBuilder(int index)
public SkuInstanceOrBuilder getInstancesOrBuilder(int index)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SkuInstanceOrBuilder |
getInstancesOrBuilderList()
public List<? extends SkuInstanceOrBuilder> getInstancesOrBuilderList()
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder> |
getIsActive()
public boolean getIsActive()
Output only. Flag to indicate whether or not this revision is active. Only an active revision can be used in a new Order.
bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
The isActive. |
getName()
public String getName()
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getRevisionId()
public String getRevisionId()
Output only. The SKU revision ID.
A new revision is created whenever config
is updated. The format is an
8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The revisionId. |
getRevisionIdBytes()
public ByteString getRevisionIdBytes()
Output only. The SKU revision ID.
A new revision is created whenever config
is updated. The format is an
8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for revisionId. |
getType()
public Sku.Type getType()
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Sku.Type |
The type. |
getTypeValue()
public int getTypeValue()
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for type. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getVcpuCount()
public int getVcpuCount()
Output only. The vCPU count associated with this SKU.
int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The vcpuCount. |
hasConfig()
public boolean hasConfig()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the config field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeConfig(SkuConfig value)
public Sku.Builder mergeConfig(SkuConfig value)
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
SkuConfig |
Returns | |
---|---|
Type | Description |
Sku.Builder |
mergeCreateTime(Timestamp value)
public Sku.Builder mergeCreateTime(Timestamp value)
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Sku.Builder |
mergeFrom(Sku other)
public Sku.Builder mergeFrom(Sku other)
Parameter | |
---|---|
Name | Description |
other |
Sku |
Returns | |
---|---|
Type | Description |
Sku.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Sku.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Sku.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Sku.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Sku.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Sku.Builder |
mergeUpdateTime(Timestamp value)
public Sku.Builder mergeUpdateTime(Timestamp value)
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Sku.Builder |
removeInstances(int index)
public Sku.Builder removeInstances(int index)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setConfig(SkuConfig value)
public Sku.Builder setConfig(SkuConfig value)
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
SkuConfig |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setConfig(SkuConfig.Builder builderForValue)
public Sku.Builder setConfig(SkuConfig.Builder builderForValue)
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
SkuConfig.Builder |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setCreateTime(Timestamp value)
public Sku.Builder setCreateTime(Timestamp value)
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Sku.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setDescription(String value)
public Sku.Builder setDescription(String value)
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The description to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public Sku.Builder setDescriptionBytes(ByteString value)
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setDisplayName(String value)
public Sku.Builder setDisplayName(String value)
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The displayName to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Sku.Builder setDisplayNameBytes(ByteString value)
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for displayName to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Sku.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setInstances(int index, SkuInstance value)
public Sku.Builder setInstances(int index, SkuInstance value)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
SkuInstance |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setInstances(int index, SkuInstance.Builder builderForValue)
public Sku.Builder setInstances(int index, SkuInstance.Builder builderForValue)
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
SkuInstance.Builder |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setIsActive(boolean value)
public Sku.Builder setIsActive(boolean value)
Output only. Flag to indicate whether or not this revision is active. Only an active revision can be used in a new Order.
bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
boolean The isActive to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setName(String value)
public Sku.Builder setName(String value)
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Sku.Builder setNameBytes(ByteString value)
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Sku.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setRevisionId(String value)
public Sku.Builder setRevisionId(String value)
Output only. The SKU revision ID.
A new revision is created whenever config
is updated. The format is an
8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The revisionId to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setRevisionIdBytes(ByteString value)
public Sku.Builder setRevisionIdBytes(ByteString value)
Output only. The SKU revision ID.
A new revision is created whenever config
is updated. The format is an
8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for revisionId to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setType(Sku.Type value)
public Sku.Builder setType(Sku.Type value)
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Sku.Type The type to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setTypeValue(int value)
public Sku.Builder setTypeValue(int value)
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for type to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Sku.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setUpdateTime(Timestamp value)
public Sku.Builder setUpdateTime(Timestamp value)
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Sku.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Sku.Builder |
setVcpuCount(int value)
public Sku.Builder setVcpuCount(int value)
Output only. The vCPU count associated with this SKU.
int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The vcpuCount to set. |
Returns | |
---|---|
Type | Description |
Sku.Builder |
This builder for chaining. |