Class FetchGitRefsResponse.Builder

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

public static final class FetchGitRefsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<FetchGitRefsResponse.Builder> implements FetchGitRefsResponseOrBuilder
 Response for fetching git refs.
 
Protobuf type google.cloud.developerconnect.v1.FetchGitRefsResponse
  • 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<FetchGitRefsResponse.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<FetchGitRefsResponse.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<FetchGitRefsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public FetchGitRefsResponse.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<FetchGitRefsResponse.Builder>
      Throws:
      IOException
    • getRefNamesList

      public com.google.protobuf.ProtocolStringList getRefNamesList()
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Specified by:
      getRefNamesList in interface FetchGitRefsResponseOrBuilder
      Returns:
      A list containing the refNames.
    • getRefNamesCount

      public int getRefNamesCount()
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Specified by:
      getRefNamesCount in interface FetchGitRefsResponseOrBuilder
      Returns:
      The count of refNames.
    • getRefNames

      public String getRefNames(int index)
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Specified by:
      getRefNames in interface FetchGitRefsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The refNames at the given index.
    • getRefNamesBytes

      public com.google.protobuf.ByteString getRefNamesBytes(int index)
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Specified by:
      getRefNamesBytes in interface FetchGitRefsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the refNames at the given index.
    • setRefNames

      public FetchGitRefsResponse.Builder setRefNames(int index, String value)
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Parameters:
      index - The index to set the value at.
      value - The refNames to set.
      Returns:
      This builder for chaining.
    • addRefNames

      public FetchGitRefsResponse.Builder addRefNames(String value)
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Parameters:
      value - The refNames to add.
      Returns:
      This builder for chaining.
    • addAllRefNames

      public FetchGitRefsResponse.Builder addAllRefNames(Iterable<String> values)
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Parameters:
      values - The refNames to add.
      Returns:
      This builder for chaining.
    • clearRefNames

      public FetchGitRefsResponse.Builder clearRefNames()
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Returns:
      This builder for chaining.
    • addRefNamesBytes

      public FetchGitRefsResponse.Builder addRefNamesBytes(com.google.protobuf.ByteString value)
       Name of the refs fetched.
       
      repeated string ref_names = 1;
      Parameters:
      value - The bytes of the refNames to add.
      Returns:
      This builder for chaining.
    • getNextPageToken

      public String getNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface FetchGitRefsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface FetchGitRefsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public FetchGitRefsResponse.Builder setNextPageToken(String value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public FetchGitRefsResponse.Builder clearNextPageToken()
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public FetchGitRefsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token identifying a page of results the server should return.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.