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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateDocumentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateDocumentRequest build()
buildPartial()
public UpdateDocumentRequest buildPartial()
clear()
public UpdateDocumentRequest.Builder clear()
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;
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];
clearField(Descriptors.FieldDescriptor field)
public UpdateDocumentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateDocumentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public UpdateDocumentRequest.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
Document | The document.
|
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(UpdateDocumentRequest other)
public UpdateDocumentRequest.Builder mergeFrom(UpdateDocumentRequest other)
public UpdateDocumentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateDocumentRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDocumentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateDocumentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateDocumentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDocumentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides