Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SourceRepository.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>
      • setField

        public SourceRepository.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>
      • clearField

        public SourceRepository.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>
      • clearOneof

        public SourceRepository.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>
      • setRepeatedField

        public SourceRepository.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>
      • addRepeatedField

        public SourceRepository.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 can omit `paths/*` if you want to use the main directory.
         
        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 can omit `paths/*` if you want to use the main directory.
         
        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 can omit `paths/*` if you want to use the main directory.
         
        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 can omit `paths/*` if you want to use the main directory.
         
        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 can omit `paths/*` if you want to use the main directory.
         
        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.
      • setUnknownFields

        public final SourceRepository.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>
      • mergeUnknownFields

        public final SourceRepository.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceRepository.Builder>