Class GetCorpusRequest.Builder (0.12.0)

public static final class GetCorpusRequest.Builder extends GeneratedMessageV3.Builder<GetCorpusRequest.Builder> implements GetCorpusRequestOrBuilder

Request message for GetCorpus.

Protobuf type google.cloud.visionai.v1.GetCorpusRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetCorpusRequest build()
Returns
Type Description
GetCorpusRequest

buildPartial()

public GetCorpusRequest buildPartial()
Returns
Type Description
GetCorpusRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetCorpusRequest.Builder clearName()

Required. The resource name of the corpus to retrieve.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetCorpusRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetCorpusRequest getDefaultInstanceForType()
Returns
Type Description
GetCorpusRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the corpus to retrieve.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the corpus to retrieve.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetCorpusRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetCorpusRequest.Builder setName(String value)

Required. The resource name of the corpus to retrieve.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetCorpusRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetCorpusRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the corpus to retrieve.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetCorpusRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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