Package com.google.cloudbuild.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Filter to match changes in pull requests.Filter to match changes in refs like branches, tags.The resource name of the Repo API resource.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFilter to match changes in pull requests.Filter to match changes in pull requests.Filter to match changes in pull requests.getPush()Filter to match changes in refs like branches, tags.Filter to match changes in refs like branches, tags.Filter to match changes in refs like branches, tags.The resource name of the Repo API resource.com.google.protobuf.ByteStringThe resource name of the Repo API resource.Output only.intOutput only.booleanFilter to match changes in pull requests.booleanhasPush()Filter to match changes in refs like branches, tags.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RepositoryEventConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Filter to match changes in pull requests.mergePush(PushFilter value) Filter to match changes in refs like branches, tags.setPullRequest(PullRequestFilter value) Filter to match changes in pull requests.setPullRequest(PullRequestFilter.Builder builderForValue) Filter to match changes in pull requests.setPush(PushFilter value) Filter to match changes in refs like branches, tags.setPush(PushFilter.Builder builderForValue) Filter to match changes in refs like branches, tags.setRepository(String value) The resource name of the Repo API resource.setRepositoryBytes(com.google.protobuf.ByteString value) The resource name of the Repo API resource.Output only.setRepositoryTypeValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RepositoryEventConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RepositoryEventConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RepositoryEventConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RepositoryEventConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RepositoryEventConfig.Builder>- Throws:
IOException
-
getFilterCase
- Specified by:
getFilterCasein interfaceRepositoryEventConfigOrBuilder
-
clearFilter
-
getRepository
The resource name of the Repo API resource.
string repository = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getRepositoryin interfaceRepositoryEventConfigOrBuilder- 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:
getRepositoryBytesin interfaceRepositoryEventConfigOrBuilder- Returns:
- The bytes for repository.
-
setRepository
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
The resource name of the Repo API resource.
string repository = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setRepositoryBytes
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:
getRepositoryTypeValuein interfaceRepositoryEventConfigOrBuilder- Returns:
- The enum numeric value on the wire for repositoryType.
-
setRepositoryTypeValue
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
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:
getRepositoryTypein interfaceRepositoryEventConfigOrBuilder- 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
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:
hasPullRequestin interfaceRepositoryEventConfigOrBuilder- Returns:
- Whether the pullRequest field is set.
-
getPullRequest
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;- Specified by:
getPullRequestin interfaceRepositoryEventConfigOrBuilder- Returns:
- The pullRequest.
-
setPullRequest
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3; -
setPullRequest
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3; -
mergePullRequest
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3; -
clearPullRequest
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3; -
getPullRequestBuilder
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3; -
getPullRequestOrBuilder
Filter to match changes in pull requests.
.google.devtools.cloudbuild.v1.PullRequestFilter pull_request = 3;- Specified by:
getPullRequestOrBuilderin interfaceRepositoryEventConfigOrBuilder
-
hasPush
public boolean hasPush()Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4;- Specified by:
hasPushin interfaceRepositoryEventConfigOrBuilder- Returns:
- Whether the push field is set.
-
getPush
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4;- Specified by:
getPushin interfaceRepositoryEventConfigOrBuilder- Returns:
- The push.
-
setPush
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4; -
setPush
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4; -
mergePush
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4; -
clearPush
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4; -
getPushBuilder
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4; -
getPushOrBuilder
Filter to match changes in refs like branches, tags.
.google.devtools.cloudbuild.v1.PushFilter push = 4;- Specified by:
getPushOrBuilderin interfaceRepositoryEventConfigOrBuilder
-