Class UpdateCorpusRequest.Builder (0.5.0)

public static final class UpdateCorpusRequest.Builder extends GeneratedMessageV3.Builder<UpdateCorpusRequest.Builder> implements UpdateCorpusRequestOrBuilder

Request message for UpdateCorpus.

Protobuf type google.cloud.visionai.v1.UpdateCorpusRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCorpusRequest build()
Returns
Type Description
UpdateCorpusRequest

buildPartial()

public UpdateCorpusRequest buildPartial()
Returns
Type Description
UpdateCorpusRequest

clear()

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

clearCorpus()

public UpdateCorpusRequest.Builder clearCorpus()

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCorpusRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateCorpusRequest.Builder clearUpdateMask()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateCorpusRequest.Builder

clone()

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

getCorpus()

public Corpus getCorpus()

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Corpus

The corpus.

getCorpusBuilder()

public Corpus.Builder getCorpusBuilder()

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Corpus.Builder

getCorpusOrBuilder()

public CorpusOrBuilder getCorpusOrBuilder()

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CorpusOrBuilder

getDefaultInstanceForType()

public UpdateCorpusRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCorpusRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasCorpus()

public boolean hasCorpus()

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the corpus field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCorpus(Corpus value)

public UpdateCorpusRequest.Builder mergeCorpus(Corpus value)

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Corpus
Returns
Type Description
UpdateCorpusRequest.Builder

mergeFrom(UpdateCorpusRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateCorpusRequest.Builder mergeUpdateMask(FieldMask value)

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCorpusRequest.Builder

setCorpus(Corpus value)

public UpdateCorpusRequest.Builder setCorpus(Corpus value)

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Corpus
Returns
Type Description
UpdateCorpusRequest.Builder

setCorpus(Corpus.Builder builderForValue)

public UpdateCorpusRequest.Builder setCorpus(Corpus.Builder builderForValue)

Required. The corpus which replaces the resource on the server.

.google.cloud.visionai.v1.Corpus corpus = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Corpus.Builder
Returns
Type Description
UpdateCorpusRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateCorpusRequest.Builder setUpdateMask(FieldMask value)

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCorpusRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCorpusRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCorpusRequest.Builder