Class CreateGatewayRequest.Builder (2.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateGatewayRequest build()
Returns
TypeDescription
CreateGatewayRequest

buildPartial()

public CreateGatewayRequest buildPartial()
Returns
TypeDescription
CreateGatewayRequest

clear()

public CreateGatewayRequest.Builder clear()
Returns
TypeDescription
CreateGatewayRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGateway()

public CreateGatewayRequest.Builder clearGateway()

Required. Gateway resource.

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

Returns
TypeDescription
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
TypeDescription
CreateGatewayRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateGatewayRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateGatewayRequest.Builder

This builder for chaining.

clone()

public CreateGatewayRequest.Builder clone()
Returns
TypeDescription
CreateGatewayRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateGatewayRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateGatewayRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGateway()

public Gateway getGateway()

Required. Gateway resource.

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

Returns
TypeDescription
Gateway

The gateway.

getGatewayBuilder()

public Gateway.Builder getGatewayBuilder()

Required. Gateway resource.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the gateway field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateGatewayRequest other)

public CreateGatewayRequest.Builder mergeFrom(CreateGatewayRequest other)
Parameter
NameDescription
otherCreateGatewayRequest
Returns
TypeDescription
CreateGatewayRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateGatewayRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGateway
Returns
TypeDescription
CreateGatewayRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateGatewayRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGateway
Returns
TypeDescription
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
NameDescription
builderForValueGateway.Builder
Returns
TypeDescription
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
NameDescription
valueString

The gatewayId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gatewayId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateGatewayRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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