Class GitSourceContext.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GitSourceContext.Builder>
io.grafeas.v1beta1.source.GitSourceContext.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GitSourceContextOrBuilder, Cloneable
Enclosing class:
GitSourceContext

public static final class GitSourceContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<GitSourceContext.Builder> implements GitSourceContextOrBuilder
 A GitSourceContext denotes a particular revision in a third party Git
 repository (e.g., GitHub).
 
Protobuf type grafeas.v1beta1.source.GitSourceContext
  • 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<GitSourceContext.Builder>
    • clear

      public GitSourceContext.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<GitSourceContext.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<GitSourceContext.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public GitSourceContext.Builder mergeFrom(GitSourceContext other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GitSourceContext.Builder>
    • mergeFrom

      public GitSourceContext.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<GitSourceContext.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       Git repository URL.
       
      string url = 1;
      Specified by:
      getUrl in interface GitSourceContextOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       Git repository URL.
       
      string url = 1;
      Specified by:
      getUrlBytes in interface GitSourceContextOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public GitSourceContext.Builder setUrl(String value)
       Git repository URL.
       
      string url = 1;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public GitSourceContext.Builder clearUrl()
       Git repository URL.
       
      string url = 1;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public GitSourceContext.Builder setUrlBytes(com.google.protobuf.ByteString value)
       Git repository URL.
       
      string url = 1;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getRevisionId

      public String getRevisionId()
       Git commit hash.
       
      string revision_id = 2;
      Specified by:
      getRevisionId in interface GitSourceContextOrBuilder
      Returns:
      The revisionId.
    • getRevisionIdBytes

      public com.google.protobuf.ByteString getRevisionIdBytes()
       Git commit hash.
       
      string revision_id = 2;
      Specified by:
      getRevisionIdBytes in interface GitSourceContextOrBuilder
      Returns:
      The bytes for revisionId.
    • setRevisionId

      public GitSourceContext.Builder setRevisionId(String value)
       Git commit hash.
       
      string revision_id = 2;
      Parameters:
      value - The revisionId to set.
      Returns:
      This builder for chaining.
    • clearRevisionId

      public GitSourceContext.Builder clearRevisionId()
       Git commit hash.
       
      string revision_id = 2;
      Returns:
      This builder for chaining.
    • setRevisionIdBytes

      public GitSourceContext.Builder setRevisionIdBytes(com.google.protobuf.ByteString value)
       Git commit hash.
       
      string revision_id = 2;
      Parameters:
      value - The bytes for revisionId to set.
      Returns:
      This builder for chaining.