/** * * * <pre> * App Engine Routing setting for the job. * </pre> * * <code>.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;</code> */ public Builder setAppEngineRouting( com.google.cloud.scheduler.v1beta1.AppEngineRouting.Builder builderForValue) { if (appEngineRoutingBuilder_ == null) { appEngineRouting_ = builderForValue.build(); onChanged(); } else { appEngineRoutingBuilder_.setMessage(builderForValue.build()); } return this; } /**
extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appEngineRouting_); appEngineRouting_ = subBuilder.buildPartial();
public Builder mergeFrom(com.google.cloud.scheduler.v1beta1.AppEngineRouting other) { if (other == com.google.cloud.scheduler.v1beta1.AppEngineRouting.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (!other.getInstance().isEmpty()) { instance_ = other.instance_; onChanged(); } if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
onChanged(); return this;
onChanged(); return this;
onChanged(); return this;
/** * * * <pre> * App instance. * By default, the job is sent to an instance which is available when * the job is attempted. * Requests can only be sent to a specific instance if * [manual scaling is used in App Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). * App Engine Flex does not support instances. For more information, see * [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) and * [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). * </pre> * * <code>string instance = 3;</code> */ public Builder setInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instance_ = value; onChanged(); return this; }
/** * * * <pre> * App Engine Routing setting for the job. * </pre> * * <code>.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;</code> */ public Builder mergeAppEngineRouting( com.google.cloud.scheduler.v1beta1.AppEngineRouting value) { if (appEngineRoutingBuilder_ == null) { if (appEngineRouting_ != null) { appEngineRouting_ = com.google.cloud.scheduler.v1beta1.AppEngineRouting.newBuilder(appEngineRouting_) .mergeFrom(value) .buildPartial(); } else { appEngineRouting_ = value; } onChanged(); } else { appEngineRoutingBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * App instance. * By default, the job is sent to an instance which is available when * the job is attempted. * Requests can only be sent to a specific instance if * [manual scaling is used in App Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). * App Engine Flex does not support instances. For more information, see * [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) and * [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). * </pre> * * <code>string instance = 3;</code> */ public Builder setInstance(java.lang.String value) { if (value == null) { throw new NullPointerException(); } instance_ = value; onChanged(); return this; } /**
/** * * * <pre> * App instance. * By default, the job is sent to an instance which is available when * the job is attempted. * Requests can only be sent to a specific instance if * [manual scaling is used in App Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). * App Engine Flex does not support instances. For more information, see * [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) and * [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). * </pre> * * <code>string instance = 3;</code> */ public Builder clearInstance() { instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /**
/** * * * <pre> * App version. * By default, the job is sent to the version which is the default * version when the job is attempted. * </pre> * * <code>string version = 2;</code> */ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /**
/** * * * <pre> * App service. * By default, the job is sent to the service which is the default * service when the job is attempted. * </pre> * * <code>string service = 1;</code> */ public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; onChanged(); return this; }
/** * * * <pre> * App version. * By default, the job is sent to the version which is the default * version when the job is attempted. * </pre> * * <code>string version = 2;</code> */ public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; }
/** * * * <pre> * App service. * By default, the job is sent to the service which is the default * service when the job is attempted. * </pre> * * <code>string service = 1;</code> */ public Builder setService(java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.scheduler.v1beta1.AppEngineRouting parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.scheduler.v1beta1.AppEngineRouting) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * App service. * By default, the job is sent to the service which is the default * service when the job is attempted. * </pre> * * <code>string service = 1;</code> */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /**
/** * * * <pre> * App version. * By default, the job is sent to the version which is the default * version when the job is attempted. * </pre> * * <code>string version = 2;</code> */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /**
public static Builder newBuilder(com.google.cloud.scheduler.v1beta1.AppEngineRouting prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); }
private Builder() { maybeForceBuilderInitialization(); }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); }