Class Profile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
com.google.cloud.gkerecommender.v1.Profile.Builder
- All Implemented Interfaces:
ProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Profile
public static final class Profile.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
implements ProfileOrBuilder
A profile containing information about a model deployment.Protobuf type
google.cloud.gkerecommender.v1.Profile-
Method Summary
Modifier and TypeMethodDescriptionaddAllPerformanceStats(Iterable<? extends PerformanceStats> values) Output only.addPerformanceStats(int index, PerformanceStats value) Output only.addPerformanceStats(int index, PerformanceStats.Builder builderForValue) Output only.Output only.addPerformanceStats(PerformanceStats.Builder builderForValue) Output only.Output only.addPerformanceStatsBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.getPerformanceStats(int index) Output only.getPerformanceStatsBuilder(int index) Output only.Output only.intOutput only.Output only.getPerformanceStatsOrBuilder(int index) Output only.List<? extends PerformanceStatsOrBuilder>Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.mergeResourcesUsed(ResourcesUsed value) Output only.removePerformanceStats(int index) Output only.setAcceleratorType(String value) Output only.setAcceleratorTypeBytes(com.google.protobuf.ByteString value) Output only.setInstanceType(String value) Output only.setInstanceTypeBytes(com.google.protobuf.ByteString value) Output only.Output only.setModelServerInfo(ModelServerInfo.Builder builderForValue) Output only.setPerformanceStats(int index, PerformanceStats value) Output only.setPerformanceStats(int index, PerformanceStats.Builder builderForValue) Output only.setResourcesUsed(ResourcesUsed value) Output only.setResourcesUsed(ResourcesUsed.Builder builderForValue) Output only.setTpuTopology(String value) Output only.setTpuTopologyBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Profile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
-
mergeFrom
public Profile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Profile.Builder>- Throws:
IOException
-
hasModelServerInfo
public boolean hasModelServerInfo()Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasModelServerInfoin interfaceProfileOrBuilder- Returns:
- Whether the modelServerInfo field is set.
-
getModelServerInfo
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getModelServerInfoin interfaceProfileOrBuilder- Returns:
- The modelServerInfo.
-
setModelServerInfo
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setModelServerInfo
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeModelServerInfo
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearModelServerInfo
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getModelServerInfoBuilder
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getModelServerInfoOrBuilder
Output only. The model server configuration. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getModelServerInfoOrBuilderin interfaceProfileOrBuilder
-
getAcceleratorType
Output only. The accelerator type. Expected format: `nvidia-h100-80gb`.
string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAcceleratorTypein interfaceProfileOrBuilder- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public com.google.protobuf.ByteString getAcceleratorTypeBytes()Output only. The accelerator type. Expected format: `nvidia-h100-80gb`.
string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAcceleratorTypeBytesin interfaceProfileOrBuilder- Returns:
- The bytes for acceleratorType.
-
setAcceleratorType
Output only. The accelerator type. Expected format: `nvidia-h100-80gb`.
string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The acceleratorType to set.- Returns:
- This builder for chaining.
-
clearAcceleratorType
Output only. The accelerator type. Expected format: `nvidia-h100-80gb`.
string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAcceleratorTypeBytes
Output only. The accelerator type. Expected format: `nvidia-h100-80gb`.
string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for acceleratorType to set.- Returns:
- This builder for chaining.
-
getTpuTopology
Output only. The TPU topology (if applicable).
string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTpuTopologyin interfaceProfileOrBuilder- Returns:
- The tpuTopology.
-
getTpuTopologyBytes
public com.google.protobuf.ByteString getTpuTopologyBytes()Output only. The TPU topology (if applicable).
string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTpuTopologyBytesin interfaceProfileOrBuilder- Returns:
- The bytes for tpuTopology.
-
setTpuTopology
Output only. The TPU topology (if applicable).
string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The tpuTopology to set.- Returns:
- This builder for chaining.
-
clearTpuTopology
Output only. The TPU topology (if applicable).
string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTpuTopologyBytes
Output only. The TPU topology (if applicable).
string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for tpuTopology to set.- Returns:
- This builder for chaining.
-
getInstanceType
Output only. The instance type. Expected format: `a2-highgpu-1g`.
string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceTypein interfaceProfileOrBuilder- Returns:
- The instanceType.
-
getInstanceTypeBytes
public com.google.protobuf.ByteString getInstanceTypeBytes()Output only. The instance type. Expected format: `a2-highgpu-1g`.
string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstanceTypeBytesin interfaceProfileOrBuilder- Returns:
- The bytes for instanceType.
-
setInstanceType
Output only. The instance type. Expected format: `a2-highgpu-1g`.
string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The instanceType to set.- Returns:
- This builder for chaining.
-
clearInstanceType
Output only. The instance type. Expected format: `a2-highgpu-1g`.
string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setInstanceTypeBytes
Output only. The instance type. Expected format: `a2-highgpu-1g`.
string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for instanceType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasResourcesUsedin interfaceProfileOrBuilder- Returns:
- Whether the resourcesUsed field is set.
-
getResourcesUsed
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getResourcesUsedin interfaceProfileOrBuilder- Returns:
- The resourcesUsed.
-
setResourcesUsed
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setResourcesUsed
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeResourcesUsed
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearResourcesUsed
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getResourcesUsedBuilder
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getResourcesUsedOrBuilder
Output only. The resources used by the model deployment.
.google.cloud.gkerecommender.v1.ResourcesUsed resources_used = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getResourcesUsedOrBuilderin interfaceProfileOrBuilder
-
getPerformanceStatsList
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPerformanceStatsListin interfaceProfileOrBuilder
-
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];- Specified by:
getPerformanceStatsCountin interfaceProfileOrBuilder
-
getPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPerformanceStatsin interfaceProfileOrBuilder
-
setPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removePerformanceStats
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPerformanceStatsBuilder
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPerformanceStatsOrBuilder
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPerformanceStatsOrBuilderin interfaceProfileOrBuilder
-
getPerformanceStatsOrBuilderList
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPerformanceStatsOrBuilderListin interfaceProfileOrBuilder
-
addPerformanceStatsBuilder
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addPerformanceStatsBuilder
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPerformanceStatsBuilderList
Output only. The performance statistics for this profile.
repeated .google.cloud.gkerecommender.v1.PerformanceStats performance_stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-