Class UrlDispatchRule.Builder

  • All Implemented Interfaces:
    UrlDispatchRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    UrlDispatchRule

    public static final class UrlDispatchRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UrlDispatchRule.Builder>
    implements UrlDispatchRuleOrBuilder
     Rules to match an HTTP request and dispatch that request to a service.
     
    Protobuf type google.appengine.v1.UrlDispatchRule
    • 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<UrlDispatchRule.Builder>
      • clear

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

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

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

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

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
      • setField

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
      • clearField

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
      • clearOneof

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
      • setRepeatedField

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
      • addRepeatedField

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

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
      • isInitialized

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

        public UrlDispatchRule.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<UrlDispatchRule.Builder>
        Throws:
        IOException
      • getDomain

        public String getDomain()
         Domain name to match against. The wildcard "`*`" is supported if
         specified before a period: "`*.`".
        
         Defaults to matching all domains: "`*`".
         
        string domain = 1;
        Specified by:
        getDomain in interface UrlDispatchRuleOrBuilder
        Returns:
        The domain.
      • getDomainBytes

        public com.google.protobuf.ByteString getDomainBytes()
         Domain name to match against. The wildcard "`*`" is supported if
         specified before a period: "`*.`".
        
         Defaults to matching all domains: "`*`".
         
        string domain = 1;
        Specified by:
        getDomainBytes in interface UrlDispatchRuleOrBuilder
        Returns:
        The bytes for domain.
      • setDomain

        public UrlDispatchRule.Builder setDomain​(String value)
         Domain name to match against. The wildcard "`*`" is supported if
         specified before a period: "`*.`".
        
         Defaults to matching all domains: "`*`".
         
        string domain = 1;
        Parameters:
        value - The domain to set.
        Returns:
        This builder for chaining.
      • clearDomain

        public UrlDispatchRule.Builder clearDomain()
         Domain name to match against. The wildcard "`*`" is supported if
         specified before a period: "`*.`".
        
         Defaults to matching all domains: "`*`".
         
        string domain = 1;
        Returns:
        This builder for chaining.
      • setDomainBytes

        public UrlDispatchRule.Builder setDomainBytes​(com.google.protobuf.ByteString value)
         Domain name to match against. The wildcard "`*`" is supported if
         specified before a period: "`*.`".
        
         Defaults to matching all domains: "`*`".
         
        string domain = 1;
        Parameters:
        value - The bytes for domain to set.
        Returns:
        This builder for chaining.
      • getPath

        public String getPath()
         Pathname within the host. Must start with a "`/`". A
         single "`*`" can be included at the end of the path.
        
         The sum of the lengths of the domain and path may not
         exceed 100 characters.
         
        string path = 2;
        Specified by:
        getPath in interface UrlDispatchRuleOrBuilder
        Returns:
        The path.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         Pathname within the host. Must start with a "`/`". A
         single "`*`" can be included at the end of the path.
        
         The sum of the lengths of the domain and path may not
         exceed 100 characters.
         
        string path = 2;
        Specified by:
        getPathBytes in interface UrlDispatchRuleOrBuilder
        Returns:
        The bytes for path.
      • setPath

        public UrlDispatchRule.Builder setPath​(String value)
         Pathname within the host. Must start with a "`/`". A
         single "`*`" can be included at the end of the path.
        
         The sum of the lengths of the domain and path may not
         exceed 100 characters.
         
        string path = 2;
        Parameters:
        value - The path to set.
        Returns:
        This builder for chaining.
      • clearPath

        public UrlDispatchRule.Builder clearPath()
         Pathname within the host. Must start with a "`/`". A
         single "`*`" can be included at the end of the path.
        
         The sum of the lengths of the domain and path may not
         exceed 100 characters.
         
        string path = 2;
        Returns:
        This builder for chaining.
      • setPathBytes

        public UrlDispatchRule.Builder setPathBytes​(com.google.protobuf.ByteString value)
         Pathname within the host. Must start with a "`/`". A
         single "`*`" can be included at the end of the path.
        
         The sum of the lengths of the domain and path may not
         exceed 100 characters.
         
        string path = 2;
        Parameters:
        value - The bytes for path to set.
        Returns:
        This builder for chaining.
      • getService

        public String getService()
         Resource ID of a service in this application that should
         serve the matched request. The service must already
         exist. Example: `default`.
         
        string service = 3;
        Specified by:
        getService in interface UrlDispatchRuleOrBuilder
        Returns:
        The service.
      • getServiceBytes

        public com.google.protobuf.ByteString getServiceBytes()
         Resource ID of a service in this application that should
         serve the matched request. The service must already
         exist. Example: `default`.
         
        string service = 3;
        Specified by:
        getServiceBytes in interface UrlDispatchRuleOrBuilder
        Returns:
        The bytes for service.
      • setService

        public UrlDispatchRule.Builder setService​(String value)
         Resource ID of a service in this application that should
         serve the matched request. The service must already
         exist. Example: `default`.
         
        string service = 3;
        Parameters:
        value - The service to set.
        Returns:
        This builder for chaining.
      • clearService

        public UrlDispatchRule.Builder clearService()
         Resource ID of a service in this application that should
         serve the matched request. The service must already
         exist. Example: `default`.
         
        string service = 3;
        Returns:
        This builder for chaining.
      • setServiceBytes

        public UrlDispatchRule.Builder setServiceBytes​(com.google.protobuf.ByteString value)
         Resource ID of a service in this application that should
         serve the matched request. The service must already
         exist. Example: `default`.
         
        string service = 3;
        Parameters:
        value - The bytes for service to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final UrlDispatchRule.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<UrlDispatchRule.Builder>
      • mergeUnknownFields

        public final UrlDispatchRule.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<UrlDispatchRule.Builder>