Class CreateGatewayRequest.Builder (2.53.0)

public static final class CreateGatewayRequest.Builder extends GeneratedMessageV3.Builder<CreateGatewayRequest.Builder> implements CreateGatewayRequestOrBuilder

Request message for ApiGatewayService.CreateGateway

Protobuf type google.cloud.apigateway.v1.CreateGatewayRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateGatewayRequest build()
Returns
Type Description
CreateGatewayRequest

buildPartial()

public CreateGatewayRequest buildPartial()
Returns
Type Description
CreateGatewayRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGateway()

public CreateGatewayRequest.Builder clearGateway()

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGatewayRequest.Builder

clearGatewayId()

public CreateGatewayRequest.Builder clearGatewayId()

Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.

string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGatewayRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateGatewayRequest.Builder clearParent()

Required. Parent resource of the Gateway, of the form: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateGatewayRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateGatewayRequest getDefaultInstanceForType()
Returns
Type Description
CreateGatewayRequest

getDescriptorForType()

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

getGateway()

public Gateway getGateway()

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Gateway

The gateway.

getGatewayBuilder()

public Gateway.Builder getGatewayBuilder()

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Gateway.Builder

getGatewayId()

public String getGatewayId()

Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.

string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The gatewayId.

getGatewayIdBytes()

public ByteString getGatewayIdBytes()

Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.

string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for gatewayId.

getGatewayOrBuilder()

public GatewayOrBuilder getGatewayOrBuilder()

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GatewayOrBuilder

getParent()

public String getParent()

Required. Parent resource of the Gateway, of the form: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource of the Gateway, of the form: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasGateway()

public boolean hasGateway()

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gateway field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGatewayRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGateway(Gateway value)

public CreateGatewayRequest.Builder mergeGateway(Gateway value)

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Gateway
Returns
Type Description
CreateGatewayRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGateway(Gateway value)

public CreateGatewayRequest.Builder setGateway(Gateway value)

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Gateway
Returns
Type Description
CreateGatewayRequest.Builder

setGateway(Gateway.Builder builderForValue)

public CreateGatewayRequest.Builder setGateway(Gateway.Builder builderForValue)

Required. Gateway resource.

.google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Gateway.Builder
Returns
Type Description
CreateGatewayRequest.Builder

setGatewayId(String value)

public CreateGatewayRequest.Builder setGatewayId(String value)

Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.

string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The gatewayId to set.

Returns
Type Description
CreateGatewayRequest.Builder

This builder for chaining.

setGatewayIdBytes(ByteString value)

public CreateGatewayRequest.Builder setGatewayIdBytes(ByteString value)

Required. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.

string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for gatewayId to set.

Returns
Type Description
CreateGatewayRequest.Builder

This builder for chaining.

setParent(String value)

public CreateGatewayRequest.Builder setParent(String value)

Required. Parent resource of the Gateway, of the form: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateGatewayRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateGatewayRequest.Builder setParentBytes(ByteString value)

Required. Parent resource of the Gateway, of the form: projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateGatewayRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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