Class CreateGatewayRequest.Builder (2.31.0)

publicstaticfinalclass CreateGatewayRequest.BuilderextendsGeneratedMessageV3.Builder<CreateGatewayRequest.Builder>implementsCreateGatewayRequestOrBuilder

Request message for ApiGatewayService.CreateGateway

Protobuf type google.cloud.apigateway.v1.CreateGatewayRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateGatewayRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

build()

publicCreateGatewayRequestbuild()
Returns
Type Description
CreateGatewayRequest

buildPartial()

publicCreateGatewayRequestbuildPartial()
Returns
Type Description
CreateGatewayRequest

clear()

publicCreateGatewayRequest.Builderclear()
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateGatewayRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

clearGateway()

publicCreateGatewayRequest.BuilderclearGateway()

Required. Gateway resource.

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

Returns
Type Description
CreateGatewayRequest.Builder

clearGatewayId()

publicCreateGatewayRequest.BuilderclearGatewayId()

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)

publicCreateGatewayRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

clearParent()

publicCreateGatewayRequest.BuilderclearParent()

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()

publicCreateGatewayRequest.Builderclone()
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateGatewayRequestgetDefaultInstanceForType()
Returns
Type Description
CreateGatewayRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGateway()

publicGatewaygetGateway()

Required. Gateway resource.

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

Returns
Type Description
Gateway

The gateway.

getGatewayBuilder()

publicGateway.BuildergetGatewayBuilder()

Required. Gateway resource.

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

Returns
Type Description
Gateway.Builder

getGatewayId()

publicStringgetGatewayId()

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()

publicByteStringgetGatewayIdBytes()

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()

publicGatewayOrBuildergetGatewayOrBuilder()

Required. Gateway resource.

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

Returns
Type Description
GatewayOrBuilder

getParent()

publicStringgetParent()

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()

publicByteStringgetParentBytes()

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()

publicbooleanhasGateway()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGatewayRequest other)

publicCreateGatewayRequest.BuildermergeFrom(CreateGatewayRequestother)
Parameter
Name Description
other CreateGatewayRequest
Returns
Type Description
CreateGatewayRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateGatewayRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCreateGatewayRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

mergeGateway(Gateway value)

publicCreateGatewayRequest.BuildermergeGateway(Gatewayvalue)

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)

publicfinalCreateGatewayRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateGatewayRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

setGateway(Gateway value)

publicCreateGatewayRequest.BuildersetGateway(Gatewayvalue)

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)

publicCreateGatewayRequest.BuildersetGateway(Gateway.BuilderbuilderForValue)

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)

publicCreateGatewayRequest.BuildersetGatewayId(Stringvalue)

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)

publicCreateGatewayRequest.BuildersetGatewayIdBytes(ByteStringvalue)

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)

publicCreateGatewayRequest.BuildersetParent(Stringvalue)

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)

publicCreateGatewayRequest.BuildersetParentBytes(ByteStringvalue)

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)

publicCreateGatewayRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateGatewayRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.