Class TransitionRouteGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransitionRouteGroup.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.Builder<TransitionRouteGroup.Builder> implements TransitionRouteGroupOrBuilder
 A TransitionRouteGroup represents a group of
 [`TransitionRoutes`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute] to
 be used by a [Page][google.cloud.dialogflow.cx.v3beta1.Page].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]
       populates the name automatically. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
       for agent-level groups.
       
      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.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]
       populates the name automatically. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
       for agent-level groups.
       
      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.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]
       populates the name automatically. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
       for agent-level groups.
       
      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.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]
       populates the name automatically. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
       for agent-level groups.
       
      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.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]
       populates the name automatically. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
       or
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`
       for agent-level groups.
       
      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.v3beta1.TransitionRouteGroup].
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5;
      Specified by:
      getTransitionRoutesList in interface TransitionRouteGroupOrBuilder
    • getTransitionRoutesCount

      public int getTransitionRoutesCount()
       Transition routes associated with the
       [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].
       
      repeated .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TransitionRouteGroup].
       
      repeated .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.TransitionRouteGroup].
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5;
    • setTransitionRoutes

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

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

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

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

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

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

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

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

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

      public TransitionRouteOrBuilder getTransitionRoutesOrBuilder(int index)
       Transition routes associated with the
       [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5;
      Specified by:
      getTransitionRoutesOrBuilder in interface TransitionRouteGroupOrBuilder
    • getTransitionRoutesOrBuilderList

      public List<? extends TransitionRouteOrBuilder> getTransitionRoutesOrBuilderList()
       Transition routes associated with the
       [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].
       
      repeated .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_routes = 5;
      Specified by:
      getTransitionRoutesOrBuilderList in interface TransitionRouteGroupOrBuilder
    • addTransitionRoutesBuilder

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

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

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