@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableHeaders(); default: throw new RuntimeException("Invalid map field number: " + number); } }
throw new java.lang.NullPointerException(); internalGetMutableHeaders().getMutableMap().put(key, value); return this;
/** * * * <pre> * The user can specify HTTP request headers to send with the job's * HTTP request. This map contains the header field names and * values. Repeated headers are not supported, but a header value can * contain commas. These headers represent a subset of the headers * that will accompany the job's HTTP request. Some HTTP request * headers will be ignored or replaced. A partial list of headers that * will be ignored or replaced is below: * - Host: This will be computed by Cloud Scheduler and derived from * [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri]. * * `Content-Length`: This will be computed by Cloud Scheduler. * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. * * `X-Google-*`: Google internal use only. * * `X-AppEngine-*`: Google internal use only. * The total size of headers must be less than 80KB. * </pre> * * <code>map<string, string> headers = 3;</code> */ public Builder removeHeaders(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableHeaders().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */
/** * * * <pre> * The user can specify HTTP request headers to send with the job's * HTTP request. This map contains the header field names and * values. Repeated headers are not supported, but a header value can * contain commas. These headers represent a subset of the headers * that will accompany the job's HTTP request. Some HTTP request * headers will be ignored or replaced. A partial list of headers that * will be ignored or replaced is below: * - Host: This will be computed by Cloud Scheduler and derived from * [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri]. * * `Content-Length`: This will be computed by Cloud Scheduler. * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. * * `X-Google-*`: Google internal use only. * * `X-AppEngine-*`: Google internal use only. * The total size of headers must be less than 80KB. * </pre> * * <code>map<string, string> headers = 3;</code> */ public Builder putAllHeaders(java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableHeaders().getMutableMap().putAll(values); return this; }
public Builder mergeFrom(com.google.cloud.scheduler.v1beta1.HttpTarget other) { if (other == com.google.cloud.scheduler.v1beta1.HttpTarget.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.httpMethod_ != 0) { setHttpMethodValue(other.getHttpMethodValue()); } internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { setBody(other.getBody()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder clearHeaders() { internalGetMutableHeaders().getMutableMap().clear(); return this; } /**
@java.lang.Override public Builder clear() { super.clear(); uri_ = ""; httpMethod_ = 0; internalGetMutableHeaders().clear(); body_ = com.google.protobuf.ByteString.EMPTY; return this; }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getMutableHeaders() { return internalGetMutableHeaders().getMutableMap(); } /**