public final class UpdateModelRequest extends GeneratedMessageV3 implements UpdateModelRequestOrBuilder
Request message for
ModelService.UpdateModel.
Protobuf type google.cloud.aiplatform.v1.UpdateModelRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int MODEL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static UpdateModelRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static UpdateModelRequest.Builder newBuilder()
public static UpdateModelRequest.Builder newBuilder(UpdateModelRequest prototype)
public static UpdateModelRequest parseDelimitedFrom(InputStream input)
public static UpdateModelRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateModelRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static UpdateModelRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UpdateModelRequest parseFrom(ByteString data)
public static UpdateModelRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateModelRequest parseFrom(CodedInputStream input)
public static UpdateModelRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateModelRequest parseFrom(InputStream input)
public static UpdateModelRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateModelRequest parseFrom(ByteBuffer data)
public static UpdateModelRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<UpdateModelRequest> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public UpdateModelRequest getDefaultInstanceForType()
Required. The Model which replaces the resource on the server.
When Model Versioning is enabled, the model.name will be used to determine
whether to update the model or model version.
- model.name with the @ value, e.g. models/123@1, refers to a version
specific update.
- model.name without the @ value, e.g. models/123, refers to a model
update.
- model.name with @-, e.g. models/123@-, refers to a model update.
- Supported model fields: display_name, description; supported
version-specific fields: version_description. Labels are supported in both
scenarios. Both the model labels and the version labels are merged when a
model is returned. When updating labels, if the request is for
model-specific update, model label gets updated. Otherwise, version labels
get updated.
- A model name or model version name fields update mismatch will cause a
precondition error.
- One request cannot update both the model and the version fields. You
must update them separately.
.google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
Model | The model.
|
public ModelOrBuilder getModelOrBuilder()
Required. The Model which replaces the resource on the server.
When Model Versioning is enabled, the model.name will be used to determine
whether to update the model or model version.
- model.name with the @ value, e.g. models/123@1, refers to a version
specific update.
- model.name without the @ value, e.g. models/123, refers to a model
update.
- model.name with @-, e.g. models/123@-, refers to a model update.
- Supported model fields: display_name, description; supported
version-specific fields: version_description. Labels are supported in both
scenarios. Both the model labels and the version labels are merged when a
model is returned. When updating labels, if the request is for
model-specific update, model label gets updated. Otherwise, version labels
get updated.
- A model name or model version name fields update mismatch will cause a
precondition error.
- One request cannot update both the model and the version fields. You
must update them separately.
.google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
public Parser<UpdateModelRequest> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public FieldMask getUpdateMask()
Required. The update mask applies to the resource.
For the FieldMask
definition, see
google.protobuf.FieldMask.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
FieldMask | The updateMask.
|
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. The update mask applies to the resource.
For the FieldMask
definition, see
google.protobuf.FieldMask.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
public boolean hasModel()
Required. The Model which replaces the resource on the server.
When Model Versioning is enabled, the model.name will be used to determine
whether to update the model or model version.
- model.name with the @ value, e.g. models/123@1, refers to a version
specific update.
- model.name without the @ value, e.g. models/123, refers to a model
update.
- model.name with @-, e.g. models/123@-, refers to a model update.
- Supported model fields: display_name, description; supported
version-specific fields: version_description. Labels are supported in both
scenarios. Both the model labels and the version labels are merged when a
model is returned. When updating labels, if the request is for
model-specific update, model label gets updated. Otherwise, version labels
get updated.
- A model name or model version name fields update mismatch will cause a
precondition error.
- One request cannot update both the model and the version fields. You
must update them separately.
.google.cloud.aiplatform.v1.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the model field is set.
|
public boolean hasUpdateMask()
Required. The update mask applies to the resource.
For the FieldMask
definition, see
google.protobuf.FieldMask.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the updateMask field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public UpdateModelRequest.Builder newBuilderForType()
protected UpdateModelRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public UpdateModelRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides