Class HttpEndpoint.Builder (1.83.0)

public static final class HttpEndpoint.Builder extends GeneratedMessage.Builder<HttpEndpoint.Builder> implements HttpEndpointOrBuilder

Represents a HTTP endpoint destination.

Protobuf type google.cloud.eventarc.v1.HttpEndpoint

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public HttpEndpoint build()
Returns
Type Description
HttpEndpoint

buildPartial()

public HttpEndpoint buildPartial()
Returns
Type Description
HttpEndpoint

clear()

public HttpEndpoint.Builder clear()
Returns
Type Description
HttpEndpoint.Builder
Overrides

clearUri()

public HttpEndpoint.Builder clearUri()

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string. Examples: http://10.10.10.8:80/route, http://svc.us-central1.p.local:8080/. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HttpEndpoint.Builder

This builder for chaining.

getDefaultInstanceForType()

public HttpEndpoint getDefaultInstanceForType()
Returns
Type Description
HttpEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUri()

public String getUri()

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string. Examples: http://10.10.10.8:80/route, http://svc.us-central1.p.local:8080/. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string. Examples: http://10.10.10.8:80/route, http://svc.us-central1.p.local:8080/. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpEndpoint other)

public HttpEndpoint.Builder mergeFrom(HttpEndpoint other)
Parameter
Name Description
other HttpEndpoint
Returns
Type Description
HttpEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpEndpoint.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpEndpoint.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpEndpoint.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpEndpoint.Builder
Overrides

setUri(String value)

public HttpEndpoint.Builder setUri(String value)

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string. Examples: http://10.10.10.8:80/route, http://svc.us-central1.p.local:8080/. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
HttpEndpoint.Builder

This builder for chaining.

setUriBytes(ByteString value)

public HttpEndpoint.Builder setUriBytes(ByteString value)

Required. The URI of the HTTP endpoint.

The value must be a RFC2396 URI string. Examples: http://10.10.10.8:80/route, http://svc.us-central1.p.local:8080/. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.

string uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
HttpEndpoint.Builder

This builder for chaining.