Class NetworkEndpointGroupCloudRun.Builder

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

    public static final class NetworkEndpointGroupCloudRun.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NetworkEndpointGroupCloudRun.Builder>
    implements NetworkEndpointGroupCloudRunOrBuilder
     Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
     
    Protobuf type google.cloud.compute.v1.NetworkEndpointGroupCloudRun
    • 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<NetworkEndpointGroupCloudRun.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<NetworkEndpointGroupCloudRun.Builder>
      • getDefaultInstanceForType

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

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

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

        public NetworkEndpointGroupCloudRun.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<NetworkEndpointGroupCloudRun.Builder>
        Throws:
        IOException
      • hasService

        public boolean hasService()
         Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
         
        optional string service = 373540533;
        Specified by:
        hasService in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        Whether the service field is set.
      • getService

        public String getService()
         Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
         
        optional string service = 373540533;
        Specified by:
        getService in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        The service.
      • getServiceBytes

        public com.google.protobuf.ByteString getServiceBytes()
         Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
         
        optional string service = 373540533;
        Specified by:
        getServiceBytes in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        The bytes for service.
      • setService

        public NetworkEndpointGroupCloudRun.Builder setService​(String value)
         Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
         
        optional string service = 373540533;
        Parameters:
        value - The service to set.
        Returns:
        This builder for chaining.
      • clearService

        public NetworkEndpointGroupCloudRun.Builder clearService()
         Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
         
        optional string service = 373540533;
        Returns:
        This builder for chaining.
      • setServiceBytes

        public NetworkEndpointGroupCloudRun.Builder setServiceBytes​(com.google.protobuf.ByteString value)
         Cloud Run service is the main resource of Cloud Run. The service must be 1-63 characters long, and comply with RFC1035. Example value: "run-service".
         
        optional string service = 373540533;
        Parameters:
        value - The bytes for service to set.
        Returns:
        This builder for chaining.
      • hasTag

        public boolean hasTag()
         Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
         
        optional string tag = 114586;
        Specified by:
        hasTag in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        Whether the tag field is set.
      • getTag

        public String getTag()
         Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
         
        optional string tag = 114586;
        Specified by:
        getTag in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        The tag.
      • getTagBytes

        public com.google.protobuf.ByteString getTagBytes()
         Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
         
        optional string tag = 114586;
        Specified by:
        getTagBytes in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        The bytes for tag.
      • setTag

        public NetworkEndpointGroupCloudRun.Builder setTag​(String value)
         Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
         
        optional string tag = 114586;
        Parameters:
        value - The tag to set.
        Returns:
        This builder for chaining.
      • clearTag

        public NetworkEndpointGroupCloudRun.Builder clearTag()
         Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
         
        optional string tag = 114586;
        Returns:
        This builder for chaining.
      • setTagBytes

        public NetworkEndpointGroupCloudRun.Builder setTagBytes​(com.google.protobuf.ByteString value)
         Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010".
         
        optional string tag = 114586;
        Parameters:
        value - The bytes for tag to set.
        Returns:
        This builder for chaining.
      • hasUrlMask

        public boolean hasUrlMask()
         A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask "<tag>.domain.com/<service>". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
         
        optional string url_mask = 103352252;
        Specified by:
        hasUrlMask in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        Whether the urlMask field is set.
      • getUrlMask

        public String getUrlMask()
         A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask "<tag>.domain.com/<service>". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
         
        optional string url_mask = 103352252;
        Specified by:
        getUrlMask in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        The urlMask.
      • getUrlMaskBytes

        public com.google.protobuf.ByteString getUrlMaskBytes()
         A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask "<tag>.domain.com/<service>". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
         
        optional string url_mask = 103352252;
        Specified by:
        getUrlMaskBytes in interface NetworkEndpointGroupCloudRunOrBuilder
        Returns:
        The bytes for urlMask.
      • setUrlMask

        public NetworkEndpointGroupCloudRun.Builder setUrlMask​(String value)
         A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask "<tag>.domain.com/<service>". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
         
        optional string url_mask = 103352252;
        Parameters:
        value - The urlMask to set.
        Returns:
        This builder for chaining.
      • clearUrlMask

        public NetworkEndpointGroupCloudRun.Builder clearUrlMask()
         A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask "<tag>.domain.com/<service>". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
         
        optional string url_mask = 103352252;
        Returns:
        This builder for chaining.
      • setUrlMaskBytes

        public NetworkEndpointGroupCloudRun.Builder setUrlMaskBytes​(com.google.protobuf.ByteString value)
         A template to parse <service> and <tag> fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask "<tag>.domain.com/<service>". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively.
         
        optional string url_mask = 103352252;
        Parameters:
        value - The bytes for urlMask to set.
        Returns:
        This builder for chaining.