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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 CreateCorpusRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateCorpusRequest build()
buildPartial()
public CreateCorpusRequest buildPartial()
clear()
public CreateCorpusRequest.Builder clear()
Overrides
clearCorpus()
public CreateCorpusRequest.Builder clearCorpus()
Required. The corpus to be created.
.google.cloud.visionai.v1.Corpus corpus = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateCorpusRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCorpusRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public CreateCorpusRequest.Builder clearParent()
Required. Form: projects/{project_number}/locations/{location_id}
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateCorpusRequest.Builder clone()
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];
getCorpusOrBuilder()
public CorpusOrBuilder getCorpusOrBuilder()
Required. The corpus to be created.
.google.cloud.visionai.v1.Corpus corpus = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateCorpusRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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
|
mergeFrom(CreateCorpusRequest other)
public CreateCorpusRequest.Builder mergeFrom(CreateCorpusRequest other)
public CreateCorpusRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateCorpusRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCorpusRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCorpusRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCorpusRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCorpusRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides