- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.4
- 2.2.0
- 2.1.10
- 0.2.0
public static final class Service.Builder extends GeneratedMessageV3.Builder<Service.Builder> implements ServiceOrBuilder
A Service resource is a logical component of an application that can share state and communicate in a secure fashion with other services. For example, an application that handles customer requests might include separate services to handle tasks such as backend data analysis or API requests from mobile devices. Each service has a collection of versions that define a specific set of code used to implement the functionality of that service.
Protobuf type google.appengine.v1.Service
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Service.BuilderImplements
ServiceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Service.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Service.Builder |
build()
public Service build()
Type | Description |
Service |
buildPartial()
public Service buildPartial()
Type | Description |
Service |
clear()
public Service.Builder clear()
Type | Description |
Service.Builder |
clearField(Descriptors.FieldDescriptor field)
public Service.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Service.Builder |
clearId()
public Service.Builder clearId()
Relative name of the service within the application.
Example: default
.
@OutputOnly
string id = 2;
Type | Description |
Service.Builder | This builder for chaining. |
clearLabels()
public Service.Builder clearLabels()
Type | Description |
Service.Builder |
clearName()
public Service.Builder clearName()
Full path to the Service resource in the API.
Example: apps/myapp/services/default
.
@OutputOnly
string name = 1;
Type | Description |
Service.Builder | This builder for chaining. |
clearNetworkSettings()
public Service.Builder clearNetworkSettings()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Type | Description |
Service.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Service.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Service.Builder |
clearSplit()
public Service.Builder clearSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Type | Description |
Service.Builder |
clone()
public Service.Builder clone()
Type | Description |
Service.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
boolean |
getDefaultInstanceForType()
public Service getDefaultInstanceForType()
Type | Description |
Service |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getId()
public String getId()
Relative name of the service within the application.
Example: default
.
@OutputOnly
string id = 2;
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
Relative name of the service within the application.
Example: default
.
@OutputOnly
string id = 2;
Type | Description |
ByteString | The bytes for id. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
Full path to the Service resource in the API.
Example: apps/myapp/services/default
.
@OutputOnly
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Full path to the Service resource in the API.
Example: apps/myapp/services/default
.
@OutputOnly
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getNetworkSettings()
public NetworkSettings getNetworkSettings()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Type | Description |
NetworkSettings | The networkSettings. |
getNetworkSettingsBuilder()
public NetworkSettings.Builder getNetworkSettingsBuilder()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Type | Description |
NetworkSettings.Builder |
getNetworkSettingsOrBuilder()
public NetworkSettingsOrBuilder getNetworkSettingsOrBuilder()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Type | Description |
NetworkSettingsOrBuilder |
getSplit()
public TrafficSplit getSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Type | Description |
TrafficSplit | The split. |
getSplitBuilder()
public TrafficSplit.Builder getSplitBuilder()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Type | Description |
TrafficSplit.Builder |
getSplitOrBuilder()
public TrafficSplitOrBuilder getSplitOrBuilder()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Type | Description |
TrafficSplitOrBuilder |
hasNetworkSettings()
public boolean hasNetworkSettings()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Type | Description |
boolean | Whether the networkSettings field is set. |
hasSplit()
public boolean hasSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Type | Description |
boolean | Whether the split field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Service other)
public Service.Builder mergeFrom(Service other)
Name | Description |
other | Service |
Type | Description |
Service.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Service.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Service.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Service.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Service.Builder |
mergeNetworkSettings(NetworkSettings value)
public Service.Builder mergeNetworkSettings(NetworkSettings value)
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Name | Description |
value | NetworkSettings |
Type | Description |
Service.Builder |
mergeSplit(TrafficSplit value)
public Service.Builder mergeSplit(TrafficSplit value)
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Name | Description |
value | TrafficSplit |
Type | Description |
Service.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Service.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Service.Builder |
putAllLabels(Map<String,String> values)
public Service.Builder putAllLabels(Map<String,String> values)
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Name | Description |
values | Map<String,String> |
Type | Description |
Service.Builder |
putLabels(String key, String value)
public Service.Builder putLabels(String key, String value)
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Name | Description |
key | String |
value | String |
Type | Description |
Service.Builder |
removeLabels(String key)
public Service.Builder removeLabels(String key)
A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa"). <p>Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
Service.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Service.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Service.Builder |
setId(String value)
public Service.Builder setId(String value)
Relative name of the service within the application.
Example: default
.
@OutputOnly
string id = 2;
Name | Description |
value | String The id to set. |
Type | Description |
Service.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public Service.Builder setIdBytes(ByteString value)
Relative name of the service within the application.
Example: default
.
@OutputOnly
string id = 2;
Name | Description |
value | ByteString The bytes for id to set. |
Type | Description |
Service.Builder | This builder for chaining. |
setName(String value)
public Service.Builder setName(String value)
Full path to the Service resource in the API.
Example: apps/myapp/services/default
.
@OutputOnly
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Service.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Service.Builder setNameBytes(ByteString value)
Full path to the Service resource in the API.
Example: apps/myapp/services/default
.
@OutputOnly
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Service.Builder | This builder for chaining. |
setNetworkSettings(NetworkSettings value)
public Service.Builder setNetworkSettings(NetworkSettings value)
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Name | Description |
value | NetworkSettings |
Type | Description |
Service.Builder |
setNetworkSettings(NetworkSettings.Builder builderForValue)
public Service.Builder setNetworkSettings(NetworkSettings.Builder builderForValue)
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
Name | Description |
builderForValue | NetworkSettings.Builder |
Type | Description |
Service.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Service.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Service.Builder |
setSplit(TrafficSplit value)
public Service.Builder setSplit(TrafficSplit value)
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Name | Description |
value | TrafficSplit |
Type | Description |
Service.Builder |
setSplit(TrafficSplit.Builder builderForValue)
public Service.Builder setSplit(TrafficSplit.Builder builderForValue)
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
Name | Description |
builderForValue | TrafficSplit.Builder |
Type | Description |
Service.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Service.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Service.Builder |