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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Service
build()
Service
buildPartial()
Service.Builder
clear()
Service.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Service.Builder
clearId()
Relative name of the service within the application.Service.Builder
clearLabels()
Service.Builder
clearName()
Full path to the Service resource in the API.Service.Builder
clearNetworkSettings()
Ingress settings for this service.Service.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Service.Builder
clearSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.Builder
clone()
boolean
containsLabels(String key)
A set of labels to apply to this service.Service
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getId()
Relative name of the service within the application.com.google.protobuf.ByteString
getIdBytes()
Relative name of the service within the application.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
A set of labels to apply to this service.Map<String,String>
getLabelsMap()
A set of labels to apply to this service.String
getLabelsOrDefault(String key, String defaultValue)
A set of labels to apply to this service.String
getLabelsOrThrow(String key)
A set of labels to apply to this service.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Full path to the Service resource in the API.com.google.protobuf.ByteString
getNameBytes()
Full path to the Service resource in the API.NetworkSettings
getNetworkSettings()
Ingress settings for this service.NetworkSettings.Builder
getNetworkSettingsBuilder()
Ingress settings for this service.NetworkSettingsOrBuilder
getNetworkSettingsOrBuilder()
Ingress settings for this service.TrafficSplit
getSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.TrafficSplit.Builder
getSplitBuilder()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.TrafficSplitOrBuilder
getSplitOrBuilder()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.boolean
hasNetworkSettings()
Ingress settings for this service.boolean
hasSplit()
Mapping that defines fractional HTTP traffic diversion to different versions within the service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Service.Builder
mergeFrom(Service other)
Service.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Service.Builder
mergeFrom(com.google.protobuf.Message other)
Service.Builder
mergeNetworkSettings(NetworkSettings value)
Ingress settings for this service.Service.Builder
mergeSplit(TrafficSplit value)
Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Service.Builder
putAllLabels(Map<String,String> values)
A set of labels to apply to this service.Service.Builder
putLabels(String key, String value)
A set of labels to apply to this service.Service.Builder
removeLabels(String key)
A set of labels to apply to this service.Service.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Service.Builder
setId(String value)
Relative name of the service within the application.Service.Builder
setIdBytes(com.google.protobuf.ByteString value)
Relative name of the service within the application.Service.Builder
setName(String value)
Full path to the Service resource in the API.Service.Builder
setNameBytes(com.google.protobuf.ByteString value)
Full path to the Service resource in the API.Service.Builder
setNetworkSettings(NetworkSettings value)
Ingress settings for this service.Service.Builder
setNetworkSettings(NetworkSettings.Builder builderForValue)
Ingress settings for this service.Service.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Service.Builder
setSplit(TrafficSplit value)
Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.Builder
setSplit(TrafficSplit.Builder builderForValue)
Mapping that defines fractional HTTP traffic diversion to different versions within the service.Service.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clear
public Service.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
getDefaultInstanceForType
public Service getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Service build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Service buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Service.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
setField
public Service.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clearField
public Service.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clearOneof
public Service.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
setRepeatedField
public Service.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
addRepeatedField
public Service.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(Service other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getId
in 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:
getIdBytes
in 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:
hasSplit
in 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:
getSplit
in 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:
getSplitOrBuilder
in interfaceServiceOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ServiceOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceServiceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
hasNetworkSettings
in 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:
getNetworkSettings
in 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:
getNetworkSettingsOrBuilder
in interfaceServiceOrBuilder
-
setUnknownFields
public final Service.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeUnknownFields
public final Service.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
-