Class TransitionRouteGroup.Builder

  • All Implemented Interfaces:
    TransitionRouteGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TransitionRouteGroup

    public static final class TransitionRouteGroup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TransitionRouteGroup.Builder>
    implements TransitionRouteGroupOrBuilder
     A TransitionRouteGroup represents a group of
     [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be
     used by a [Page][google.cloud.dialogflow.cx.v3.Page].
     
    Protobuf type google.cloud.dialogflow.cx.v3.TransitionRouteGroup
    • 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<TransitionRouteGroup.Builder>
      • clear

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

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

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

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

        public TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • setField

        public TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • clearField

        public TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • clearOneof

        public TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • setRepeatedField

        public TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • addRepeatedField

        public TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • isInitialized

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

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

        public String getName()
         The unique identifier of the transition route group.
         [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
         populates the name automatically. Format: `projects/<Project
         ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
         ID>/transitionRouteGroups/<Transition Route Group ID>`
         .
         
        string name = 1;
        Specified by:
        getName in interface TransitionRouteGroupOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The unique identifier of the transition route group.
         [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
         populates the name automatically. Format: `projects/<Project
         ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
         ID>/transitionRouteGroups/<Transition Route Group ID>`
         .
         
        string name = 1;
        Specified by:
        getNameBytes in interface TransitionRouteGroupOrBuilder
        Returns:
        The bytes for name.
      • setName

        public TransitionRouteGroup.Builder setName​(String value)
         The unique identifier of the transition route group.
         [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
         populates the name automatically. Format: `projects/<Project
         ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
         ID>/transitionRouteGroups/<Transition Route Group ID>`
         .
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public TransitionRouteGroup.Builder clearName()
         The unique identifier of the transition route group.
         [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
         populates the name automatically. Format: `projects/<Project
         ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
         ID>/transitionRouteGroups/<Transition Route Group ID>`
         .
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public TransitionRouteGroup.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the transition route group.
         [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
         populates the name automatically. Format: `projects/<Project
         ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
         ID>/transitionRouteGroups/<Transition Route Group ID>`
         .
         
        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 transition route group, unique
         within the flow. The display name can be no longer than 30 characters.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayName in interface TransitionRouteGroupOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Required. The human-readable name of the transition route group, unique
         within the flow. The display name can be no longer than 30 characters.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayNameBytes in interface TransitionRouteGroupOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public TransitionRouteGroup.Builder setDisplayName​(String value)
         Required. The human-readable name of the transition route group, unique
         within the flow. The display name can be no longer than 30 characters.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public TransitionRouteGroup.Builder clearDisplayName()
         Required. The human-readable name of the transition route group, unique
         within the flow. The display name can be no longer than 30 characters.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public TransitionRouteGroup.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Required. The human-readable name of the transition route group, unique
         within the flow. The display name can be no longer than 30 characters.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getTransitionRoutesList

        public List<TransitionRoute> getTransitionRoutesList()
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
        Specified by:
        getTransitionRoutesList in interface TransitionRouteGroupOrBuilder
      • getTransitionRoutesCount

        public int getTransitionRoutesCount()
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
        Specified by:
        getTransitionRoutesCount in interface TransitionRouteGroupOrBuilder
      • getTransitionRoutes

        public TransitionRoute getTransitionRoutes​(int index)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
        Specified by:
        getTransitionRoutes in interface TransitionRouteGroupOrBuilder
      • setTransitionRoutes

        public TransitionRouteGroup.Builder setTransitionRoutes​(int index,
                                                                TransitionRoute value)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • setTransitionRoutes

        public TransitionRouteGroup.Builder setTransitionRoutes​(int index,
                                                                TransitionRoute.Builder builderForValue)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addTransitionRoutes

        public TransitionRouteGroup.Builder addTransitionRoutes​(TransitionRoute value)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addTransitionRoutes

        public TransitionRouteGroup.Builder addTransitionRoutes​(int index,
                                                                TransitionRoute value)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addTransitionRoutes

        public TransitionRouteGroup.Builder addTransitionRoutes​(TransitionRoute.Builder builderForValue)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addTransitionRoutes

        public TransitionRouteGroup.Builder addTransitionRoutes​(int index,
                                                                TransitionRoute.Builder builderForValue)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addAllTransitionRoutes

        public TransitionRouteGroup.Builder addAllTransitionRoutes​(Iterable<? extends TransitionRoute> values)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • clearTransitionRoutes

        public TransitionRouteGroup.Builder clearTransitionRoutes()
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • removeTransitionRoutes

        public TransitionRouteGroup.Builder removeTransitionRoutes​(int index)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • getTransitionRoutesBuilder

        public TransitionRoute.Builder getTransitionRoutesBuilder​(int index)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addTransitionRoutesBuilder

        public TransitionRoute.Builder addTransitionRoutesBuilder()
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • addTransitionRoutesBuilder

        public TransitionRoute.Builder addTransitionRoutesBuilder​(int index)
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • getTransitionRoutesBuilderList

        public List<TransitionRoute.Builder> getTransitionRoutesBuilderList()
         Transition routes associated with the
         [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
         
        repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5;
      • setUnknownFields

        public final TransitionRouteGroup.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<TransitionRouteGroup.Builder>
      • mergeUnknownFields

        public final TransitionRouteGroup.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<TransitionRouteGroup.Builder>