proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildTrigger.java
public Builder mergeTriggerTemplate(com.google.cloudbuild.v1.RepoSource value) {
      if (triggerTemplateBuilder_ == null) {
        if (triggerTemplate_ != null) {
          triggerTemplate_ =
              com.google.cloudbuild.v1.RepoSource.newBuilder(triggerTemplate_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          triggerTemplate_ = value;
        }
        onChanged();
      } else {
        triggerTemplateBuilder_.mergeFrom(value);
      }

      return this;
    }
/**
     *
     *
     * <pre>
     * Template describing the types of source changes to trigger a build.
     * Branch and tag names in trigger templates are interpreted as regular
     * expressions. Any branch or tag change that matches that regular expression
     * will trigger a build.
     * Mutually exclusive with `github`.
     * </pre>
     *
     * <code>.google.devtools.cloudbuild.v1.RepoSource trigger_template = 7;</code>
     */

Template describing the types of source changes to trigger a build.
Branch and tag names in trigger templates are interpreted as regular
expressions. Any branch or tag change that matches that regular expression
will trigger a build.
Mutually exclusive with `github`.


Template describing the types of source changes to trigger a build . Branch and tag names in trigger templates are interpreted as regular expressions . Any branch or tag change that matches that regular expression will trigger a build . Mutually exclusive with ` github ` .
public Builder mergeTriggerTemplate(com.google.cloudbuild.v1.RepoSource value) {
      if (triggerTemplateBuilder_ == null) {
        if (triggerTemplate_ != null) {
          triggerTemplate_ =
              com.google.cloudbuild.v1.RepoSource.newBuilder(triggerTemplate_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          triggerTemplate_ = value;
        }
        onChanged();
      } else {
        triggerTemplateBuilder_.mergeFrom(value);
      }
      return this;
    }
public Builder mergeTriggerTemplate ( com . google . cloudbuild . v1 . RepoSource value ) { if ( triggerTemplateBuilder_ == null ) { if ( triggerTemplate_ != null ) { triggerTemplate_ = com . google . cloudbuild . v1 . RepoSource . newBuilder ( triggerTemplate_ ) . mergeFrom ( value ) . buildPartial ( ) ; } else { triggerTemplate_ = value ; } onChanged ( ) ; } else { triggerTemplateBuilder_ . mergeFrom ( value ) ; } return this ; }
<pre>
 Template describing the types of source changes to trigger a build.
<pre > Template describing the types of source changes to trigger a build .