Class CreateGatewayRequest (0.11.0)

public final class CreateGatewayRequest extends GeneratedMessageV3 implements CreateGatewayRequestOrBuilder

Request used by the CreateGateway method.

Protobuf type google.cloud.networkservices.v1.CreateGatewayRequest

Static Fields

GATEWAY_FIELD_NUMBER

public static final int GATEWAY_FIELD_NUMBER
Field Value
Type Description
int

GATEWAY_ID_FIELD_NUMBER

public static final int GATEWAY_ID_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateGatewayRequest getDefaultInstance()
Returns
Type Description
CreateGatewayRequest

getDescriptor()

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

newBuilder()

public static CreateGatewayRequest.Builder newBuilder()
Returns
Type Description
CreateGatewayRequest.Builder

newBuilder(CreateGatewayRequest prototype)

public static CreateGatewayRequest.Builder newBuilder(CreateGatewayRequest prototype)
Parameter
Name Description
prototype CreateGatewayRequest
Returns
Type Description
CreateGatewayRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateGatewayRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateGatewayRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateGatewayRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateGatewayRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateGatewayRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateGatewayRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateGatewayRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateGatewayRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateGatewayRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateGatewayRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateGatewayRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateGatewayRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGatewayRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateGatewayRequest> parser()
Returns
Type Description
Parser<CreateGatewayRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateGatewayRequest getDefaultInstanceForType()
Returns
Type Description
CreateGatewayRequest

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.

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.

getParserForType()

public Parser<CreateGatewayRequest> getParserForType()
Returns
Type Description
Parser<CreateGatewayRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateGatewayRequest.Builder newBuilderForType()
Returns
Type Description
CreateGatewayRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateGatewayRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateGatewayRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateGatewayRequest.Builder toBuilder()
Returns
Type Description
CreateGatewayRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException