Class UpdateTargetSiteRequest.Builder (0.49.0)

public static final class UpdateTargetSiteRequest.Builder extends GeneratedMessageV3.Builder<UpdateTargetSiteRequest.Builder> implements UpdateTargetSiteRequestOrBuilder

Request message for SiteSearchEngineService.UpdateTargetSite method.

Protobuf type google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateTargetSiteRequest build()
Returns
Type Description
UpdateTargetSiteRequest

buildPartial()

public UpdateTargetSiteRequest buildPartial()
Returns
Type Description
UpdateTargetSiteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetSite()

public UpdateTargetSiteRequest.Builder clearTargetSite()

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateTargetSiteRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateTargetSiteRequest getDefaultInstanceForType()
Returns
Type Description
UpdateTargetSiteRequest

getDescriptorForType()

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

getTargetSite()

public TargetSite getTargetSite()

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetSite

The targetSite.

getTargetSiteBuilder()

public TargetSite.Builder getTargetSiteBuilder()

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetSite.Builder

getTargetSiteOrBuilder()

public TargetSiteOrBuilder getTargetSiteOrBuilder()

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TargetSiteOrBuilder

hasTargetSite()

public boolean hasTargetSite()

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the targetSite field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateTargetSiteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTargetSite(TargetSite value)

public UpdateTargetSiteRequest.Builder mergeTargetSite(TargetSite value)

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TargetSite
Returns
Type Description
UpdateTargetSiteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTargetSite(TargetSite value)

public UpdateTargetSiteRequest.Builder setTargetSite(TargetSite value)

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TargetSite
Returns
Type Description
UpdateTargetSiteRequest.Builder

setTargetSite(TargetSite.Builder builderForValue)

public UpdateTargetSiteRequest.Builder setTargetSite(TargetSite.Builder builderForValue)

Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the TargetSite to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1beta.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TargetSite.Builder
Returns
Type Description
UpdateTargetSiteRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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