Class VpcPeeringConfig (1.30.0)

public final class VpcPeeringConfig extends GeneratedMessageV3 implements VpcPeeringConfigOrBuilder

The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC.

Protobuf type google.cloud.datastream.v1alpha1.VpcPeeringConfig

Static Fields

SUBNET_FIELD_NUMBER

public static final int SUBNET_FIELD_NUMBER
Field Value
TypeDescription
int

VPC_NAME_FIELD_NUMBER

public static final int VPC_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VpcPeeringConfig getDefaultInstance()
Returns
TypeDescription
VpcPeeringConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VpcPeeringConfig.Builder newBuilder()
Returns
TypeDescription
VpcPeeringConfig.Builder

newBuilder(VpcPeeringConfig prototype)

public static VpcPeeringConfig.Builder newBuilder(VpcPeeringConfig prototype)
Parameter
NameDescription
prototypeVpcPeeringConfig
Returns
TypeDescription
VpcPeeringConfig.Builder

parseDelimitedFrom(InputStream input)

public static VpcPeeringConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcPeeringConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VpcPeeringConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VpcPeeringConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VpcPeeringConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VpcPeeringConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VpcPeeringConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcPeeringConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VpcPeeringConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcPeeringConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VpcPeeringConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VpcPeeringConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcPeeringConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VpcPeeringConfig> parser()
Returns
TypeDescription
Parser<VpcPeeringConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public VpcPeeringConfig getDefaultInstanceForType()
Returns
TypeDescription
VpcPeeringConfig

getParserForType()

public Parser<VpcPeeringConfig> getParserForType()
Returns
TypeDescription
Parser<VpcPeeringConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubnet()

public String getSubnet()

Required. A free subnet for peering. (CIDR of /29)

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

Returns
TypeDescription
String

The subnet.

getSubnetBytes()

public ByteString getSubnetBytes()

Required. A free subnet for peering. (CIDR of /29)

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

Returns
TypeDescription
ByteString

The bytes for subnet.

getVpcName()

public String getVpcName()

Required. fully qualified name of the VPC Datastream will peer to.

string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The vpcName.

getVpcNameBytes()

public ByteString getVpcNameBytes()

Required. fully qualified name of the VPC Datastream will peer to.

string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for vpcName.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VpcPeeringConfig.Builder newBuilderForType()
Returns
TypeDescription
VpcPeeringConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VpcPeeringConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VpcPeeringConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VpcPeeringConfig.Builder toBuilder()
Returns
TypeDescription
VpcPeeringConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException