Class CreateGatewayRequest.Builder (0.8.0)

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

Request used by the CreateGateway method.

Protobuf type google.cloud.networkservices.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 to be created.

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

Returns
Type Description
CreateGatewayRequest.Builder

clearGatewayId()

public CreateGatewayRequest.Builder clearGatewayId()

Required. Short name of the Gateway resource to be created.

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. The parent resource of the Gateway. Must be in the format 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 to be created.

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

Returns
Type Description
Gateway

The gateway.

getGatewayBuilder()

public Gateway.Builder getGatewayBuilder()

Required. Gateway resource to be created.

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

Returns
Type Description
Gateway.Builder

getGatewayId()

public String getGatewayId()

Required. Short name of the Gateway resource to be created.

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

Returns
Type Description
String

The gatewayId.

getGatewayIdBytes()

public ByteString getGatewayIdBytes()

Required. Short name of the Gateway resource to be created.

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

Returns
Type Description
ByteString

The bytes for gatewayId.

getGatewayOrBuilder()

public GatewayOrBuilder getGatewayOrBuilder()

Required. Gateway resource to be created.

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

Returns
Type Description
GatewayOrBuilder

getParent()

public String getParent()

Required. The parent resource of the Gateway. Must be in the format 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. The parent resource of the Gateway. Must be in the format 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 to be created.

.google.cloud.networkservices.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 to be created.

.google.cloud.networkservices.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 to be created.

.google.cloud.networkservices.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 to be created.

.google.cloud.networkservices.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. Short name of the Gateway resource to be created.

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. Short name of the Gateway resource to be created.

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. The parent resource of the Gateway. Must be in the format 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. The parent resource of the Gateway. Must be in the format 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