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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
    • clear

      public Profile.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Profile.Builder>
    • getDefaultInstanceForType

      public Profile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Profile build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Profile buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Profile.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Profile.Builder>
    • mergeFrom

      public Profile.Builder mergeFrom(Profile other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasModelServerInfo in interface ProfileOrBuilder
      Returns:
      Whether the modelServerInfo field is set.
    • getModelServerInfo

      public ModelServerInfo 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:
      getModelServerInfo in interface ProfileOrBuilder
      Returns:
      The modelServerInfo.
    • setModelServerInfo

      public Profile.Builder setModelServerInfo(ModelServerInfo value)
       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

      public Profile.Builder setModelServerInfo(ModelServerInfo.Builder builderForValue)
       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

      public Profile.Builder mergeModelServerInfo(ModelServerInfo value)
       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

      public Profile.Builder 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

      public ModelServerInfo.Builder 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

      public ModelServerInfoOrBuilder 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:
      getModelServerInfoOrBuilder in interface ProfileOrBuilder
    • getAcceleratorType

      public String getAcceleratorType()
       Output only. The accelerator type. Expected format: `nvidia-h100-80gb`.
       
      string accelerator_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAcceleratorType in interface ProfileOrBuilder
      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:
      getAcceleratorTypeBytes in interface ProfileOrBuilder
      Returns:
      The bytes for acceleratorType.
    • setAcceleratorType

      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];
      Parameters:
      value - The acceleratorType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setAcceleratorTypeBytes

      public Profile.Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value)
       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

      public String getTpuTopology()
       Output only. The TPU topology (if applicable).
       
      string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTpuTopology in interface ProfileOrBuilder
      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:
      getTpuTopologyBytes in interface ProfileOrBuilder
      Returns:
      The bytes for tpuTopology.
    • setTpuTopology

      public Profile.Builder setTpuTopology(String value)
       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

      public Profile.Builder clearTpuTopology()
       Output only. The TPU topology (if applicable).
       
      string tpu_topology = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTpuTopologyBytes

      public Profile.Builder setTpuTopologyBytes(com.google.protobuf.ByteString value)
       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

      public String getInstanceType()
       Output only. The instance type. Expected format: `a2-highgpu-1g`.
       
      string instance_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstanceType in interface ProfileOrBuilder
      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:
      getInstanceTypeBytes in interface ProfileOrBuilder
      Returns:
      The bytes for instanceType.
    • setInstanceType

      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];
      Parameters:
      value - The instanceType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setInstanceTypeBytes

      public Profile.Builder setInstanceTypeBytes(com.google.protobuf.ByteString value)
       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:
      hasResourcesUsed in interface ProfileOrBuilder
      Returns:
      Whether the resourcesUsed field is set.
    • 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];
      Specified by:
      getResourcesUsed in interface ProfileOrBuilder
      Returns:
      The resourcesUsed.
    • setResourcesUsed

      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];
    • setResourcesUsed

      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];
    • mergeResourcesUsed

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getResourcesUsedOrBuilder in interface ProfileOrBuilder
    • 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];
      Specified by:
      getPerformanceStatsList in interface ProfileOrBuilder
    • 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:
      getPerformanceStatsCount in interface ProfileOrBuilder
    • getPerformanceStats

      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];
      Specified by:
      getPerformanceStats in interface ProfileOrBuilder
    • setPerformanceStats

      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];
    • setPerformanceStats

      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];
    • addPerformanceStats

      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];
    • addPerformanceStats

      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];
    • addPerformanceStats

      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];
    • addPerformanceStats

      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];
    • addAllPerformanceStats

      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];
    • 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];
    • removePerformanceStats

      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];
    • getPerformanceStatsBuilder

      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];
    • getPerformanceStatsOrBuilder

      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];
      Specified by:
      getPerformanceStatsOrBuilder in interface ProfileOrBuilder
    • 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];
      Specified by:
      getPerformanceStatsOrBuilderList in interface ProfileOrBuilder
    • 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];
    • addPerformanceStatsBuilder

      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];
    • 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];