Class CreateMetadataSchemaRequest.Builder (3.56.0)

public static final class CreateMetadataSchemaRequest.Builder extends GeneratedMessageV3.Builder<CreateMetadataSchemaRequest.Builder> implements CreateMetadataSchemaRequestOrBuilder

Request message for MetadataService.CreateMetadataSchema.

Protobuf type google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMetadataSchemaRequest build()
Returns
Type Description
CreateMetadataSchemaRequest

buildPartial()

public CreateMetadataSchemaRequest buildPartial()
Returns
Type Description
CreateMetadataSchemaRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetadataSchema()

public CreateMetadataSchemaRequest.Builder clearMetadataSchema()

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMetadataSchemaRequest.Builder

clearMetadataSchemaId()

public CreateMetadataSchemaRequest.Builder clearMetadataSchemaId()

The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)

string metadata_schema_id = 3;

Returns
Type Description
CreateMetadataSchemaRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMetadataSchemaRequest.Builder clearParent()

Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

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

Returns
Type Description
CreateMetadataSchemaRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMetadataSchemaRequest getDefaultInstanceForType()
Returns
Type Description
CreateMetadataSchemaRequest

getDescriptorForType()

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

getMetadataSchema()

public MetadataSchema getMetadataSchema()

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MetadataSchema

The metadataSchema.

getMetadataSchemaBuilder()

public MetadataSchema.Builder getMetadataSchemaBuilder()

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MetadataSchema.Builder

getMetadataSchemaId()

public String getMetadataSchemaId()

The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)

string metadata_schema_id = 3;

Returns
Type Description
String

The metadataSchemaId.

getMetadataSchemaIdBytes()

public ByteString getMetadataSchemaIdBytes()

The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)

string metadata_schema_id = 3;

Returns
Type Description
ByteString

The bytes for metadataSchemaId.

getMetadataSchemaOrBuilder()

public MetadataSchemaOrBuilder getMetadataSchemaOrBuilder()

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MetadataSchemaOrBuilder

getParent()

public String getParent()

Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

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

Returns
Type Description
ByteString

The bytes for parent.

hasMetadataSchema()

public boolean hasMetadataSchema()

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the metadataSchema field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMetadataSchemaRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetadataSchema(MetadataSchema value)

public CreateMetadataSchemaRequest.Builder mergeMetadataSchema(MetadataSchema value)

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MetadataSchema
Returns
Type Description
CreateMetadataSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadataSchema(MetadataSchema value)

public CreateMetadataSchemaRequest.Builder setMetadataSchema(MetadataSchema value)

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MetadataSchema
Returns
Type Description
CreateMetadataSchemaRequest.Builder

setMetadataSchema(MetadataSchema.Builder builderForValue)

public CreateMetadataSchemaRequest.Builder setMetadataSchema(MetadataSchema.Builder builderForValue)

Required. The MetadataSchema to create.

.google.cloud.aiplatform.v1beta1.MetadataSchema metadata_schema = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MetadataSchema.Builder
Returns
Type Description
CreateMetadataSchemaRequest.Builder

setMetadataSchemaId(String value)

public CreateMetadataSchemaRequest.Builder setMetadataSchemaId(String value)

The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)

string metadata_schema_id = 3;

Parameter
Name Description
value String

The metadataSchemaId to set.

Returns
Type Description
CreateMetadataSchemaRequest.Builder

This builder for chaining.

setMetadataSchemaIdBytes(ByteString value)

public CreateMetadataSchemaRequest.Builder setMetadataSchemaIdBytes(ByteString value)

The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)

string metadata_schema_id = 3;

Parameter
Name Description
value ByteString

The bytes for metadataSchemaId to set.

Returns
Type Description
CreateMetadataSchemaRequest.Builder

This builder for chaining.

setParent(String value)

public CreateMetadataSchemaRequest.Builder setParent(String value)

Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMetadataSchemaRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMetadataSchemaRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

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
CreateMetadataSchemaRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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