Class CreateCorpusRequest.Builder (0.12.0)

public static final class CreateCorpusRequest.Builder extends GeneratedMessageV3.Builder<CreateCorpusRequest.Builder> implements CreateCorpusRequestOrBuilder

Request message of CreateCorpus API.

Protobuf type google.cloud.visionai.v1.CreateCorpusRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCorpusRequest build()
Returns
Type Description
CreateCorpusRequest

buildPartial()

public CreateCorpusRequest buildPartial()
Returns
Type Description
CreateCorpusRequest

clear()

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

clearCorpus()

public CreateCorpusRequest.Builder clearCorpus()

Required. The corpus to be created.

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

Returns
Type Description
CreateCorpusRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCorpusRequest.Builder clearParent()

Required. Form: projects/{project_number}/locations/{location_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateCorpusRequest.Builder

This builder for chaining.

clone()

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

getCorpus()

public Corpus getCorpus()

Required. The corpus to be created.

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

Returns
Type Description
Corpus

The corpus.

getCorpusBuilder()

public Corpus.Builder getCorpusBuilder()

Required. The corpus to be created.

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

Returns
Type Description
Corpus.Builder

getCorpusOrBuilder()

public CorpusOrBuilder getCorpusOrBuilder()

Required. The corpus to be created.

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

Returns
Type Description
CorpusOrBuilder

getDefaultInstanceForType()

public CreateCorpusRequest getDefaultInstanceForType()
Returns
Type Description
CreateCorpusRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Form: projects/{project_number}/locations/{location_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Form: projects/{project_number}/locations/{location_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

hasCorpus()

public boolean hasCorpus()

Required. The corpus to be created.

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

Returns
Type Description
boolean

Whether the corpus 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 CreateCorpusRequest.Builder mergeCorpus(Corpus value)

Required. The corpus to be created.

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

Parameter
Name Description
value Corpus
Returns
Type Description
CreateCorpusRequest.Builder

mergeFrom(CreateCorpusRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCorpus(Corpus value)

public CreateCorpusRequest.Builder setCorpus(Corpus value)

Required. The corpus to be created.

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

Parameter
Name Description
value Corpus
Returns
Type Description
CreateCorpusRequest.Builder

setCorpus(Corpus.Builder builderForValue)

public CreateCorpusRequest.Builder setCorpus(Corpus.Builder builderForValue)

Required. The corpus to be created.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCorpusRequest.Builder setParent(String value)

Required. Form: projects/{project_number}/locations/{location_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCorpusRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCorpusRequest.Builder setParentBytes(ByteString value)

Required. Form: projects/{project_number}/locations/{location_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCorpusRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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