Class RepositoryEventConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RepositoryEventConfig.Builder>
com.google.cloudbuild.v1.RepositoryEventConfig.Builder
All Implemented Interfaces:
RepositoryEventConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RepositoryEventConfig

public static final class RepositoryEventConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RepositoryEventConfig.Builder> implements RepositoryEventConfigOrBuilder
 The configuration of a trigger that creates a build whenever an event from
 Repo API is received.
 
Protobuf type google.devtools.cloudbuild.v1.RepositoryEventConfig
  • 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<RepositoryEventConfig.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<RepositoryEventConfig.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<RepositoryEventConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RepositoryEventConfig.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<RepositoryEventConfig.Builder>
      Throws:
      IOException
    • getFilterCase

      public RepositoryEventConfig.FilterCase getFilterCase()
      Specified by:
      getFilterCase in interface RepositoryEventConfigOrBuilder
    • clearFilter

      public RepositoryEventConfig.Builder clearFilter()
    • getRepository

      public String getRepository()
       The resource name of the Repo API resource.
       
      string repository = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getRepository in interface RepositoryEventConfigOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       The resource name of the Repo API resource.
       
      string repository = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getRepositoryBytes in interface RepositoryEventConfigOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public RepositoryEventConfig.Builder setRepository(String value)
       The resource name of the Repo API resource.
       
      string repository = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

      public RepositoryEventConfig.Builder clearRepository()
       The resource name of the Repo API resource.
       
      string repository = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public RepositoryEventConfig.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       The resource name of the Repo API resource.
       
      string repository = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getRepositoryTypeValue

      public int getRepositoryTypeValue()
       Output only. The type of the SCM vendor the repository points to.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepositoryTypeValue in interface RepositoryEventConfigOrBuilder
      Returns:
      The enum numeric value on the wire for repositoryType.
    • setRepositoryTypeValue

      public RepositoryEventConfig.Builder setRepositoryTypeValue(int value)
       Output only. The type of the SCM vendor the repository points to.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for repositoryType to set.
      Returns:
      This builder for chaining.
    • getRepositoryType

      public RepositoryEventConfig.RepositoryType getRepositoryType()
       Output only. The type of the SCM vendor the repository points to.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRepositoryType in interface RepositoryEventConfigOrBuilder
      Returns:
      The repositoryType.
    • setRepositoryType

       Output only. The type of the SCM vendor the repository points to.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The repositoryType to set.
      Returns:
      This builder for chaining.
    • clearRepositoryType

      public RepositoryEventConfig.Builder clearRepositoryType()
       Output only. The type of the SCM vendor the repository points to.
       
      .google.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryType repository_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasPullRequest

      public boolean hasPullRequest()
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
      Specified by:
      hasPullRequest in interface RepositoryEventConfigOrBuilder
      Returns:
      Whether the pullRequest field is set.
    • getPullRequest

      public PullRequestFilter getPullRequest()
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
      Specified by:
      getPullRequest in interface RepositoryEventConfigOrBuilder
      Returns:
      The pullRequest.
    • setPullRequest

      public RepositoryEventConfig.Builder setPullRequest(PullRequestFilter value)
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
    • setPullRequest

      public RepositoryEventConfig.Builder setPullRequest(PullRequestFilter.Builder builderForValue)
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
    • mergePullRequest

      public RepositoryEventConfig.Builder mergePullRequest(PullRequestFilter value)
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
    • clearPullRequest

      public RepositoryEventConfig.Builder clearPullRequest()
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
    • getPullRequestBuilder

      public PullRequestFilter.Builder getPullRequestBuilder()
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
    • getPullRequestOrBuilder

      public PullRequestFilterOrBuilder getPullRequestOrBuilder()
       Filter to match changes in pull requests.
       
      .google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;
      Specified by:
      getPullRequestOrBuilder in interface RepositoryEventConfigOrBuilder
    • hasPush

      public boolean hasPush()
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
      Specified by:
      hasPush in interface RepositoryEventConfigOrBuilder
      Returns:
      Whether the push field is set.
    • getPush

      public PushFilter getPush()
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
      Specified by:
      getPush in interface RepositoryEventConfigOrBuilder
      Returns:
      The push.
    • setPush

      public RepositoryEventConfig.Builder setPush(PushFilter value)
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
    • setPush

      public RepositoryEventConfig.Builder setPush(PushFilter.Builder builderForValue)
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
    • mergePush

      public RepositoryEventConfig.Builder mergePush(PushFilter value)
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
    • clearPush

      public RepositoryEventConfig.Builder clearPush()
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
    • getPushBuilder

      public PushFilter.Builder getPushBuilder()
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
    • getPushOrBuilder

      public PushFilterOrBuilder getPushOrBuilder()
       Filter to match changes in refs like branches, tags.
       
      .google.devtools.cloudbuild.v1.PushFilter push = 4;
      Specified by:
      getPushOrBuilder in interface RepositoryEventConfigOrBuilder