Class HttpEndpoint.Builder (1.55.0)

public static final class HttpEndpoint.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpEndpoint.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpEndpoint.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public HttpEndpoint.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpEndpoint.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpEndpoint.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpEndpoint.Builder
Overrides

clearUri()

public HttpEndpoint.Builder clearUri()

Required. The URI of the HTTP enpdoint.

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.

clone()

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

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 enpdoint.

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 enpdoint.

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpEndpoint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpEndpoint.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HttpEndpoint.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpEndpoint.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpEndpoint.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpEndpoint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpEndpoint.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpEndpoint.Builder
Overrides

setUri(String value)

public HttpEndpoint.Builder setUri(String value)

Required. The URI of the HTTP enpdoint.

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 enpdoint.

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.