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.v1alpha.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.v1alpha.Schema
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • clear

      public Schema.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • getDefaultInstanceForType

      public Schema getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Schema build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Schema buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Schema.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>
    • mergeFrom

      public Schema.Builder mergeFrom(Schema other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>
      Throws:
      IOException
    • getSchemaCase

      public Schema.SchemaCase getSchemaCase()
      Specified by:
      getSchemaCase in interface SchemaOrBuilder
    • clearSchema

      public Schema.Builder clearSchema()
    • hasStructSchema

      public boolean hasStructSchema()
       The structured representation of the schema.
       
      .google.protobuf.Struct struct_schema = 2;
      Specified by:
      hasStructSchema in interface SchemaOrBuilder
      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:
      getStructSchema in interface SchemaOrBuilder
      Returns:
      The structSchema.
    • setStructSchema

      public Schema.Builder setStructSchema(com.google.protobuf.Struct value)
       The structured representation of the schema.
       
      .google.protobuf.Struct struct_schema = 2;
    • setStructSchema

      public Schema.Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValue)
       The structured representation of the schema.
       
      .google.protobuf.Struct struct_schema = 2;
    • mergeStructSchema

      public Schema.Builder mergeStructSchema(com.google.protobuf.Struct value)
       The structured representation of the schema.
       
      .google.protobuf.Struct struct_schema = 2;
    • clearStructSchema

      public Schema.Builder 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:
      getStructSchemaOrBuilder in interface SchemaOrBuilder
    • hasJsonSchema

      public boolean hasJsonSchema()
       The JSON representation of the schema.
       
      string json_schema = 3;
      Specified by:
      hasJsonSchema in interface SchemaOrBuilder
      Returns:
      Whether the jsonSchema field is set.
    • getJsonSchema

      public String getJsonSchema()
       The JSON representation of the schema.
       
      string json_schema = 3;
      Specified by:
      getJsonSchema in interface SchemaOrBuilder
      Returns:
      The jsonSchema.
    • getJsonSchemaBytes

      public com.google.protobuf.ByteString getJsonSchemaBytes()
       The JSON representation of the schema.
       
      string json_schema = 3;
      Specified by:
      getJsonSchemaBytes in interface SchemaOrBuilder
      Returns:
      The bytes for jsonSchema.
    • setJsonSchema

      public Schema.Builder setJsonSchema(String value)
       The JSON representation of the schema.
       
      string json_schema = 3;
      Parameters:
      value - The jsonSchema to set.
      Returns:
      This builder for chaining.
    • clearJsonSchema

      public Schema.Builder clearJsonSchema()
       The JSON representation of the schema.
       
      string json_schema = 3;
      Returns:
      This builder for chaining.
    • setJsonSchemaBytes

      public Schema.Builder setJsonSchemaBytes(com.google.protobuf.ByteString value)
       The JSON representation of the schema.
       
      string json_schema = 3;
      Parameters:
      value - The bytes for jsonSchema to set.
      Returns:
      This builder for chaining.
    • getName

      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];
      Specified by:
      getName in interface SchemaOrBuilder
      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:
      getNameBytes in interface SchemaOrBuilder
      Returns:
      The bytes for name.
    • setName

      public 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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      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];
      Returns:
      This builder for chaining.
    • setNameBytes

      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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFieldConfigsList

      public List<FieldConfig> getFieldConfigsList()
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFieldConfigsList in interface SchemaOrBuilder
    • getFieldConfigsCount

      public int getFieldConfigsCount()
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFieldConfigsCount in interface SchemaOrBuilder
    • getFieldConfigs

      public FieldConfig getFieldConfigs(int index)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFieldConfigs in interface SchemaOrBuilder
    • setFieldConfigs

      public Schema.Builder setFieldConfigs(int index, FieldConfig value)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setFieldConfigs

      public Schema.Builder setFieldConfigs(int index, FieldConfig.Builder builderForValue)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFieldConfigs

      public Schema.Builder addFieldConfigs(FieldConfig value)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFieldConfigs

      public Schema.Builder addFieldConfigs(int index, FieldConfig value)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFieldConfigs

      public Schema.Builder addFieldConfigs(FieldConfig.Builder builderForValue)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFieldConfigs

      public Schema.Builder addFieldConfigs(int index, FieldConfig.Builder builderForValue)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllFieldConfigs

      public Schema.Builder addAllFieldConfigs(Iterable<? extends FieldConfig> values)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearFieldConfigs

      public Schema.Builder clearFieldConfigs()
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeFieldConfigs

      public Schema.Builder removeFieldConfigs(int index)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFieldConfigsBuilder

      public FieldConfig.Builder getFieldConfigsBuilder(int index)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFieldConfigsOrBuilder

      public FieldConfigOrBuilder getFieldConfigsOrBuilder(int index)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFieldConfigsOrBuilder in interface SchemaOrBuilder
    • getFieldConfigsOrBuilderList

      public List<? extends FieldConfigOrBuilder> getFieldConfigsOrBuilderList()
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFieldConfigsOrBuilderList in interface SchemaOrBuilder
    • addFieldConfigsBuilder

      public FieldConfig.Builder addFieldConfigsBuilder()
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFieldConfigsBuilder

      public FieldConfig.Builder addFieldConfigsBuilder(int index)
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFieldConfigsBuilderList

      public List<FieldConfig.Builder> getFieldConfigsBuilderList()
       Output only. Configurations for fields of the schema.
       
      repeated .google.cloud.discoveryengine.v1alpha.FieldConfig field_configs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];