Class RecommendSpecResponse.Recommendation.Builder (3.74.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public static final class RecommendSpecResponse . Recommendation . Builder extends GeneratedMessageV3 . Builder<RecommendSpecResponse . Recommendation . Builder > implements RecommendSpecResponse . RecommendationOrBuilder
Recommendation of one deployment option for the given custom weights model
in one region.
Contains the machine and container spec, and user accelerator quota state.
Protobuf type google.cloud.aiplatform.v1beta1.RecommendSpecResponse.Recommendation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public RecommendSpecResponse . Recommendation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public RecommendSpecResponse . Recommendation build ()
public RecommendSpecResponse . Recommendation buildPartial ()
public RecommendSpecResponse . Recommendation . Builder clear ()
Overrides
public RecommendSpecResponse . Recommendation . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public RecommendSpecResponse . Recommendation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public RecommendSpecResponse . Recommendation . Builder clearRegion ()
The region for the deployment spec (machine).
string region = 1;
public RecommendSpecResponse . Recommendation . Builder clearSpec ()
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . Recommendation . Builder clearUserQuotaState ()
Output only. The user accelerator quota state.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.Recommendation.QuotaState user_quota_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . Recommendation . Builder clone ()
Overrides
public RecommendSpecResponse . Recommendation getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public String getRegion ()
The region for the deployment spec (machine).
string region = 1;
Returns
Type
Description
String
The region.
public ByteString getRegionBytes ()
The region for the deployment spec (machine).
string region = 1;
Returns
Type
Description
ByteString
The bytes for region.
public RecommendSpecResponse . MachineAndModelContainerSpec getSpec ()
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . MachineAndModelContainerSpec . Builder getSpecBuilder ()
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . MachineAndModelContainerSpecOrBuilder getSpecOrBuilder ()
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . Recommendation . QuotaState getUserQuotaState ()
Output only. The user accelerator quota state.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.Recommendation.QuotaState user_quota_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getUserQuotaStateValue ()
Output only. The user accelerator quota state.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.Recommendation.QuotaState user_quota_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
The enum numeric value on the wire for userQuotaState.
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
Whether the spec field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public RecommendSpecResponse . Recommendation . Builder mergeFrom ( RecommendSpecResponse . Recommendation other )
public RecommendSpecResponse . Recommendation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public RecommendSpecResponse . Recommendation . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public RecommendSpecResponse . Recommendation . Builder mergeSpec ( RecommendSpecResponse . MachineAndModelContainerSpec value )
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final RecommendSpecResponse . Recommendation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public RecommendSpecResponse . Recommendation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public RecommendSpecResponse . Recommendation . Builder setRegion ( String value )
The region for the deployment spec (machine).
string region = 1;
Parameter
Name
Description
value
String
The region to set.
public RecommendSpecResponse . Recommendation . Builder setRegionBytes ( ByteString value )
The region for the deployment spec (machine).
string region = 1;
Parameter
Name
Description
value
ByteString
The bytes for region to set.
public RecommendSpecResponse . Recommendation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public RecommendSpecResponse . Recommendation . Builder setSpec ( RecommendSpecResponse . MachineAndModelContainerSpec value )
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . Recommendation . Builder setSpec ( RecommendSpecResponse . MachineAndModelContainerSpec . Builder builderForValue )
Output only. The machine and model container specs.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.MachineAndModelContainerSpec spec = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final RecommendSpecResponse . Recommendation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public RecommendSpecResponse . Recommendation . Builder setUserQuotaState ( RecommendSpecResponse . Recommendation . QuotaState value )
Output only. The user accelerator quota state.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.Recommendation.QuotaState user_quota_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public RecommendSpecResponse . Recommendation . Builder setUserQuotaStateValue ( int value )
Output only. The user accelerator quota state.
.google.cloud.aiplatform.v1beta1.RecommendSpecResponse.Recommendation.QuotaState user_quota_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
int
The enum numeric value on the wire for userQuotaState to set.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,[]]