Class CreateMetadataSchemaRequest.Builder (3.11.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateMetadataSchemaRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides

build()

public CreateMetadataSchemaRequest build()
Returns
TypeDescription
CreateMetadataSchemaRequest

buildPartial()

public CreateMetadataSchemaRequest buildPartial()
Returns
TypeDescription
CreateMetadataSchemaRequest

clear()

public CreateMetadataSchemaRequest.Builder clear()
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateMetadataSchemaRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateMetadataSchemaRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateMetadataSchemaRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateMetadataSchemaRequest.Builder

This builder for chaining.

clone()

public CreateMetadataSchemaRequest.Builder clone()
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateMetadataSchemaRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateMetadataSchemaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the metadataSchema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateMetadataSchemaRequest other)

public CreateMetadataSchemaRequest.Builder mergeFrom(CreateMetadataSchemaRequest other)
Parameter
NameDescription
otherCreateMetadataSchemaRequest
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateMetadataSchemaRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateMetadataSchemaRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMetadataSchema
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateMetadataSchemaRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateMetadataSchemaRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMetadataSchema
Returns
TypeDescription
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
NameDescription
builderForValueMetadataSchema.Builder
Returns
TypeDescription
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
NameDescription
valueString

The metadataSchemaId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metadataSchemaId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateMetadataSchemaRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateMetadataSchemaRequest.Builder
Overrides