Class 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.GeneratedMessageV3.Builder<Version.Builder>
    implements VersionOrBuilder
     Represents a version of a flow.
     
    Protobuf type google.cloud.dialogflow.cx.v3.Version
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Version.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
      • setField

        public Version.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
      • clearField

        public Version.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
      • clearOneof

        public Version.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
      • setRepeatedField

        public Version.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
      • addRepeatedField

        public Version.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>. 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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>. 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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>. 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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>. 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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>. 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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.Version.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Version.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
      • mergeUnknownFields

        public final Version.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>