Class FetchRemoteBranchesResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FetchRemoteBranchesResponse.Builder>
com.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse.Builder
All Implemented Interfaces:
FetchRemoteBranchesResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FetchRemoteBranchesResponse

public static final class FetchRemoteBranchesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchRemoteBranchesResponse.Builder> implements FetchRemoteBranchesResponseOrBuilder
 `FetchRemoteBranches` response message.
 
Protobuf type google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse
  • 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<FetchRemoteBranchesResponse.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<FetchRemoteBranchesResponse.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<FetchRemoteBranchesResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public FetchRemoteBranchesResponse.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<FetchRemoteBranchesResponse.Builder>
      Throws:
      IOException
    • getBranchesList

      public com.google.protobuf.ProtocolStringList getBranchesList()
       The remote repository's branch names.
       
      repeated string branches = 1;
      Specified by:
      getBranchesList in interface FetchRemoteBranchesResponseOrBuilder
      Returns:
      A list containing the branches.
    • getBranchesCount

      public int getBranchesCount()
       The remote repository's branch names.
       
      repeated string branches = 1;
      Specified by:
      getBranchesCount in interface FetchRemoteBranchesResponseOrBuilder
      Returns:
      The count of branches.
    • getBranches

      public String getBranches(int index)
       The remote repository's branch names.
       
      repeated string branches = 1;
      Specified by:
      getBranches in interface FetchRemoteBranchesResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The branches at the given index.
    • getBranchesBytes

      public com.google.protobuf.ByteString getBranchesBytes(int index)
       The remote repository's branch names.
       
      repeated string branches = 1;
      Specified by:
      getBranchesBytes in interface FetchRemoteBranchesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the branches at the given index.
    • setBranches

      public FetchRemoteBranchesResponse.Builder setBranches(int index, String value)
       The remote repository's branch names.
       
      repeated string branches = 1;
      Parameters:
      index - The index to set the value at.
      value - The branches to set.
      Returns:
      This builder for chaining.
    • addBranches

      public FetchRemoteBranchesResponse.Builder addBranches(String value)
       The remote repository's branch names.
       
      repeated string branches = 1;
      Parameters:
      value - The branches to add.
      Returns:
      This builder for chaining.
    • addAllBranches

      public FetchRemoteBranchesResponse.Builder addAllBranches(Iterable<String> values)
       The remote repository's branch names.
       
      repeated string branches = 1;
      Parameters:
      values - The branches to add.
      Returns:
      This builder for chaining.
    • clearBranches

      public FetchRemoteBranchesResponse.Builder clearBranches()
       The remote repository's branch names.
       
      repeated string branches = 1;
      Returns:
      This builder for chaining.
    • addBranchesBytes

      public FetchRemoteBranchesResponse.Builder addBranchesBytes(com.google.protobuf.ByteString value)
       The remote repository's branch names.
       
      repeated string branches = 1;
      Parameters:
      value - The bytes of the branches to add.
      Returns:
      This builder for chaining.