Package com.google.appengine.v1
Class Service.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
- com.google.appengine.v1.Service.Builder
-
- All Implemented Interfaces:
ServiceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Service
public static final class Service.Builder extends com.google.protobuf.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 typegoogle.appengine.v1.Service
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Service.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Servicebuild()ServicebuildPartial()Service.Builderclear()Service.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Service.BuilderclearId()Relative name of the service within the application.Service.BuilderclearLabels()Service.BuilderclearName()Full path to the Service resource in the API.Service.BuilderclearNetworkSettings()Ingress settings for this service.Service.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Service.BuilderclearSplit()Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.Builderclone()booleancontainsLabels(String key)A set of labels to apply to this service.ServicegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetId()Relative name of the service within the application.com.google.protobuf.ByteStringgetIdBytes()Relative name of the service within the application.Map<String,String>getLabels()Deprecated.intgetLabelsCount()A set of labels to apply to this service.Map<String,String>getLabelsMap()A set of labels to apply to this service.StringgetLabelsOrDefault(String key, String defaultValue)A set of labels to apply to this service.StringgetLabelsOrThrow(String key)A set of labels to apply to this service.Map<String,String>getMutableLabels()Deprecated.StringgetName()Full path to the Service resource in the API.com.google.protobuf.ByteStringgetNameBytes()Full path to the Service resource in the API.NetworkSettingsgetNetworkSettings()Ingress settings for this service.NetworkSettings.BuildergetNetworkSettingsBuilder()Ingress settings for this service.NetworkSettingsOrBuildergetNetworkSettingsOrBuilder()Ingress settings for this service.TrafficSplitgetSplit()Mapping that defines fractional HTTP traffic diversion to different versions within the service.TrafficSplit.BuildergetSplitBuilder()Mapping that defines fractional HTTP traffic diversion to different versions within the service.TrafficSplitOrBuildergetSplitOrBuilder()Mapping that defines fractional HTTP traffic diversion to different versions within the service.booleanhasNetworkSettings()Ingress settings for this service.booleanhasSplit()Mapping that defines fractional HTTP traffic diversion to different versions within the service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Service.BuildermergeFrom(Service other)Service.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Service.BuildermergeFrom(com.google.protobuf.Message other)Service.BuildermergeNetworkSettings(NetworkSettings value)Ingress settings for this service.Service.BuildermergeSplit(TrafficSplit value)Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Service.BuilderputAllLabels(Map<String,String> values)A set of labels to apply to this service.Service.BuilderputLabels(String key, String value)A set of labels to apply to this service.Service.BuilderremoveLabels(String key)A set of labels to apply to this service.Service.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Service.BuildersetId(String value)Relative name of the service within the application.Service.BuildersetIdBytes(com.google.protobuf.ByteString value)Relative name of the service within the application.Service.BuildersetName(String value)Full path to the Service resource in the API.Service.BuildersetNameBytes(com.google.protobuf.ByteString value)Full path to the Service resource in the API.Service.BuildersetNetworkSettings(NetworkSettings value)Ingress settings for this service.Service.BuildersetNetworkSettings(NetworkSettings.Builder builderForValue)Ingress settings for this service.Service.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Service.BuildersetSplit(TrafficSplit value)Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.BuildersetSplit(TrafficSplit.Builder builderForValue)Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clear
public Service.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.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.GeneratedMessageV3.Builder<Service.Builder>
-
getDefaultInstanceForType
public Service getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Service build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Service buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Service.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
setField
public Service.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clearField
public Service.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clearOneof
public Service.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
setRepeatedField
public Service.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
addRepeatedField
public Service.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(Service other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeFrom
public Service.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<Service.Builder>- Throws:
IOException
-
getName
public String getName()
Full path to the Service resource in the API. Example: `apps/myapp/services/default`. @OutputOnly
string name = 1;- Specified by:
getNamein interfaceServiceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Full path to the Service resource in the API. Example: `apps/myapp/services/default`. @OutputOnly
string name = 1;- Specified by:
getNameBytesin interfaceServiceOrBuilder- Returns:
- The bytes for name.
-
setName
public Service.Builder setName(String value)
Full path to the Service resource in the API. Example: `apps/myapp/services/default`. @OutputOnly
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Service.Builder clearName()
Full path to the Service resource in the API. Example: `apps/myapp/services/default`. @OutputOnly
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Service.Builder setNameBytes(com.google.protobuf.ByteString value)
Full path to the Service resource in the API. Example: `apps/myapp/services/default`. @OutputOnly
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getId
public String getId()
Relative name of the service within the application. Example: `default`. @OutputOnly
string id = 2;- Specified by:
getIdin interfaceServiceOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Relative name of the service within the application. Example: `default`. @OutputOnly
string id = 2;- Specified by:
getIdBytesin interfaceServiceOrBuilder- Returns:
- The bytes for id.
-
setId
public Service.Builder setId(String value)
Relative name of the service within the application. Example: `default`. @OutputOnly
string id = 2;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Service.Builder clearId()
Relative name of the service within the application. Example: `default`. @OutputOnly
string id = 2;- Returns:
- This builder for chaining.
-
setIdBytes
public Service.Builder setIdBytes(com.google.protobuf.ByteString value)
Relative name of the service within the application. Example: `default`. @OutputOnly
string id = 2;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasSplit
public boolean hasSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;- Specified by:
hasSplitin interfaceServiceOrBuilder- Returns:
- Whether the split field is set.
-
getSplit
public TrafficSplit getSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;- Specified by:
getSplitin interfaceServiceOrBuilder- Returns:
- The split.
-
setSplit
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;
-
setSplit
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;
-
mergeSplit
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;
-
clearSplit
public Service.Builder clearSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
-
getSplitBuilder
public TrafficSplit.Builder getSplitBuilder()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;
-
getSplitOrBuilder
public TrafficSplitOrBuilder getSplitOrBuilder()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.
.google.appengine.v1.TrafficSplit split = 3;- Specified by:
getSplitOrBuilderin interfaceServiceOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ServiceOrBuilderA 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;- Specified by:
getLabelsCountin interfaceServiceOrBuilder
-
containsLabels
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;- Specified by:
containsLabelsin interfaceServiceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceServiceOrBuilder
-
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;- Specified by:
getLabelsMapin interfaceServiceOrBuilder
-
getLabelsOrDefault
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;- Specified by:
getLabelsOrDefaultin interfaceServiceOrBuilder
-
getLabelsOrThrow
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;- Specified by:
getLabelsOrThrowin interfaceServiceOrBuilder
-
clearLabels
public Service.Builder clearLabels()
-
removeLabels
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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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;
-
putAllLabels
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;
-
hasNetworkSettings
public boolean hasNetworkSettings()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;- Specified by:
hasNetworkSettingsin interfaceServiceOrBuilder- Returns:
- Whether the networkSettings field is set.
-
getNetworkSettings
public NetworkSettings getNetworkSettings()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;- Specified by:
getNetworkSettingsin interfaceServiceOrBuilder- Returns:
- The networkSettings.
-
setNetworkSettings
public Service.Builder setNetworkSettings(NetworkSettings value)
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
-
setNetworkSettings
public Service.Builder setNetworkSettings(NetworkSettings.Builder builderForValue)
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
-
mergeNetworkSettings
public Service.Builder mergeNetworkSettings(NetworkSettings value)
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
-
clearNetworkSettings
public Service.Builder clearNetworkSettings()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
-
getNetworkSettingsBuilder
public NetworkSettings.Builder getNetworkSettingsBuilder()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;
-
getNetworkSettingsOrBuilder
public NetworkSettingsOrBuilder getNetworkSettingsOrBuilder()
Ingress settings for this service. Will apply to all versions.
.google.appengine.v1.NetworkSettings network_settings = 6;- Specified by:
getNetworkSettingsOrBuilderin interfaceServiceOrBuilder
-
setUnknownFields
public final Service.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeUnknownFields
public final Service.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
-