Class Version.Builder

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

public static final class Version.Builder extends com.google.protobuf.GeneratedMessage.Builder<Version.Builder> implements VersionOrBuilder
 Represents a version of a flow.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Version
  • 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<Version.Builder>
    • clear

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

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

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

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

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

      public Version.Builder mergeFrom(Version other)
    • isInitialized

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

      public Version.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<Version.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Format:
       projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.
       Version ID is a self-increasing number generated by Dialogflow upon version
       creation.
       
      string name = 1;
      Specified by:
      getName in interface VersionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Format:
       projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.
       Version ID is a self-increasing number generated by Dialogflow upon version
       creation.
       
      string name = 1;
      Specified by:
      getNameBytes in interface VersionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Version.Builder setName(String value)
       Format:
       projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.
       Version ID is a self-increasing number generated by Dialogflow upon version
       creation.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Version.Builder clearName()
       Format:
       projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.
       Version ID is a self-increasing number generated by Dialogflow upon version
       creation.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Version.Builder setNameBytes(com.google.protobuf.ByteString value)
       Format:
       projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>.
       Version ID is a self-increasing number generated by Dialogflow upon version
       creation.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The human-readable name of the version. Limit of 64 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface VersionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The human-readable name of the version. Limit of 64 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface VersionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Version.Builder setDisplayName(String value)
       Required. The human-readable name of the version. Limit of 64 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Version.Builder clearDisplayName()
       Required. The human-readable name of the version. Limit of 64 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Version.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The human-readable name of the version. Limit of 64 characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The description of the version. The maximum length is 500 characters. If
       exceeded, the request is rejected.
       
      string description = 3;
      Specified by:
      getDescription in interface VersionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the version. The maximum length is 500 characters. If
       exceeded, the request is rejected.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface VersionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Version.Builder setDescription(String value)
       The description of the version. The maximum length is 500 characters. If
       exceeded, the request is rejected.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Version.Builder clearDescription()
       The description of the version. The maximum length is 500 characters. If
       exceeded, the request is rejected.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Version.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       The description of the version. The maximum length is 500 characters. If
       exceeded, the request is rejected.
       
      string description = 3;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasNluSettings

      public boolean hasNluSettings()
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasNluSettings in interface VersionOrBuilder
      Returns:
      Whether the nluSettings field is set.
    • getNluSettings

      public NluSettings getNluSettings()
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNluSettings in interface VersionOrBuilder
      Returns:
      The nluSettings.
    • setNluSettings

      public Version.Builder setNluSettings(NluSettings value)
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setNluSettings

      public Version.Builder setNluSettings(NluSettings.Builder builderForValue)
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeNluSettings

      public Version.Builder mergeNluSettings(NluSettings value)
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearNluSettings

      public Version.Builder clearNluSettings()
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getNluSettingsBuilder

      public NluSettings.Builder getNluSettingsBuilder()
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getNluSettingsOrBuilder

      public NluSettingsOrBuilder getNluSettingsOrBuilder()
       Output only. The NLU settings of the flow at version creation.
       
      .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNluSettingsOrBuilder in interface VersionOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface VersionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface VersionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Version.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Version.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Version.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Version.Builder clearCreateTime()
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time of the version.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface VersionOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. The state of this version. This field is read-only and cannot
       be set by create and update methods.
       
      .google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface VersionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Version.Builder setStateValue(int value)
       Output only. The state of this version. This field is read-only and cannot
       be set by create and update methods.
       
      .google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Version.State getState()
       Output only. The state of this version. This field is read-only and cannot
       be set by create and update methods.
       
      .google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface VersionOrBuilder
      Returns:
      The state.
    • setState

      public Version.Builder setState(Version.State value)
       Output only. The state of this version. This field is read-only and cannot
       be set by create and update methods.
       
      .google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Version.Builder clearState()
       Output only. The state of this version. This field is read-only and cannot
       be set by create and update methods.
       
      .google.cloud.dialogflow.cx.v3beta1.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.