Class Profile.Builder (0.1.0)

public static final class Profile.Builder extends GeneratedMessageV3.Builder<Profile.Builder> implements ProfileOrBuilder

A profile containing information about a model deployment.

Protobuf type google.cloud.gkerecommender.v1.Profile

Implements

ProfileOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllPerformanceStats(Iterable<? extends PerformanceStats> values)

public Profile.Builder addAllPerformanceStats(Iterable<? extends PerformanceStats> values)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkerecommender.v1.PerformanceStats>
Returns
Type Description
Profile.Builder

addPerformanceStats(PerformanceStats value)

public Profile.Builder addPerformanceStats(PerformanceStats value)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PerformanceStats
Returns
Type Description
Profile.Builder

addPerformanceStats(PerformanceStats.Builder builderForValue)

public Profile.Builder addPerformanceStats(PerformanceStats.Builder builderForValue)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PerformanceStats.Builder
Returns
Type Description
Profile.Builder

addPerformanceStats(int index, PerformanceStats value)

public Profile.Builder addPerformanceStats(int index, PerformanceStats value)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PerformanceStats
Returns
Type Description
Profile.Builder

addPerformanceStats(int index, PerformanceStats.Builder builderForValue)

public Profile.Builder addPerformanceStats(int index, PerformanceStats.Builder builderForValue)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PerformanceStats.Builder
Returns
Type Description
Profile.Builder

addPerformanceStatsBuilder()

public PerformanceStats.Builder addPerformanceStatsBuilder()

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PerformanceStats.Builder

addPerformanceStatsBuilder(int index)

public PerformanceStats.Builder addPerformanceStatsBuilder(int index)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PerformanceStats.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Profile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Profile.Builder
Overrides

build()

public Profile build()
Returns
Type Description
Profile

buildPartial()

public Profile buildPartial()
Returns
Type Description
Profile

clear()

public Profile.Builder clear()
Returns
Type Description
Profile.Builder
Overrides

clearAcceleratorType()

public Profile.Builder clearAcceleratorType()

Output only. The accelerator type. Expected format: nvidia-h100-80gb.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Profile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Profile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Profile.Builder
Overrides

clearInstanceType()

public Profile.Builder clearInstanceType()

Output only. The instance type. Expected format: a2-highgpu-1g.

string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Profile.Builder

This builder for chaining.

clearModelServerInfo()

public Profile.Builder clearModelServerInfo()

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Profile.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Profile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Profile.Builder
Overrides

clearPerformanceStats()

public Profile.Builder clearPerformanceStats()

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Profile.Builder

clearResourcesUsed()

public Profile.Builder clearResourcesUsed()

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Profile.Builder

clearTpuTopology()

public Profile.Builder clearTpuTopology()

Output only. The TPU topology (if applicable).

string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Profile.Builder

This builder for chaining.

clone()

public Profile.Builder clone()
Returns
Type Description
Profile.Builder
Overrides

getAcceleratorType()

public String getAcceleratorType()

Output only. The accelerator type. Expected format: nvidia-h100-80gb.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public ByteString getAcceleratorTypeBytes()

Output only. The accelerator type. Expected format: nvidia-h100-80gb.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

public Profile getDefaultInstanceForType()
Returns
Type Description
Profile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceType()

public String getInstanceType()

Output only. The instance type. Expected format: a2-highgpu-1g.

string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The instanceType.

getInstanceTypeBytes()

public ByteString getInstanceTypeBytes()

Output only. The instance type. Expected format: a2-highgpu-1g.

string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for instanceType.

getModelServerInfo()

public ModelServerInfo getModelServerInfo()

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ModelServerInfo

The modelServerInfo.

getModelServerInfoBuilder()

public ModelServerInfo.Builder getModelServerInfoBuilder()

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ModelServerInfo.Builder

getModelServerInfoOrBuilder()

public ModelServerInfoOrBuilder getModelServerInfoOrBuilder()

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ModelServerInfoOrBuilder

getPerformanceStats(int index)

public PerformanceStats getPerformanceStats(int index)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PerformanceStats

getPerformanceStatsBuilder(int index)

public PerformanceStats.Builder getPerformanceStatsBuilder(int index)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PerformanceStats.Builder

getPerformanceStatsBuilderList()

public List<PerformanceStats.Builder> getPerformanceStatsBuilderList()

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getPerformanceStatsCount()

public int getPerformanceStatsCount()

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPerformanceStatsList()

public List<PerformanceStats> getPerformanceStatsList()

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PerformanceStats>

getPerformanceStatsOrBuilder(int index)

public PerformanceStatsOrBuilder getPerformanceStatsOrBuilder(int index)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PerformanceStatsOrBuilder

getPerformanceStatsOrBuilderList()

public List<? extends PerformanceStatsOrBuilder> getPerformanceStatsOrBuilderList()

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.gkerecommender.v1.PerformanceStatsOrBuilder>

getResourcesUsed()

public ResourcesUsed getResourcesUsed()

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourcesUsed

The resourcesUsed.

getResourcesUsedBuilder()

public ResourcesUsed.Builder getResourcesUsedBuilder()

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourcesUsed.Builder

getResourcesUsedOrBuilder()

public ResourcesUsedOrBuilder getResourcesUsedOrBuilder()

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourcesUsedOrBuilder

getTpuTopology()

public String getTpuTopology()

Output only. The TPU topology (if applicable).

string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The tpuTopology.

getTpuTopologyBytes()

public ByteString getTpuTopologyBytes()

Output only. The TPU topology (if applicable).

string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for tpuTopology.

hasModelServerInfo()

public boolean hasModelServerInfo()

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the modelServerInfo field is set.

hasResourcesUsed()

public boolean hasResourcesUsed()

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the resourcesUsed field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Profile other)

public Profile.Builder mergeFrom(Profile other)
Parameter
Name Description
other Profile
Returns
Type Description
Profile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Profile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Profile.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Profile.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Profile.Builder
Overrides

mergeModelServerInfo(ModelServerInfo value)

public Profile.Builder mergeModelServerInfo(ModelServerInfo value)

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ModelServerInfo
Returns
Type Description
Profile.Builder

mergeResourcesUsed(ResourcesUsed value)

public Profile.Builder mergeResourcesUsed(ResourcesUsed value)

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourcesUsed
Returns
Type Description
Profile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Profile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Profile.Builder
Overrides

removePerformanceStats(int index)

public Profile.Builder removePerformanceStats(int index)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Profile.Builder

setAcceleratorType(String value)

public Profile.Builder setAcceleratorType(String value)

Output only. The accelerator type. Expected format: nvidia-h100-80gb.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The acceleratorType to set.

Returns
Type Description
Profile.Builder

This builder for chaining.

setAcceleratorTypeBytes(ByteString value)

public Profile.Builder setAcceleratorTypeBytes(ByteString value)

Output only. The accelerator type. Expected format: nvidia-h100-80gb.

string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for acceleratorType to set.

Returns
Type Description
Profile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Profile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Profile.Builder
Overrides

setInstanceType(String value)

public Profile.Builder setInstanceType(String value)

Output only. The instance type. Expected format: a2-highgpu-1g.

string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The instanceType to set.

Returns
Type Description
Profile.Builder

This builder for chaining.

setInstanceTypeBytes(ByteString value)

public Profile.Builder setInstanceTypeBytes(ByteString value)

Output only. The instance type. Expected format: a2-highgpu-1g.

string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for instanceType to set.

Returns
Type Description
Profile.Builder

This builder for chaining.

setModelServerInfo(ModelServerInfo value)

public Profile.Builder setModelServerInfo(ModelServerInfo value)

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ModelServerInfo
Returns
Type Description
Profile.Builder

setModelServerInfo(ModelServerInfo.Builder builderForValue)

public Profile.Builder setModelServerInfo(ModelServerInfo.Builder builderForValue)

Output only. The model server configuration. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ModelServerInfo.Builder
Returns
Type Description
Profile.Builder

setPerformanceStats(int index, PerformanceStats value)

public Profile.Builder setPerformanceStats(int index, PerformanceStats value)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PerformanceStats
Returns
Type Description
Profile.Builder

setPerformanceStats(int index, PerformanceStats.Builder builderForValue)

public Profile.Builder setPerformanceStats(int index, PerformanceStats.Builder builderForValue)

Output only. The performance statistics for this profile.

repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PerformanceStats.Builder
Returns
Type Description
Profile.Builder

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

public Profile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Profile.Builder
Overrides

setResourcesUsed(ResourcesUsed value)

public Profile.Builder setResourcesUsed(ResourcesUsed value)

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourcesUsed
Returns
Type Description
Profile.Builder

setResourcesUsed(ResourcesUsed.Builder builderForValue)

public Profile.Builder setResourcesUsed(ResourcesUsed.Builder builderForValue)

Output only. The resources used by the model deployment.

.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ResourcesUsed.Builder
Returns
Type Description
Profile.Builder

setTpuTopology(String value)

public Profile.Builder setTpuTopology(String value)

Output only. The TPU topology (if applicable).

string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The tpuTopology to set.

Returns
Type Description
Profile.Builder

This builder for chaining.

setTpuTopologyBytes(ByteString value)

public Profile.Builder setTpuTopologyBytes(ByteString value)

Output only. The TPU topology (if applicable).

string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for tpuTopology to set.

Returns
Type Description
Profile.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Profile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Profile.Builder
Overrides