Class PullRequest.Branch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullRequest.Branch.Builder>
com.google.cloud.securesourcemanager.v1.PullRequest.Branch.Builder
All Implemented Interfaces:
PullRequest.BranchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PullRequest.Branch

public static final class PullRequest.Branch.Builder extends com.google.protobuf.GeneratedMessage.Builder<PullRequest.Branch.Builder> implements PullRequest.BranchOrBuilder
 Branch represents a branch involved in a pull request.
 
Protobuf type google.cloud.securesourcemanager.v1.PullRequest.Branch
  • 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<PullRequest.Branch.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<PullRequest.Branch.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<PullRequest.Branch.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PullRequest.Branch.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<PullRequest.Branch.Builder>
      Throws:
      IOException
    • getRef

      public String getRef()
       Required. Name of the branch.
       
      string ref = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRef in interface PullRequest.BranchOrBuilder
      Returns:
      The ref.
    • getRefBytes

      public com.google.protobuf.ByteString getRefBytes()
       Required. Name of the branch.
       
      string ref = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRefBytes in interface PullRequest.BranchOrBuilder
      Returns:
      The bytes for ref.
    • setRef

      public PullRequest.Branch.Builder setRef(String value)
       Required. Name of the branch.
       
      string ref = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The ref to set.
      Returns:
      This builder for chaining.
    • clearRef

      public PullRequest.Branch.Builder clearRef()
       Required. Name of the branch.
       
      string ref = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRefBytes

      public PullRequest.Branch.Builder setRefBytes(com.google.protobuf.ByteString value)
       Required. Name of the branch.
       
      string ref = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for ref to set.
      Returns:
      This builder for chaining.
    • getSha

      public String getSha()
       Output only. The commit at the tip of the branch.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSha in interface PullRequest.BranchOrBuilder
      Returns:
      The sha.
    • getShaBytes

      public com.google.protobuf.ByteString getShaBytes()
       Output only. The commit at the tip of the branch.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getShaBytes in interface PullRequest.BranchOrBuilder
      Returns:
      The bytes for sha.
    • setSha

      public PullRequest.Branch.Builder setSha(String value)
       Output only. The commit at the tip of the branch.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sha to set.
      Returns:
      This builder for chaining.
    • clearSha

      public PullRequest.Branch.Builder clearSha()
       Output only. The commit at the tip of the branch.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setShaBytes

      public PullRequest.Branch.Builder setShaBytes(com.google.protobuf.ByteString value)
       Output only. The commit at the tip of the branch.
       
      string sha = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for sha to set.
      Returns:
      This builder for chaining.