Class SourceRepository.Builder

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

public static final class SourceRepository.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourceRepository.Builder> implements SourceRepositoryOrBuilder
 Describes SourceRepository, used to represent parameters related to
 source repository where a function is hosted.
 
Protobuf type google.cloud.functions.v1.SourceRepository
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Output only.
    The URL pointing to the hosted repository where the function is defined.
     
    Output only.
    com.google.protobuf.ByteString
    Output only.
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The URL pointing to the hosted repository where the function is defined.
    com.google.protobuf.ByteString
    The URL pointing to the hosted repository where the function is defined.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Output only.
    setDeployedUrlBytes(com.google.protobuf.ByteString value)
    Output only.
    setUrl(String value)
    The URL pointing to the hosted repository where the function is defined.
    setUrlBytes(com.google.protobuf.ByteString value)
    The URL pointing to the hosted repository where the function is defined.

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SourceRepository.Builder>
    • clear

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

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

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

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

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

      public SourceRepository.Builder mergeFrom(SourceRepository other)
    • isInitialized

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

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

      public String getUrl()
       The URL pointing to the hosted repository where the function is defined.
       There are supported Cloud Source Repository URLs in the following
       formats:
      
       To refer to a specific commit:
       `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
       To refer to a moveable alias (branch):
       `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
       In particular, to refer to HEAD use `master` moveable alias.
       To refer to a specific fixed alias (tag):
       `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
      
       You may omit `paths/*` if you want to use the main directory. The function
       response may add an empty `/paths/` to the URL.
       
      string url = 1;
      Specified by:
      getUrl in interface SourceRepositoryOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The URL pointing to the hosted repository where the function is defined.
       There are supported Cloud Source Repository URLs in the following
       formats:
      
       To refer to a specific commit:
       `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
       To refer to a moveable alias (branch):
       `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
       In particular, to refer to HEAD use `master` moveable alias.
       To refer to a specific fixed alias (tag):
       `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
      
       You may omit `paths/*` if you want to use the main directory. The function
       response may add an empty `/paths/` to the URL.
       
      string url = 1;
      Specified by:
      getUrlBytes in interface SourceRepositoryOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public SourceRepository.Builder setUrl(String value)
       The URL pointing to the hosted repository where the function is defined.
       There are supported Cloud Source Repository URLs in the following
       formats:
      
       To refer to a specific commit:
       `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
       To refer to a moveable alias (branch):
       `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
       In particular, to refer to HEAD use `master` moveable alias.
       To refer to a specific fixed alias (tag):
       `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
      
       You may omit `paths/*` if you want to use the main directory. The function
       response may add an empty `/paths/` to the URL.
       
      string url = 1;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public SourceRepository.Builder clearUrl()
       The URL pointing to the hosted repository where the function is defined.
       There are supported Cloud Source Repository URLs in the following
       formats:
      
       To refer to a specific commit:
       `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
       To refer to a moveable alias (branch):
       `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
       In particular, to refer to HEAD use `master` moveable alias.
       To refer to a specific fixed alias (tag):
       `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
      
       You may omit `paths/*` if you want to use the main directory. The function
       response may add an empty `/paths/` to the URL.
       
      string url = 1;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public SourceRepository.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The URL pointing to the hosted repository where the function is defined.
       There are supported Cloud Source Repository URLs in the following
       formats:
      
       To refer to a specific commit:
       `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
       To refer to a moveable alias (branch):
       `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`
       In particular, to refer to HEAD use `master` moveable alias.
       To refer to a specific fixed alias (tag):
       `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
      
       You may omit `paths/*` if you want to use the main directory. The function
       response may add an empty `/paths/` to the URL.
       
      string url = 1;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getDeployedUrl

      public String getDeployedUrl()
       Output only. The URL pointing to the hosted repository where the function
       were defined at the time of deployment. It always points to a specific
       commit in the format described above.
       
      string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeployedUrl in interface SourceRepositoryOrBuilder
      Returns:
      The deployedUrl.
    • getDeployedUrlBytes

      public com.google.protobuf.ByteString getDeployedUrlBytes()
       Output only. The URL pointing to the hosted repository where the function
       were defined at the time of deployment. It always points to a specific
       commit in the format described above.
       
      string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeployedUrlBytes in interface SourceRepositoryOrBuilder
      Returns:
      The bytes for deployedUrl.
    • setDeployedUrl

      public SourceRepository.Builder setDeployedUrl(String value)
       Output only. The URL pointing to the hosted repository where the function
       were defined at the time of deployment. It always points to a specific
       commit in the format described above.
       
      string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The deployedUrl to set.
      Returns:
      This builder for chaining.
    • clearDeployedUrl

      public SourceRepository.Builder clearDeployedUrl()
       Output only. The URL pointing to the hosted repository where the function
       were defined at the time of deployment. It always points to a specific
       commit in the format described above.
       
      string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDeployedUrlBytes

      public SourceRepository.Builder setDeployedUrlBytes(com.google.protobuf.ByteString value)
       Output only. The URL pointing to the hosted repository where the function
       were defined at the time of deployment. It always points to a specific
       commit in the format described above.
       
      string deployed_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for deployedUrl to set.
      Returns:
      This builder for chaining.