Class Schema.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
com.google.cloud.discoveryengine.v1beta.Schema.Builder
- All Implemented Interfaces:
SchemaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Schema
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.v1beta.Schema-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The JSON representation of the schema.Immutable.The structured representation of the schema.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe JSON representation of the schema.com.google.protobuf.ByteStringThe JSON representation of the schema.getName()Immutable.com.google.protobuf.ByteStringImmutable.com.google.protobuf.StructThe structured representation of the schema.com.google.protobuf.Struct.BuilderThe structured representation of the schema.com.google.protobuf.StructOrBuilderThe structured representation of the schema.booleanThe JSON representation of the schema.booleanThe structured representation of the schema.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStructSchema(com.google.protobuf.Struct value) The structured representation of the schema.setJsonSchema(String value) The JSON representation of the schema.setJsonSchemaBytes(com.google.protobuf.ByteString value) The JSON representation of the schema.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setStructSchema(com.google.protobuf.Struct value) The structured representation of the schema.setStructSchema(com.google.protobuf.Struct.Builder builderForValue) The structured representation of the schema.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
-
mergeFrom
public Schema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Schema.Builder>- Throws:
IOException
-
getSchemaCase
- Specified by:
getSchemaCasein interfaceSchemaOrBuilder
-
clearSchema
-
hasStructSchema
public boolean hasStructSchema()The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;- Specified by:
hasStructSchemain interfaceSchemaOrBuilder- Returns:
- Whether the structSchema field is set.
-
getStructSchema
public com.google.protobuf.Struct getStructSchema()The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;- Specified by:
getStructSchemain interfaceSchemaOrBuilder- Returns:
- The structSchema.
-
setStructSchema
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2; -
setStructSchema
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2; -
mergeStructSchema
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2; -
clearStructSchema
The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2; -
getStructSchemaBuilder
public com.google.protobuf.Struct.Builder getStructSchemaBuilder()The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2; -
getStructSchemaOrBuilder
public com.google.protobuf.StructOrBuilder getStructSchemaOrBuilder()The structured representation of the schema.
.google.protobuf.Struct struct_schema = 2;- Specified by:
getStructSchemaOrBuilderin interfaceSchemaOrBuilder
-
hasJsonSchema
public boolean hasJsonSchema()The JSON representation of the schema.
string json_schema = 3;- Specified by:
hasJsonSchemain interfaceSchemaOrBuilder- Returns:
- Whether the jsonSchema field is set.
-
getJsonSchema
The JSON representation of the schema.
string json_schema = 3;- Specified by:
getJsonSchemain interfaceSchemaOrBuilder- Returns:
- The jsonSchema.
-
getJsonSchemaBytes
public com.google.protobuf.ByteString getJsonSchemaBytes()The JSON representation of the schema.
string json_schema = 3;- Specified by:
getJsonSchemaBytesin interfaceSchemaOrBuilder- Returns:
- The bytes for jsonSchema.
-
setJsonSchema
The JSON representation of the schema.
string json_schema = 3;- Parameters:
value- The jsonSchema to set.- Returns:
- This builder for chaining.
-
clearJsonSchema
The JSON representation of the schema.
string json_schema = 3;- Returns:
- This builder for chaining.
-
setJsonSchemaBytes
The JSON representation of the schema.
string json_schema = 3;- Parameters:
value- The bytes for jsonSchema to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getNamein interfaceSchemaOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceSchemaOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-