Class RepositoryEventConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloudbuild.v1.RepositoryEventConfig
All Implemented Interfaces:
RepositoryEventConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RepositoryEventConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • REPOSITORY_FIELD_NUMBER

      public static final int REPOSITORY_FIELD_NUMBER
      See Also:
    • REPOSITORY_TYPE_FIELD_NUMBER

      public static final int REPOSITORY_TYPE_FIELD_NUMBER
      See Also:
    • PULL_REQUEST_FIELD_NUMBER

      public static final int PULL_REQUEST_FIELD_NUMBER
      See Also:
    • PUSH_FIELD_NUMBER

      public static final int PUSH_FIELD_NUMBER
      See Also:
  • 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
    • getFilterCase

      public RepositoryEventConfig.FilterCase getFilterCase()
      Specified by:
      getFilterCase in interface RepositoryEventConfigOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RepositoryEventConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RepositoryEventConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RepositoryEventConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RepositoryEventConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RepositoryEventConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RepositoryEventConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RepositoryEventConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RepositoryEventConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RepositoryEventConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RepositoryEventConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RepositoryEventConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RepositoryEventConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static RepositoryEventConfig.Builder newBuilder()
    • newBuilder

      public static RepositoryEventConfig.Builder newBuilder(RepositoryEventConfig prototype)
    • toBuilder

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

      protected RepositoryEventConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RepositoryEventConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RepositoryEventConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<RepositoryEventConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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