Package com.google.appengine.v1
Class EndpointsApiService.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder>
-
- com.google.appengine.v1.EndpointsApiService.Builder
-
- All Implemented Interfaces:
EndpointsApiServiceOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- EndpointsApiService
public static final class EndpointsApiService.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder> implements EndpointsApiServiceOrBuilder
[Cloud Endpoints](https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments. The fields here refer to the name and configuration ID of a "service" resource in the [Service Management API](https://cloud.google.com/service-management/overview).
Protobuf typegoogle.appengine.v1.EndpointsApiService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointsApiService.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EndpointsApiService
build()
EndpointsApiService
buildPartial()
EndpointsApiService.Builder
clear()
EndpointsApiService.Builder
clearConfigId()
Endpoints service configuration ID as specified by the Service Management API.EndpointsApiService.Builder
clearDisableTraceSampling()
Enable or disable trace sampling.EndpointsApiService.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EndpointsApiService.Builder
clearName()
Endpoints service name which is the name of the "service" resource in the Service Management API.EndpointsApiService.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EndpointsApiService.Builder
clearRolloutStrategy()
Endpoints rollout strategy.EndpointsApiService.Builder
clone()
String
getConfigId()
Endpoints service configuration ID as specified by the Service Management API.com.google.protobuf.ByteString
getConfigIdBytes()
Endpoints service configuration ID as specified by the Service Management API.EndpointsApiService
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getDisableTraceSampling()
Enable or disable trace sampling.String
getName()
Endpoints service name which is the name of the "service" resource in the Service Management API.com.google.protobuf.ByteString
getNameBytes()
Endpoints service name which is the name of the "service" resource in the Service Management API.EndpointsApiService.RolloutStrategy
getRolloutStrategy()
Endpoints rollout strategy.int
getRolloutStrategyValue()
Endpoints rollout strategy.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EndpointsApiService.Builder
mergeFrom(EndpointsApiService other)
EndpointsApiService.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EndpointsApiService.Builder
mergeFrom(com.google.protobuf.Message other)
EndpointsApiService.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EndpointsApiService.Builder
setConfigId(String value)
Endpoints service configuration ID as specified by the Service Management API.EndpointsApiService.Builder
setConfigIdBytes(com.google.protobuf.ByteString value)
Endpoints service configuration ID as specified by the Service Management API.EndpointsApiService.Builder
setDisableTraceSampling(boolean value)
Enable or disable trace sampling.EndpointsApiService.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EndpointsApiService.Builder
setName(String value)
Endpoints service name which is the name of the "service" resource in the Service Management API.EndpointsApiService.Builder
setNameBytes(com.google.protobuf.ByteString value)
Endpoints service name which is the name of the "service" resource in the Service Management API.EndpointsApiService.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EndpointsApiService.Builder
setRolloutStrategy(EndpointsApiService.RolloutStrategy value)
Endpoints rollout strategy.EndpointsApiService.Builder
setRolloutStrategyValue(int value)
Endpoints rollout strategy.EndpointsApiService.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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder>
-
clear
public EndpointsApiService.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<EndpointsApiService.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<EndpointsApiService.Builder>
-
getDefaultInstanceForType
public EndpointsApiService getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EndpointsApiService build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EndpointsApiService buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EndpointsApiService.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<EndpointsApiService.Builder>
-
setField
public EndpointsApiService.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<EndpointsApiService.Builder>
-
clearField
public EndpointsApiService.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<EndpointsApiService.Builder>
-
clearOneof
public EndpointsApiService.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<EndpointsApiService.Builder>
-
setRepeatedField
public EndpointsApiService.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<EndpointsApiService.Builder>
-
addRepeatedField
public EndpointsApiService.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<EndpointsApiService.Builder>
-
mergeFrom
public EndpointsApiService.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EndpointsApiService.Builder>
-
mergeFrom
public EndpointsApiService.Builder mergeFrom(EndpointsApiService other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder>
-
mergeFrom
public EndpointsApiService.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<EndpointsApiService.Builder>
- Throws:
IOException
-
getName
public String getName()
Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
string name = 1;
- Specified by:
getName
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
string name = 1;
- Specified by:
getNameBytes
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The bytes for name.
-
setName
public EndpointsApiService.Builder setName(String value)
Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public EndpointsApiService.Builder clearName()
Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public EndpointsApiService.Builder setNameBytes(com.google.protobuf.ByteString value)
Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getConfigId
public String getConfigId()
Endpoints service configuration ID as specified by the Service Management API. For example "2016-09-19r1". By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The `config_id` field is used to give the configuration ID and is required in this case. Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, `config_id` must be omitted.
string config_id = 2;
- Specified by:
getConfigId
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The configId.
-
getConfigIdBytes
public com.google.protobuf.ByteString getConfigIdBytes()
Endpoints service configuration ID as specified by the Service Management API. For example "2016-09-19r1". By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The `config_id` field is used to give the configuration ID and is required in this case. Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, `config_id` must be omitted.
string config_id = 2;
- Specified by:
getConfigIdBytes
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The bytes for configId.
-
setConfigId
public EndpointsApiService.Builder setConfigId(String value)
Endpoints service configuration ID as specified by the Service Management API. For example "2016-09-19r1". By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The `config_id` field is used to give the configuration ID and is required in this case. Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, `config_id` must be omitted.
string config_id = 2;
- Parameters:
value
- The configId to set.- Returns:
- This builder for chaining.
-
clearConfigId
public EndpointsApiService.Builder clearConfigId()
Endpoints service configuration ID as specified by the Service Management API. For example "2016-09-19r1". By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The `config_id` field is used to give the configuration ID and is required in this case. Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, `config_id` must be omitted.
string config_id = 2;
- Returns:
- This builder for chaining.
-
setConfigIdBytes
public EndpointsApiService.Builder setConfigIdBytes(com.google.protobuf.ByteString value)
Endpoints service configuration ID as specified by the Service Management API. For example "2016-09-19r1". By default, the rollout strategy for Endpoints is `RolloutStrategy.FIXED`. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The `config_id` field is used to give the configuration ID and is required in this case. Endpoints also has a rollout strategy called `RolloutStrategy.MANAGED`. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, `config_id` must be omitted.
string config_id = 2;
- Parameters:
value
- The bytes for configId to set.- Returns:
- This builder for chaining.
-
getRolloutStrategyValue
public int getRolloutStrategyValue()
Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If `MANAGED`, `config_id` must be omitted.
.google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
- Specified by:
getRolloutStrategyValue
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The enum numeric value on the wire for rolloutStrategy.
-
setRolloutStrategyValue
public EndpointsApiService.Builder setRolloutStrategyValue(int value)
Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If `MANAGED`, `config_id` must be omitted.
.google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
- Parameters:
value
- The enum numeric value on the wire for rolloutStrategy to set.- Returns:
- This builder for chaining.
-
getRolloutStrategy
public EndpointsApiService.RolloutStrategy getRolloutStrategy()
Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If `MANAGED`, `config_id` must be omitted.
.google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
- Specified by:
getRolloutStrategy
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The rolloutStrategy.
-
setRolloutStrategy
public EndpointsApiService.Builder setRolloutStrategy(EndpointsApiService.RolloutStrategy value)
Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If `MANAGED`, `config_id` must be omitted.
.google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
- Parameters:
value
- The rolloutStrategy to set.- Returns:
- This builder for chaining.
-
clearRolloutStrategy
public EndpointsApiService.Builder clearRolloutStrategy()
Endpoints rollout strategy. If `FIXED`, `config_id` must be specified. If `MANAGED`, `config_id` must be omitted.
.google.appengine.v1.EndpointsApiService.RolloutStrategy rollout_strategy = 3;
- Returns:
- This builder for chaining.
-
getDisableTraceSampling
public boolean getDisableTraceSampling()
Enable or disable trace sampling. By default, this is set to false for enabled.
bool disable_trace_sampling = 4;
- Specified by:
getDisableTraceSampling
in interfaceEndpointsApiServiceOrBuilder
- Returns:
- The disableTraceSampling.
-
setDisableTraceSampling
public EndpointsApiService.Builder setDisableTraceSampling(boolean value)
Enable or disable trace sampling. By default, this is set to false for enabled.
bool disable_trace_sampling = 4;
- Parameters:
value
- The disableTraceSampling to set.- Returns:
- This builder for chaining.
-
clearDisableTraceSampling
public EndpointsApiService.Builder clearDisableTraceSampling()
Enable or disable trace sampling. By default, this is set to false for enabled.
bool disable_trace_sampling = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final EndpointsApiService.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder>
-
mergeUnknownFields
public final EndpointsApiService.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EndpointsApiService.Builder>
-
-