public static final class Schema.Builder extends com.google.protobuf.GeneratedMessage.Builder<Schema.Builder> implements SchemaOrBuilder
Defines the structure and layout of a type of document data.Protobuf type
google.cloud.discoveryengine.v1.Schema| Modifier and Type | Method and Description |
|---|---|
Schema |
build() |
Schema |
buildPartial() |
Schema.Builder |
clear() |
Schema.Builder |
clearJsonSchema()
The JSON representation of the schema.
|
Schema.Builder |
clearName()
Immutable.
|
Schema.Builder |
clearSchema() |
Schema.Builder |
clearStructSchema()
The structured representation of the schema.
|
Schema |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getJsonSchema()
The JSON representation of the schema.
|
com.google.protobuf.ByteString |
getJsonSchemaBytes()
The JSON representation of the schema.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
Schema.SchemaCase |
getSchemaCase() |
com.google.protobuf.Struct |
getStructSchema()
The structured representation of the schema.
|
com.google.protobuf.Struct.Builder |
getStructSchemaBuilder()
The structured representation of the schema.
|
com.google.protobuf.StructOrBuilder |
getStructSchemaOrBuilder()
The structured representation of the schema.
|
boolean |
hasJsonSchema()
The JSON representation of the schema.
|
boolean |
hasStructSchema()
The structured representation of the schema.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Schema.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Schema.Builder |
mergeFrom(com.google.protobuf.Message other) |
Schema.Builder |
mergeFrom(Schema other) |
Schema.Builder |
mergeStructSchema(com.google.protobuf.Struct value)
The structured representation of the schema.
|
Schema.Builder |
setJsonSchema(String value)
The JSON representation of the schema.
|
Schema.Builder |
setJsonSchemaBytes(com.google.protobuf.ByteString value)
The JSON representation of the schema.
|
Schema.Builder |
setName(String value)
Immutable.
|
Schema.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Immutable.
|
Schema.Builder |
setStructSchema(com.google.protobuf.Struct.Builder builderForValue)
The structured representation of the schema.
|
Schema.Builder |
setStructSchema(com.google.protobuf.Struct value)
The structured representation of the schema.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>public Schema.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>public Schema getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Schema build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Schema buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Schema.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>public Schema.Builder mergeFrom(Schema other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>public Schema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>IOExceptionpublic Schema.SchemaCase getSchemaCase()
getSchemaCase in interface SchemaOrBuilderpublic Schema.Builder clearSchema()
public boolean hasStructSchema()
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;hasStructSchema in interface SchemaOrBuilderpublic com.google.protobuf.Struct getStructSchema()
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;getStructSchema in interface SchemaOrBuilderpublic Schema.Builder setStructSchema(com.google.protobuf.Struct value)
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;public Schema.Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValue)
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;public Schema.Builder mergeStructSchema(com.google.protobuf.Struct value)
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;public Schema.Builder clearStructSchema()
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;public com.google.protobuf.Struct.Builder getStructSchemaBuilder()
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder()
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;getStructSchemaOrBuilder in interface SchemaOrBuilderpublic boolean hasJsonSchema()
The JSON representation of the schema.
string json_schema = 3;hasJsonSchema in interface SchemaOrBuilderpublic String getJsonSchema()
The JSON representation of the schema.
string json_schema = 3;getJsonSchema in interface SchemaOrBuilderpublic com.google.protobuf.ByteString getJsonSchemaBytes()
The JSON representation of the schema.
string json_schema = 3;getJsonSchemaBytes in interface SchemaOrBuilderpublic Schema.Builder setJsonSchema(String value)
The JSON representation of the schema.
string json_schema = 3;value - The jsonSchema to set.public Schema.Builder clearJsonSchema()
The JSON representation of the schema.
string json_schema = 3;public Schema.Builder setJsonSchemaBytes(com.google.protobuf.ByteString value)
The JSON representation of the schema.
string json_schema = 3;value - The bytes for jsonSchema to set.public String getName()
Immutable. The full resource name of the schema, in the format of
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface SchemaOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. The full resource name of the schema, in the format of
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface SchemaOrBuilderpublic Schema.Builder setName(String value)
Immutable. The full resource name of the schema, in the format of
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The name to set.public Schema.Builder clearName()
Immutable. The full resource name of the schema, in the format of
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];public Schema.Builder setNameBytes(com.google.protobuf.ByteString value)
Immutable. The full resource name of the schema, in the format of
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for name to set.Copyright © 2026 Google LLC. All rights reserved.