Class UpdateSchemaRequest.Builder (0.30.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.v1beta.UpdateSchemaRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSchemaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

build()

public UpdateSchemaRequest build()
Returns
TypeDescription
UpdateSchemaRequest

buildPartial()

public UpdateSchemaRequest buildPartial()
Returns
TypeDescription
UpdateSchemaRequest

clear()

public UpdateSchemaRequest.Builder clear()
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

clearAllowMissing()

public UpdateSchemaRequest.Builder clearAllowMissing()

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

bool allow_missing = 3;

Returns
TypeDescription
UpdateSchemaRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UpdateSchemaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSchemaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

clearSchema()

public UpdateSchemaRequest.Builder clearSchema()

Required. The Schema to update.

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

Returns
TypeDescription
UpdateSchemaRequest.Builder

clone()

public UpdateSchemaRequest.Builder clone()
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

getAllowMissing()

public boolean getAllowMissing()

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

bool allow_missing = 3;

Returns
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateSchemaRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSchemaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSchema()

public Schema getSchema()

Required. The Schema to update.

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

Returns
TypeDescription
Schema

The schema.

getSchemaBuilder()

public Schema.Builder getSchemaBuilder()

Required. The Schema to update.

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

Returns
TypeDescription
Schema.Builder

getSchemaOrBuilder()

public SchemaOrBuilder getSchemaOrBuilder()

Required. The Schema to update.

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

Returns
TypeDescription
SchemaOrBuilder

hasSchema()

public boolean hasSchema()

Required. The Schema to update.

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

Returns
TypeDescription
boolean

Whether the schema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSchemaRequest other)

public UpdateSchemaRequest.Builder mergeFrom(UpdateSchemaRequest other)
Parameter
NameDescription
otherUpdateSchemaRequest
Returns
TypeDescription
UpdateSchemaRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSchemaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateSchemaRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

mergeSchema(Schema value)

public UpdateSchemaRequest.Builder mergeSchema(Schema value)

Required. The Schema to update.

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

Parameter
NameDescription
valueSchema
Returns
TypeDescription
UpdateSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 will be created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Parameter
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
UpdateSchemaRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSchemaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

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

public UpdateSchemaRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides

setSchema(Schema value)

public UpdateSchemaRequest.Builder setSchema(Schema value)

Required. The Schema to update.

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

Parameter
NameDescription
valueSchema
Returns
TypeDescription
UpdateSchemaRequest.Builder

setSchema(Schema.Builder builderForValue)

public UpdateSchemaRequest.Builder setSchema(Schema.Builder builderForValue)

Required. The Schema to update.

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

Parameter
NameDescription
builderForValueSchema.Builder
Returns
TypeDescription
UpdateSchemaRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSchemaRequest.Builder
Overrides