Class CreateDataSchemaRequest.Builder (0.12.0)

public static final class CreateDataSchemaRequest.Builder extends GeneratedMessageV3.Builder<CreateDataSchemaRequest.Builder> implements CreateDataSchemaRequestOrBuilder

Request message for CreateDataSchema.

Protobuf type google.cloud.visionai.v1.CreateDataSchemaRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDataSchemaRequest build()
Returns
Type Description
CreateDataSchemaRequest

buildPartial()

public CreateDataSchemaRequest buildPartial()
Returns
Type Description
CreateDataSchemaRequest

clear()

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

clearDataSchema()

public CreateDataSchemaRequest.Builder clearDataSchema()

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataSchemaRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDataSchemaRequest.Builder clearParent()

Required. The parent resource where this data schema will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

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

Returns
Type Description
CreateDataSchemaRequest.Builder

This builder for chaining.

clone()

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

getDataSchema()

public DataSchema getDataSchema()

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSchema

The dataSchema.

getDataSchemaBuilder()

public DataSchema.Builder getDataSchemaBuilder()

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSchema.Builder

getDataSchemaOrBuilder()

public DataSchemaOrBuilder getDataSchemaOrBuilder()

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataSchemaOrBuilder

getDefaultInstanceForType()

public CreateDataSchemaRequest getDefaultInstanceForType()
Returns
Type Description
CreateDataSchemaRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this data schema will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this data schema will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

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

Returns
Type Description
ByteString

The bytes for parent.

hasDataSchema()

public boolean hasDataSchema()

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataSchema field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataSchema(DataSchema value)

public CreateDataSchemaRequest.Builder mergeDataSchema(DataSchema value)

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataSchema
Returns
Type Description
CreateDataSchemaRequest.Builder

mergeFrom(CreateDataSchemaRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataSchema(DataSchema value)

public CreateDataSchemaRequest.Builder setDataSchema(DataSchema value)

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataSchema
Returns
Type Description
CreateDataSchemaRequest.Builder

setDataSchema(DataSchema.Builder builderForValue)

public CreateDataSchemaRequest.Builder setDataSchema(DataSchema.Builder builderForValue)

Required. The data schema to create.

.google.cloud.visionai.v1.DataSchema data_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataSchema.Builder
Returns
Type Description
CreateDataSchemaRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDataSchemaRequest.Builder setParent(String value)

Required. The parent resource where this data schema will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDataSchemaRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataSchemaRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this data schema will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDataSchemaRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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