public static final class Schema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder> implements SchemaOrBuilder
Defines the structure and layout of a type of document data.Protobuf type
google.cloud.discoveryengine.v1beta.Schema| Modifier and Type | Method and Description |
|---|---|
Schema.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Schema |
build() |
Schema |
buildPartial() |
Schema.Builder |
clear() |
Schema.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Schema.Builder |
clearJsonSchema()
The JSON representation of the schema.
|
Schema.Builder |
clearName()
Immutable.
|
Schema.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Schema.Builder |
clearSchema() |
Schema.Builder |
clearStructSchema()
The structured representation of the schema.
|
Schema.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Schema.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
Schema.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public Schema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public 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.GeneratedMessageV3.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.public final Schema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>public final Schema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Schema.Builder>Copyright © 2025 Google LLC. All rights reserved.