public static final class HttpTarget.Builder extends GeneratedMessageV3.Builder<HttpTarget.Builder> implements HttpTargetOrBuilder
Http target. The job will be pushed to the job handler by means of an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.HttpTarget.http_method] such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. A failure to receive a response constitutes a failed execution. For a redirected request, the response returned by the redirected request is considered.Protobuf type
google.cloud.scheduler.v1beta1.HttpTarget
Modifier and Type | Method and Description |
---|---|
HttpTarget.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
HttpTarget |
build() |
HttpTarget |
buildPartial() |
HttpTarget.Builder |
clear() |
HttpTarget.Builder |
clearAuthorizationHeader() |
HttpTarget.Builder |
clearBody()
HTTP request body.
|
HttpTarget.Builder |
clearField(Descriptors.FieldDescriptor field) |
HttpTarget.Builder |
clearHeaders() |
HttpTarget.Builder |
clearHttpMethod()
Which HTTP method to use for the request.
|
HttpTarget.Builder |
clearOauthToken()
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
HttpTarget.Builder |
clearOidcToken()
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
HttpTarget.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
HttpTarget.Builder |
clearUri()
Required.
|
HttpTarget.Builder |
clone() |
boolean |
containsHeaders(String key)
The user can specify HTTP request headers to send with the job's
HTTP request.
|
HttpTarget.AuthorizationHeaderCase |
getAuthorizationHeaderCase() |
ByteString |
getBody()
HTTP request body.
|
HttpTarget |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getHeaders()
Deprecated.
|
int |
getHeadersCount()
The user can specify HTTP request headers to send with the job's
HTTP request.
|
Map<String,String> |
getHeadersMap()
The user can specify HTTP request headers to send with the job's
HTTP request.
|
String |
getHeadersOrDefault(String key,
String defaultValue)
The user can specify HTTP request headers to send with the job's
HTTP request.
|
String |
getHeadersOrThrow(String key)
The user can specify HTTP request headers to send with the job's
HTTP request.
|
HttpMethod |
getHttpMethod()
Which HTTP method to use for the request.
|
int |
getHttpMethodValue()
Which HTTP method to use for the request.
|
Map<String,String> |
getMutableHeaders()
Deprecated.
|
OAuthToken |
getOauthToken()
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
OAuthToken.Builder |
getOauthTokenBuilder()
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
OAuthTokenOrBuilder |
getOauthTokenOrBuilder()
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
OidcToken |
getOidcToken()
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
OidcToken.Builder |
getOidcTokenBuilder()
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
OidcTokenOrBuilder |
getOidcTokenOrBuilder()
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
String |
getUri()
Required.
|
ByteString |
getUriBytes()
Required.
|
boolean |
hasOauthToken()
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
boolean |
hasOidcToken()
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
HttpTarget.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
HttpTarget.Builder |
mergeFrom(HttpTarget other) |
HttpTarget.Builder |
mergeFrom(Message other) |
HttpTarget.Builder |
mergeOauthToken(OAuthToken value)
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
HttpTarget.Builder |
mergeOidcToken(OidcToken value)
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
HttpTarget.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
HttpTarget.Builder |
putAllHeaders(Map<String,String> values)
The user can specify HTTP request headers to send with the job's
HTTP request.
|
HttpTarget.Builder |
putHeaders(String key,
String value)
The user can specify HTTP request headers to send with the job's
HTTP request.
|
HttpTarget.Builder |
removeHeaders(String key)
The user can specify HTTP request headers to send with the job's
HTTP request.
|
HttpTarget.Builder |
setBody(ByteString value)
HTTP request body.
|
HttpTarget.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
HttpTarget.Builder |
setHttpMethod(HttpMethod value)
Which HTTP method to use for the request.
|
HttpTarget.Builder |
setHttpMethodValue(int value)
Which HTTP method to use for the request.
|
HttpTarget.Builder |
setOauthToken(OAuthToken.Builder builderForValue)
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
HttpTarget.Builder |
setOauthToken(OAuthToken value)
If specified, an
[OAuth token](https://developers.google.com/identity/protocols/OAuth2)
will be generated and attached as an `Authorization` header in the HTTP
request.
|
HttpTarget.Builder |
setOidcToken(OidcToken.Builder builderForValue)
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
HttpTarget.Builder |
setOidcToken(OidcToken value)
If specified, an
[OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
token will be generated and attached as an `Authorization` header in the
HTTP request.
|
HttpTarget.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
HttpTarget.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
HttpTarget.Builder |
setUri(String value)
Required.
|
HttpTarget.Builder |
setUriBytes(ByteString value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public HttpTarget build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public HttpTarget buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public HttpTarget.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<HttpTarget.Builder>
public HttpTarget.Builder mergeFrom(HttpTarget other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public HttpTarget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<HttpTarget.Builder>
IOException
public HttpTarget.AuthorizationHeaderCase getAuthorizationHeaderCase()
getAuthorizationHeaderCase
in interface HttpTargetOrBuilder
public HttpTarget.Builder clearAuthorizationHeader()
public String getUri()
Required. The full URI path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples of valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding.
string uri = 1;
getUri
in interface HttpTargetOrBuilder
public ByteString getUriBytes()
Required. The full URI path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples of valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding.
string uri = 1;
getUriBytes
in interface HttpTargetOrBuilder
public HttpTarget.Builder setUri(String value)
Required. The full URI path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples of valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding.
string uri = 1;
value
- The uri to set.public HttpTarget.Builder clearUri()
Required. The full URI path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples of valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding.
string uri = 1;
public HttpTarget.Builder setUriBytes(ByteString value)
Required. The full URI path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples of valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding.
string uri = 1;
value
- The bytes for uri to set.public int getHttpMethodValue()
Which HTTP method to use for the request.
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
getHttpMethodValue
in interface HttpTargetOrBuilder
public HttpTarget.Builder setHttpMethodValue(int value)
Which HTTP method to use for the request.
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
value
- The enum numeric value on the wire for httpMethod to set.public HttpMethod getHttpMethod()
Which HTTP method to use for the request.
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
getHttpMethod
in interface HttpTargetOrBuilder
public HttpTarget.Builder setHttpMethod(HttpMethod value)
Which HTTP method to use for the request.
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
value
- The httpMethod to set.public HttpTarget.Builder clearHttpMethod()
Which HTTP method to use for the request.
.google.cloud.scheduler.v1beta1.HttpMethod http_method = 2;
public int getHeadersCount()
HttpTargetOrBuilder
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.
map<string, string> headers = 3;
getHeadersCount
in interface HttpTargetOrBuilder
public boolean containsHeaders(String key)
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.
map<string, string> headers = 3;
containsHeaders
in interface HttpTargetOrBuilder
@Deprecated public Map<String,String> getHeaders()
getHeadersMap()
instead.getHeaders
in interface HttpTargetOrBuilder
public Map<String,String> getHeadersMap()
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.
map<string, string> headers = 3;
getHeadersMap
in interface HttpTargetOrBuilder
public String getHeadersOrDefault(String key, String defaultValue)
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.
map<string, string> headers = 3;
getHeadersOrDefault
in interface HttpTargetOrBuilder
public String getHeadersOrThrow(String key)
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.
map<string, string> headers = 3;
getHeadersOrThrow
in interface HttpTargetOrBuilder
public HttpTarget.Builder clearHeaders()
public HttpTarget.Builder removeHeaders(String key)
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.
map<string, string> headers = 3;
@Deprecated public Map<String,String> getMutableHeaders()
public HttpTarget.Builder putHeaders(String key, String value)
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.
map<string, string> headers = 3;
public HttpTarget.Builder putAllHeaders(Map<String,String> values)
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.
map<string, string> headers = 3;
public ByteString getBody()
HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod].
bytes body = 4;
getBody
in interface HttpTargetOrBuilder
public HttpTarget.Builder setBody(ByteString value)
HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod].
bytes body = 4;
value
- The body to set.public HttpTarget.Builder clearBody()
HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod].
bytes body = 4;
public boolean hasOauthToken()
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
hasOauthToken
in interface HttpTargetOrBuilder
public OAuthToken getOauthToken()
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
getOauthToken
in interface HttpTargetOrBuilder
public HttpTarget.Builder setOauthToken(OAuthToken value)
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
public HttpTarget.Builder setOauthToken(OAuthToken.Builder builderForValue)
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
public HttpTarget.Builder mergeOauthToken(OAuthToken value)
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
public HttpTarget.Builder clearOauthToken()
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
public OAuthToken.Builder getOauthTokenBuilder()
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
public OAuthTokenOrBuilder getOauthTokenOrBuilder()
If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
.google.cloud.scheduler.v1beta1.OAuthToken oauth_token = 5;
getOauthTokenOrBuilder
in interface HttpTargetOrBuilder
public boolean hasOidcToken()
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
hasOidcToken
in interface HttpTargetOrBuilder
public OidcToken getOidcToken()
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
getOidcToken
in interface HttpTargetOrBuilder
public HttpTarget.Builder setOidcToken(OidcToken value)
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
public HttpTarget.Builder setOidcToken(OidcToken.Builder builderForValue)
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
public HttpTarget.Builder mergeOidcToken(OidcToken value)
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
public HttpTarget.Builder clearOidcToken()
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
public OidcToken.Builder getOidcTokenBuilder()
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
public OidcTokenOrBuilder getOidcTokenOrBuilder()
If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) token will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.
.google.cloud.scheduler.v1beta1.OidcToken oidc_token = 6;
getOidcTokenOrBuilder
in interface HttpTargetOrBuilder
public final HttpTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
public final HttpTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<HttpTarget.Builder>
Copyright © 2022 Google LLC. All rights reserved.