Class NetworkEndpointGroupCloudRun.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudRun.Builder>
com.google.cloud.compute.v1.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.GeneratedMessage.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 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<NetworkEndpointGroupCloudRun.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<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.GeneratedMessage.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

      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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       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 withRFC1035.
      
       Example value: "revision-0010".
       
      optional string tag = 114586;
      Specified by:
      getTagBytes in interface NetworkEndpointGroupCloudRunOrBuilder
      Returns:
      The bytes for tag.
    • setTag

       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 withRFC1035.
      
       Example value: "revision-0010".
       
      optional string tag = 114586;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • 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 withRFC1035.
      
       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 withRFC1035.
      
       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()
       An URL
       mask is one of the main components of the Cloud Function.
      
       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 andfoo1.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()
       An URL
       mask is one of the main components of the Cloud Function.
      
       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 andfoo1.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()
       An URL
       mask is one of the main components of the Cloud Function.
      
       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 andfoo1.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)
       An URL
       mask is one of the main components of the Cloud Function.
      
       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 andfoo1.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()
       An URL
       mask is one of the main components of the Cloud Function.
      
       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 andfoo1.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)
       An URL
       mask is one of the main components of the Cloud Function.
      
       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 andfoo1.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.