public static final class UpdateDocumentRequest.Builder extends GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder> implements UpdateDocumentRequestOrBuilder
Request message for
DocumentService.UpdateDocument
method.
Protobuf type google.cloud.discoveryengine.v1beta.UpdateDocumentRequest
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 UpdateDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateDocumentRequest build()
Returns
buildPartial()
public UpdateDocumentRequest buildPartial()
Returns
clear()
public UpdateDocumentRequest.Builder clear()
Returns
Overrides
clearAllowMissing()
public UpdateDocumentRequest.Builder clearAllowMissing()
If set to true, and the
Document is not found, a
new Document will be
created.
bool allow_missing = 2;
Returns
clearDocument()
public UpdateDocumentRequest.Builder clearDocument()
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public UpdateDocumentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public UpdateDocumentRequest.Builder clone()
Returns
Overrides
getAllowMissing()
public boolean getAllowMissing()
If set to true, and the
Document is not found, a
new Document will be
created.
bool allow_missing = 2;
Returns
Type | Description |
boolean | The allowMissing.
|
getDefaultInstanceForType()
public UpdateDocumentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDocument()
public Document getDocument()
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDocumentBuilder()
public Document.Builder getDocumentBuilder()
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
hasDocument()
public boolean hasDocument()
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the document field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeDocument(Document value)
public UpdateDocumentRequest.Builder mergeDocument(Document value)
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(UpdateDocumentRequest other)
public UpdateDocumentRequest.Builder mergeFrom(UpdateDocumentRequest other)
Parameter
Returns
public UpdateDocumentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateDocumentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDocumentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAllowMissing(boolean value)
public UpdateDocumentRequest.Builder setAllowMissing(boolean value)
If set to true, and the
Document is not found, a
new Document will be
created.
bool allow_missing = 2;
Parameter
Name | Description |
value | boolean
The allowMissing to set.
|
Returns
setDocument(Document value)
public UpdateDocumentRequest.Builder setDocument(Document value)
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setDocument(Document.Builder builderForValue)
public UpdateDocumentRequest.Builder setDocument(Document.Builder builderForValue)
Required. The document to update/create.
If the caller does not have permission to update the
Document, regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to update
does not exist and
allow_missing
is not set, a NOT_FOUND error is returned.
.google.cloud.discoveryengine.v1beta.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateDocumentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateDocumentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDocumentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides