Class Repository.GitRemoteSettings.Builder

    • 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<Repository.GitRemoteSettings.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<Repository.GitRemoteSettings.Builder>
      • getDefaultInstanceForType

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

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

        public Repository.GitRemoteSettings buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Repository.GitRemoteSettings.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<Repository.GitRemoteSettings.Builder>
        Throws:
        IOException
      • getUrlBytes

        public com.google.protobuf.ByteString getUrlBytes()
         Required. The Git remote's URL.
         
        string url = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUrlBytes in interface Repository.GitRemoteSettingsOrBuilder
        Returns:
        The bytes for url.
      • setUrl

        public Repository.GitRemoteSettings.Builder setUrl​(String value)
         Required. The Git remote's URL.
         
        string url = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The url to set.
        Returns:
        This builder for chaining.
      • clearUrl

        public Repository.GitRemoteSettings.Builder clearUrl()
         Required. The Git remote's URL.
         
        string url = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUrlBytes

        public Repository.GitRemoteSettings.Builder setUrlBytes​(com.google.protobuf.ByteString value)
         Required. The Git remote's URL.
         
        string url = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for url to set.
        Returns:
        This builder for chaining.
      • getDefaultBranchBytes

        public com.google.protobuf.ByteString getDefaultBranchBytes()
         Required. The Git remote's default branch name.
         
        string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDefaultBranchBytes in interface Repository.GitRemoteSettingsOrBuilder
        Returns:
        The bytes for defaultBranch.
      • setDefaultBranch

        public Repository.GitRemoteSettings.Builder setDefaultBranch​(String value)
         Required. The Git remote's default branch name.
         
        string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The defaultBranch to set.
        Returns:
        This builder for chaining.
      • clearDefaultBranch

        public Repository.GitRemoteSettings.Builder clearDefaultBranch()
         Required. The Git remote's default branch name.
         
        string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDefaultBranchBytes

        public Repository.GitRemoteSettings.Builder setDefaultBranchBytes​(com.google.protobuf.ByteString value)
         Required. The Git remote's default branch name.
         
        string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for defaultBranch to set.
        Returns:
        This builder for chaining.
      • getAuthenticationTokenSecretVersion

        public String getAuthenticationTokenSecretVersion()
         Required. The name of the Secret Manager secret version to use as an
         authentication token for Git operations. Must be in the format
         `projects/*/secrets/*/versions/*`.
         
        string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getAuthenticationTokenSecretVersion in interface Repository.GitRemoteSettingsOrBuilder
        Returns:
        The authenticationTokenSecretVersion.
      • getAuthenticationTokenSecretVersionBytes

        public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes()
         Required. The name of the Secret Manager secret version to use as an
         authentication token for Git operations. Must be in the format
         `projects/*/secrets/*/versions/*`.
         
        string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getAuthenticationTokenSecretVersionBytes in interface Repository.GitRemoteSettingsOrBuilder
        Returns:
        The bytes for authenticationTokenSecretVersion.
      • setAuthenticationTokenSecretVersion

        public Repository.GitRemoteSettings.Builder setAuthenticationTokenSecretVersion​(String value)
         Required. The name of the Secret Manager secret version to use as an
         authentication token for Git operations. Must be in the format
         `projects/*/secrets/*/versions/*`.
         
        string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The authenticationTokenSecretVersion to set.
        Returns:
        This builder for chaining.
      • clearAuthenticationTokenSecretVersion

        public Repository.GitRemoteSettings.Builder clearAuthenticationTokenSecretVersion()
         Required. The name of the Secret Manager secret version to use as an
         authentication token for Git operations. Must be in the format
         `projects/*/secrets/*/versions/*`.
         
        string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setAuthenticationTokenSecretVersionBytes

        public Repository.GitRemoteSettings.Builder setAuthenticationTokenSecretVersionBytes​(com.google.protobuf.ByteString value)
         Required. The name of the Secret Manager secret version to use as an
         authentication token for Git operations. Must be in the format
         `projects/*/secrets/*/versions/*`.
         
        string authentication_token_secret_version = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for authenticationTokenSecretVersion to set.
        Returns:
        This builder for chaining.
      • getTokenStatusValue

        public int getTokenStatusValue()
         Output only. Indicates the status of the Git access token.
         
        .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTokenStatusValue in interface Repository.GitRemoteSettingsOrBuilder
        Returns:
        The enum numeric value on the wire for tokenStatus.
      • setTokenStatusValue

        public Repository.GitRemoteSettings.Builder setTokenStatusValue​(int value)
         Output only. Indicates the status of the Git access token.
         
        .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for tokenStatus to set.
        Returns:
        This builder for chaining.
      • setTokenStatus

        public Repository.GitRemoteSettings.Builder setTokenStatus​(Repository.GitRemoteSettings.TokenStatus value)
         Output only. Indicates the status of the Git access token.
         
        .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The tokenStatus to set.
        Returns:
        This builder for chaining.
      • clearTokenStatus

        public Repository.GitRemoteSettings.Builder clearTokenStatus()
         Output only. Indicates the status of the Git access token.
         
        .google.cloud.dataform.v1alpha2.Repository.GitRemoteSettings.TokenStatus token_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.