Class InlineSchema.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InlineSchema.Builder>
com.google.cloud.dialogflow.cx.v3beta1.InlineSchema.Builder
All Implemented Interfaces:
InlineSchemaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InlineSchema

public static final class InlineSchema.Builder extends com.google.protobuf.GeneratedMessage.Builder<InlineSchema.Builder> implements InlineSchemaOrBuilder
 A type schema object that's specified inline.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.InlineSchema
  • 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<InlineSchema.Builder>
    • clear

      public InlineSchema.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<InlineSchema.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<InlineSchema.Builder>
    • getDefaultInstanceForType

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

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

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

      public InlineSchema.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<InlineSchema.Builder>
    • mergeFrom

      public InlineSchema.Builder mergeFrom(InlineSchema other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InlineSchema.Builder>
    • mergeFrom

      public InlineSchema.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<InlineSchema.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       Data type of the schema.
       
      .google.cloud.dialogflow.cx.v3beta1.DataType type = 1;
      Specified by:
      getTypeValue in interface InlineSchemaOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public InlineSchema.Builder setTypeValue(int value)
       Data type of the schema.
       
      .google.cloud.dialogflow.cx.v3beta1.DataType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public DataType getType()
       Data type of the schema.
       
      .google.cloud.dialogflow.cx.v3beta1.DataType type = 1;
      Specified by:
      getType in interface InlineSchemaOrBuilder
      Returns:
      The type.
    • setType

      public InlineSchema.Builder setType(DataType value)
       Data type of the schema.
       
      .google.cloud.dialogflow.cx.v3beta1.DataType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public InlineSchema.Builder clearType()
       Data type of the schema.
       
      .google.cloud.dialogflow.cx.v3beta1.DataType type = 1;
      Returns:
      This builder for chaining.
    • hasItems

      public boolean hasItems()
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
      Specified by:
      hasItems in interface InlineSchemaOrBuilder
      Returns:
      Whether the items field is set.
    • getItems

      public TypeSchema getItems()
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
      Specified by:
      getItems in interface InlineSchemaOrBuilder
      Returns:
      The items.
    • setItems

      public InlineSchema.Builder setItems(TypeSchema value)
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
    • setItems

      public InlineSchema.Builder setItems(TypeSchema.Builder builderForValue)
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
    • mergeItems

      public InlineSchema.Builder mergeItems(TypeSchema value)
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
    • clearItems

      public InlineSchema.Builder clearItems()
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
    • getItemsBuilder

      public TypeSchema.Builder getItemsBuilder()
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
    • getItemsOrBuilder

      public TypeSchemaOrBuilder getItemsOrBuilder()
       Schema of the elements if this is an ARRAY type.
       
      .google.cloud.dialogflow.cx.v3beta1.TypeSchema items = 2;
      Specified by:
      getItemsOrBuilder in interface InlineSchemaOrBuilder