Class PullRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullRequest.Builder>
com.google.cloud.securesourcemanager.v1.PullRequest.Builder
- All Implemented Interfaces:
PullRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PullRequest
public static final class PullRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PullRequest.Builder>
implements PullRequestOrBuilder
Metadata of a PullRequest. PullRequest is the request from a user to merge a branch (head) into another branch (base).Protobuf type
google.cloud.securesourcemanager.v1.PullRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Output only.Output only.Immutable.Output only.Output only.Required.Output only.getBase()Required.Required.Required.getBody()Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHead()Immutable.Immutable.Immutable.getName()Output only.com.google.protobuf.ByteStringOutput only.getState()Output only.intOutput only.getTitle()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanhasBase()Required.booleanOutput only.booleanOutput only.booleanhasHead()Immutable.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBase(PullRequest.Branch value) Required.mergeCloseTime(com.google.protobuf.Timestamp value) Output only.mergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(PullRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeHead(PullRequest.Branch value) Immutable.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setBase(PullRequest.Branch value) Required.setBase(PullRequest.Branch.Builder builderForValue) Required.Optional.setBodyBytes(com.google.protobuf.ByteString value) Optional.setCloseTime(com.google.protobuf.Timestamp value) Output only.setCloseTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setHead(PullRequest.Branch value) Immutable.setHead(PullRequest.Branch.Builder builderForValue) Immutable.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setState(PullRequest.State value) Output only.setStateValue(int value) Output only.Required.setTitleBytes(com.google.protobuf.ByteString value) Required.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) 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<PullRequest.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<PullRequest.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<PullRequest.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<PullRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PullRequest.Builder>
-
mergeFrom
public PullRequest.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<PullRequest.Builder>- Throws:
IOException
-
getName
Output only. Identifier. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfacePullRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Identifier. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfacePullRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Identifier. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Identifier. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Identifier. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTitle
Required. The pull request title.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitlein interfacePullRequestOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Required. The pull request title.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTitleBytesin interfacePullRequestOrBuilder- Returns:
- The bytes for title.
-
setTitle
Required. The pull request title.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Required. The pull request title.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTitleBytes
Required. The pull request title.
string title = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getBody
Optional. The pull request body. Provides a detailed description of the changes.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBodyin interfacePullRequestOrBuilder- Returns:
- The body.
-
getBodyBytes
public com.google.protobuf.ByteString getBodyBytes()Optional. The pull request body. Provides a detailed description of the changes.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBodyBytesin interfacePullRequestOrBuilder- Returns:
- The bytes for body.
-
setBody
Optional. The pull request body. Provides a detailed description of the changes.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The body to set.- Returns:
- This builder for chaining.
-
clearBody
Optional. The pull request body. Provides a detailed description of the changes.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBodyBytes
Optional. The pull request body. Provides a detailed description of the changes.
string body = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for body to set.- Returns:
- This builder for chaining.
-
hasBase
public boolean hasBase()Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasBasein interfacePullRequestOrBuilder- Returns:
- Whether the base field is set.
-
getBase
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBasein interfacePullRequestOrBuilder- Returns:
- The base.
-
setBase
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED]; -
setBase
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED]; -
mergeBase
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED]; -
clearBase
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED]; -
getBaseBuilder
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED]; -
getBaseOrBuilder
Required. The branch to merge changes in.
.google.cloud.securesourcemanager.v1.PullRequest.Branch base = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBaseOrBuilderin interfacePullRequestOrBuilder
-
hasHead
public boolean hasHead()Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasHeadin interfacePullRequestOrBuilder- Returns:
- Whether the head field is set.
-
getHead
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getHeadin interfacePullRequestOrBuilder- Returns:
- The head.
-
setHead
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
setHead
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
mergeHead
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
clearHead
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
getHeadBuilder
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE]; -
getHeadOrBuilder
Immutable. The branch containing the changes to be merged.
.google.cloud.securesourcemanager.v1.PullRequest.Branch head = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getHeadOrBuilderin interfacePullRequestOrBuilder
-
getStateValue
public int getStateValue()Output only. State of the pull request (open, closed or merged).
.google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfacePullRequestOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. State of the pull request (open, closed or merged).
.google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. State of the pull request (open, closed or merged).
.google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfacePullRequestOrBuilder- Returns:
- The state.
-
setState
Output only. State of the pull request (open, closed or merged).
.google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. State of the pull request (open, closed or merged).
.google.cloud.securesourcemanager.v1.PullRequest.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfacePullRequestOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfacePullRequestOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation timestamp.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfacePullRequestOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfacePullRequestOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfacePullRequestOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last updated timestamp.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfacePullRequestOrBuilder
-
hasCloseTime
public boolean hasCloseTime()Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCloseTimein interfacePullRequestOrBuilder- Returns:
- Whether the closeTime field is set.
-
getCloseTime
public com.google.protobuf.Timestamp getCloseTime()Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCloseTimein interfacePullRequestOrBuilder- Returns:
- The closeTime.
-
setCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCloseTime
Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCloseTimeBuilder
public com.google.protobuf.Timestamp.Builder getCloseTimeBuilder()Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCloseTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder()Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.
.google.protobuf.Timestamp close_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCloseTimeOrBuilderin interfacePullRequestOrBuilder
-