Package com.google.cloud.compute.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Cloud Run service is the main resource of Cloud Run.clearTag()Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information.An URL mask is one of the main components of the Cloud Function.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCloud Run service is the main resource of Cloud Run.com.google.protobuf.ByteStringCloud Run service is the main resource of Cloud Run.getTag()Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information.com.google.protobuf.ByteStringOptional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information.An URL mask is one of the main components of the Cloud Function.com.google.protobuf.ByteStringAn URL mask is one of the main components of the Cloud Function.booleanCloud Run service is the main resource of Cloud Run.booleanhasTag()Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information.booleanAn URL mask is one of the main components of the Cloud Function.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setService(String value) Cloud Run service is the main resource of Cloud Run.setServiceBytes(com.google.protobuf.ByteString value) Cloud Run service is the main resource of Cloud Run.Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information.setTagBytes(com.google.protobuf.ByteString value) Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information.setUrlMask(String value) An URL mask is one of the main components of the Cloud Function.setUrlMaskBytes(com.google.protobuf.ByteString value) An URL mask is one of the main components of the Cloud Function.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudRun.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudRun.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkEndpointGroupCloudRun.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkEndpointGroupCloudRun.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasServicein interfaceNetworkEndpointGroupCloudRunOrBuilder- Returns:
- Whether the service field is set.
-
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:
getServicein interfaceNetworkEndpointGroupCloudRunOrBuilder- 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:
getServiceBytesin interfaceNetworkEndpointGroupCloudRunOrBuilder- Returns:
- The bytes for service.
-
setService
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
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
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:
hasTagin interfaceNetworkEndpointGroupCloudRunOrBuilder- Returns:
- Whether the tag field is set.
-
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:
getTagin interfaceNetworkEndpointGroupCloudRunOrBuilder- 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:
getTagBytesin interfaceNetworkEndpointGroupCloudRunOrBuilder- 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
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:
hasUrlMaskin interfaceNetworkEndpointGroupCloudRunOrBuilder- Returns:
- Whether the urlMask field is set.
-
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:
getUrlMaskin interfaceNetworkEndpointGroupCloudRunOrBuilder- 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:
getUrlMaskBytesin interfaceNetworkEndpointGroupCloudRunOrBuilder- Returns:
- The bytes for urlMask.
-
setUrlMask
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
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
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.
-