/** * * * <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 value) { if (appEngineRoutingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appEngineRouting_ = value; onChanged(); } else { appEngineRoutingBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The relative URI. * The relative URL must begin with "/" and must be a valid HTTP relative URL. * It can contain a path, query string arguments, and `#` fragments. * If the relative URL is empty, then the root path "/" will be used. * No spaces are allowed, and the maximum length allowed is 2083 characters. * </pre> * * <code>string relative_uri = 3;</code> */ public Builder setRelativeUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); relativeUri_ = value; onChanged(); return this; }
/** * * * <pre> * Body. * HTTP request body. A request body is allowed only if the HTTP method is * POST or PUT. It will result in invalid argument error to set a body on a * job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. * </pre> * * <code>bytes body = 5;</code> */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } body_ = 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> * The relative URI. * The relative URL must begin with "/" and must be a valid HTTP relative URL. * It can contain a path, query string arguments, and `#` fragments. * If the relative URL is empty, then the root path "/" will be used. * No spaces are allowed, and the maximum length allowed is 2083 characters. * </pre> * * <code>string relative_uri = 3;</code> */ public Builder setRelativeUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } relativeUri_ = value; onChanged(); return this; } /**
public Builder mergeFrom(com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget other) { if (other == com.google.cloud.scheduler.v1beta1.AppEngineHttpTarget.getDefaultInstance()) return this; if (other.httpMethod_ != 0) { setHttpMethodValue(other.getHttpMethodValue()); } if (other.hasAppEngineRouting()) { mergeAppEngineRouting(other.getAppEngineRouting()); } if (!other.getRelativeUri().isEmpty()) { relativeUri_ = other.relativeUri_; onChanged(); } internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { setBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The HTTP method to use for the request. PATCH and OPTIONS are not * permitted. * </pre> * * <code>.google.cloud.scheduler.v1beta1.HttpMethod http_method = 1;</code> */ public Builder setHttpMethod(com.google.cloud.scheduler.v1beta1.HttpMethod value) { if (value == null) { throw new NullPointerException(); } httpMethod_ = value.getNumber(); 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 clearAppEngineRouting() { if (appEngineRoutingBuilder_ == null) { appEngineRouting_ = null; onChanged(); } else { appEngineRouting_ = null; appEngineRoutingBuilder_ = null; } return this; } /**
/** * * * <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; } /**
/** * * * <pre> * The relative URI. * The relative URL must begin with "/" and must be a valid HTTP relative URL. * It can contain a path, query string arguments, and `#` fragments. * If the relative URL is empty, then the root path "/" will be used. * No spaces are allowed, and the maximum length allowed is 2083 characters. * </pre> * * <code>string relative_uri = 3;</code> */ public Builder clearRelativeUri() { relativeUri_ = getDefaultInstance().getRelativeUri(); onChanged(); return this; } /**
/** * * * <pre> * Body. * HTTP request body. A request body is allowed only if the HTTP method is * POST or PUT. It will result in invalid argument error to set a body on a * job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. * </pre> * * <code>bytes body = 5;</code> */ public Builder clearBody() { body_ = getDefaultInstance().getBody(); onChanged(); return this; }
/** * * * <pre> * The HTTP method to use for the request. PATCH and OPTIONS are not * permitted. * </pre> * * <code>.google.cloud.scheduler.v1beta1.HttpMethod http_method = 1;</code> */ public Builder setHttpMethodValue(int value) { httpMethod_ = value; onChanged(); return this; } /**
/** * * * <pre> * The HTTP method to use for the request. PATCH and OPTIONS are not * permitted. * </pre> * * <code>.google.cloud.scheduler.v1beta1.HttpMethod http_method = 1;</code> */ public Builder clearHttpMethod() { httpMethod_ = 0; onChanged(); return this; }
/** * * * <pre> * App Engine Routing setting for the job. * </pre> * * <code>.google.cloud.scheduler.v1beta1.AppEngineRouting app_engine_routing = 2;</code> */ public com.google.cloud.scheduler.v1beta1.AppEngineRouting.Builder getAppEngineRoutingBuilder() { onChanged(); return getAppEngineRoutingFieldBuilder().getBuilder(); } /**
private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetMutableHeaders() { onChanged(); ; if (headers_ == null) { headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); } if (!headers_.isMutable()) { headers_ = headers_.copy(); } return headers_; }