Send feedback
Class ModelGardenSource.Builder (3.61.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class ModelGardenSource . Builder extends GeneratedMessageV3 . Builder<ModelGardenSource . Builder > implements ModelGardenSourceOrBuilder
Contains information about the source of the models generated from Model
Garden.
Protobuf type google.cloud.aiplatform.v1.ModelGardenSource
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 ModelGardenSource . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public ModelGardenSource build ()
public ModelGardenSource buildPartial ()
public ModelGardenSource . Builder clear ()
Overrides
public ModelGardenSource . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public ModelGardenSource . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public ModelGardenSource . Builder clearPublicModelName ()
Required. The model garden source model resource name.
string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
public ModelGardenSource . Builder clearSkipHfModelCache ()
Optional. Whether to avoid pulling the model from the HF cache.
bool skip_hf_model_cache = 4 [(.google.api.field_behavior) = OPTIONAL];
public ModelGardenSource . Builder clearVersionId ()
Optional. The model garden source model version ID.
string version_id = 3 [(.google.api.field_behavior) = OPTIONAL];
public ModelGardenSource . Builder clone ()
Overrides
public ModelGardenSource getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public String getPublicModelName ()
Required. The model garden source model resource name.
string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The publicModelName.
public ByteString getPublicModelNameBytes ()
Required. The model garden source model resource name.
string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for publicModelName.
public boolean getSkipHfModelCache ()
Optional. Whether to avoid pulling the model from the HF cache.
bool skip_hf_model_cache = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
The skipHfModelCache.
public String getVersionId ()
Optional. The model garden source model version ID.
string version_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The versionId.
public ByteString getVersionIdBytes ()
Optional. The model garden source model version ID.
string version_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for versionId.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public ModelGardenSource . Builder mergeFrom ( ModelGardenSource other )
public ModelGardenSource . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public ModelGardenSource . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final ModelGardenSource . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public ModelGardenSource . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public ModelGardenSource . Builder setPublicModelName ( String value )
Required. The model garden source model resource name.
string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The publicModelName to set.
public ModelGardenSource . Builder setPublicModelNameBytes ( ByteString value )
Required. The model garden source model resource name.
string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for publicModelName to set.
public ModelGardenSource . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public ModelGardenSource . Builder setSkipHfModelCache ( boolean value )
Optional. Whether to avoid pulling the model from the HF cache.
bool skip_hf_model_cache = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
boolean
The skipHfModelCache to set.
public final ModelGardenSource . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public ModelGardenSource . Builder setVersionId ( String value )
Optional. The model garden source model version ID.
string version_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
String
The versionId to set.
public ModelGardenSource . Builder setVersionIdBytes ( ByteString value )
Optional. The model garden source model version ID.
string version_id = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
ByteString
The bytes for versionId to set.
Send feedback
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-03-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[],[]]