Class CreateCorpusRequest (0.10.0)

public final class CreateCorpusRequest extends GeneratedMessageV3 implements CreateCorpusRequestOrBuilder

Request message of CreateCorpus API.

Protobuf type google.cloud.visionai.v1.CreateCorpusRequest

Static Fields

CORPUS_FIELD_NUMBER

public static final int CORPUS_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateCorpusRequest getDefaultInstance()
Returns
Type Description
CreateCorpusRequest

getDescriptor()

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

newBuilder()

public static CreateCorpusRequest.Builder newBuilder()
Returns
Type Description
CreateCorpusRequest.Builder

newBuilder(CreateCorpusRequest prototype)

public static CreateCorpusRequest.Builder newBuilder(CreateCorpusRequest prototype)
Parameter
Name Description
prototype CreateCorpusRequest
Returns
Type Description
CreateCorpusRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateCorpusRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCorpusRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateCorpusRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateCorpusRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateCorpusRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateCorpusRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateCorpusRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCorpusRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateCorpusRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateCorpusRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateCorpusRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateCorpusRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateCorpusRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateCorpusRequest> parser()
Returns
Type Description
Parser<CreateCorpusRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

getParserForType()

public Parser<CreateCorpusRequest> getParserForType()
Returns
Type Description
Parser<CreateCorpusRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateCorpusRequest.Builder newBuilderForType()
Returns
Type Description
CreateCorpusRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateCorpusRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateCorpusRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateCorpusRequest.Builder toBuilder()
Returns
Type Description
CreateCorpusRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException