public static final class UpdateModelRequest.Builder extends GeneratedMessageV3.Builder<UpdateModelRequest.Builder> implements UpdateModelRequestOrBuilder
Request for updating an existing model.
Protobuf type google.cloud.retail.v2alpha.UpdateModelRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateModelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateModelRequest build()
Returns
buildPartial()
public UpdateModelRequest buildPartial()
Returns
clear()
public UpdateModelRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateModelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearModel()
public UpdateModelRequest.Builder clearModel()
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateModelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUpdateMask()
public UpdateModelRequest.Builder clearUpdateMask()
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
clone()
public UpdateModelRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UpdateModelRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getModel()
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
Model | The model.
|
getModelBuilder()
public Model.Builder getModelBuilder()
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getModelOrBuilder()
public ModelOrBuilder getModelOrBuilder()
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getUpdateMask()
public FieldMask getUpdateMask()
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
hasModel()
public boolean hasModel()
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the model field is set.
|
hasUpdateMask()
public boolean hasUpdateMask()
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the updateMask field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UpdateModelRequest other)
public UpdateModelRequest.Builder mergeFrom(UpdateModelRequest other)
Parameter
Returns
public UpdateModelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateModelRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeModel(Model value)
public UpdateModelRequest.Builder mergeModel(Model value)
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | Model
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateModelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeUpdateMask(FieldMask value)
public UpdateModelRequest.Builder mergeUpdateMask(FieldMask value)
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateModelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setModel(Model value)
public UpdateModelRequest.Builder setModel(Model value)
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | Model
|
Returns
setModel(Model.Builder builderForValue)
public UpdateModelRequest.Builder setModel(Model.Builder builderForValue)
Required. The body of the updated [Model].
.google.cloud.retail.v2alpha.Model model = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateModelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateModelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUpdateMask(FieldMask value)
public UpdateModelRequest.Builder setUpdateMask(FieldMask value)
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateModelRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
Optional. Indicates which fields in the provided 'model' to
update. If not set, will by default update all fields.
.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
builderForValue | Builder
|
Returns