Class UpdateTargetSiteRequest.Builder (0.32.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.v1alpha.UpdateTargetSiteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateTargetSiteRequest build()
Returns
TypeDescription
UpdateTargetSiteRequest

buildPartial()

public UpdateTargetSiteRequest buildPartial()
Returns
TypeDescription
UpdateTargetSiteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateTargetSiteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateTargetSiteRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateTargetSiteRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateTargetSiteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the targetSite field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateTargetSiteRequest other)

public UpdateTargetSiteRequest.Builder mergeFrom(UpdateTargetSiteRequest other)
Parameter
NameDescription
otherUpdateTargetSiteRequest
Returns
TypeDescription
UpdateTargetSiteRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateTargetSiteRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTargetSite
Returns
TypeDescription
UpdateTargetSiteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateTargetSiteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateTargetSiteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateTargetSiteRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTargetSite
Returns
TypeDescription
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.v1alpha.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTargetSite.Builder
Returns
TypeDescription
UpdateTargetSiteRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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