Class UpdateSchemaRequest.Builder (0.48.0)

public static final class UpdateSchemaRequest.Builder extends GeneratedMessageV3.Builder<UpdateSchemaRequest.Builder> implements UpdateSchemaRequestOrBuilder

Request message for SchemaService.UpdateSchema method.

Protobuf type google.cloud.discoveryengine.v1alpha.UpdateSchemaRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSchemaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

build()

public UpdateSchemaRequest build()
Returns
Type Description
UpdateSchemaRequest

buildPartial()

public UpdateSchemaRequest buildPartial()
Returns
Type Description
UpdateSchemaRequest

clear()

public UpdateSchemaRequest.Builder clear()
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

clearAllowMissing()

public UpdateSchemaRequest.Builder clearAllowMissing()

If set to true, and the Schema is not found, a new Schema is created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Returns
Type Description
UpdateSchemaRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UpdateSchemaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSchemaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

clearSchema()

public UpdateSchemaRequest.Builder clearSchema()

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSchemaRequest.Builder

clone()

public UpdateSchemaRequest.Builder clone()
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

getAllowMissing()

public boolean getAllowMissing()

If set to true, and the Schema is not found, a new Schema is created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateSchemaRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSchemaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSchema()

public Schema getSchema()

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Schema

The schema.

getSchemaBuilder()

public Schema.Builder getSchemaBuilder()

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SchemaOrBuilder

hasSchema()

public boolean hasSchema()

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the schema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSchemaRequest other)

public UpdateSchemaRequest.Builder mergeFrom(UpdateSchemaRequest other)
Parameter
Name Description
other UpdateSchemaRequest
Returns
Type Description
UpdateSchemaRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSchemaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateSchemaRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

mergeSchema(Schema value)

public UpdateSchemaRequest.Builder mergeSchema(Schema value)

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Schema
Returns
Type Description
UpdateSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

setAllowMissing(boolean value)

public UpdateSchemaRequest.Builder setAllowMissing(boolean value)

If set to true, and the Schema is not found, a new Schema is created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateSchemaRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSchemaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateSchemaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides

setSchema(Schema value)

public UpdateSchemaRequest.Builder setSchema(Schema value)

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Schema
Returns
Type Description
UpdateSchemaRequest.Builder

setSchema(Schema.Builder builderForValue)

public UpdateSchemaRequest.Builder setSchema(Schema.Builder builderForValue)

Required. The Schema to update.

.google.cloud.discoveryengine.v1alpha.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Schema.Builder
Returns
Type Description
UpdateSchemaRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateSchemaRequest.Builder
Overrides