Class AppConnection.Gateway.Builder (0.2.0)

public static final class AppConnection.Gateway.Builder extends GeneratedMessageV3.Builder<AppConnection.Gateway.Builder> implements AppConnection.GatewayOrBuilder

Gateway represents a user facing component that serves as an entrance to enable connectivity.

Protobuf type google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AppConnection.Gateway.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

build()

public AppConnection.Gateway build()
Returns
TypeDescription
AppConnection.Gateway

buildPartial()

public AppConnection.Gateway buildPartial()
Returns
TypeDescription
AppConnection.Gateway

clear()

public AppConnection.Gateway.Builder clear()
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

clearAppGateway()

public AppConnection.Gateway.Builder clearAppGateway()

Required. AppGateway name in following format: projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}

string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AppConnection.Gateway.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

clearIngressPort()

public AppConnection.Gateway.Builder clearIngressPort()

Output only. Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.

int32 ingress_port = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AppConnection.Gateway.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

clearType()

public AppConnection.Gateway.Builder clearType()

Required. The type of hosting used by the gateway.

.google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

clearUri()

public AppConnection.Gateway.Builder clearUri()

Output only. Server-defined URI for this resource.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

clone()

public AppConnection.Gateway.Builder clone()
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

getAppGateway()

public String getAppGateway()

Required. AppGateway name in following format: projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}

string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The appGateway.

getAppGatewayBytes()

public ByteString getAppGatewayBytes()

Required. AppGateway name in following format: projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}

string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for appGateway.

getDefaultInstanceForType()

public AppConnection.Gateway getDefaultInstanceForType()
Returns
TypeDescription
AppConnection.Gateway

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIngressPort()

public int getIngressPort()

Output only. Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.

int32 ingress_port = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The ingressPort.

getType()

public AppConnection.Gateway.Type getType()

Required. The type of hosting used by the gateway.

.google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AppConnection.Gateway.Type

The type.

getTypeValue()

public int getTypeValue()

Required. The type of hosting used by the gateway.

.google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUri()

public String getUri()

Output only. Server-defined URI for this resource.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. Server-defined URI for this resource.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AppConnection.Gateway other)

public AppConnection.Gateway.Builder mergeFrom(AppConnection.Gateway other)
Parameter
NameDescription
otherAppConnection.Gateway
Returns
TypeDescription
AppConnection.Gateway.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AppConnection.Gateway.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AppConnection.Gateway.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AppConnection.Gateway.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

setAppGateway(String value)

public AppConnection.Gateway.Builder setAppGateway(String value)

Required. AppGateway name in following format: projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}

string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The appGateway to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

setAppGatewayBytes(ByteString value)

public AppConnection.Gateway.Builder setAppGatewayBytes(ByteString value)

Required. AppGateway name in following format: projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}

string app_gateway = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for appGateway to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AppConnection.Gateway.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

setIngressPort(int value)

public AppConnection.Gateway.Builder setIngressPort(int value)

Output only. Ingress port reserved on the gateways for this AppConnection, if not specified or zero, the default port is 19443.

int32 ingress_port = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The ingressPort to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

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

public AppConnection.Gateway.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

setType(AppConnection.Gateway.Type value)

public AppConnection.Gateway.Builder setType(AppConnection.Gateway.Type value)

Required. The type of hosting used by the gateway.

.google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAppConnection.Gateway.Type

The type to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

setTypeValue(int value)

public AppConnection.Gateway.Builder setTypeValue(int value)

Required. The type of hosting used by the gateway.

.google.cloud.beyondcorp.appconnections.v1.AppConnection.Gateway.Type type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AppConnection.Gateway.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AppConnection.Gateway.Builder
Overrides

setUri(String value)

public AppConnection.Gateway.Builder setUri(String value)

Output only. Server-defined URI for this resource.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.

setUriBytes(ByteString value)

public AppConnection.Gateway.Builder setUriBytes(ByteString value)

Output only. Server-defined URI for this resource.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
AppConnection.Gateway.Builder

This builder for chaining.