public static final class VpcPeeringConfig.Builder extends GeneratedMessageV3.Builder<VpcPeeringConfig.Builder> implements VpcPeeringConfigOrBuilder
The VPC Peering configuration is used to create VPC peering between
Datastream and the consumer's VPC.
Protobuf type google.cloud.datastream.v1.VpcPeeringConfig
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VpcPeeringConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public VpcPeeringConfig build()
buildPartial()
public VpcPeeringConfig buildPartial()
clear()
public VpcPeeringConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public VpcPeeringConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public VpcPeeringConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSubnet()
public VpcPeeringConfig.Builder clearSubnet()
Required. A free subnet for peering. (CIDR of /29)
string subnet = 2 [(.google.api.field_behavior) = REQUIRED];
clearVpc()
public VpcPeeringConfig.Builder clearVpc()
Required. Fully qualified name of the VPC that Datastream will peer to.
Format: projects/{project}/global/{networks}/{name}
string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public VpcPeeringConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public VpcPeeringConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSubnet()
public String getSubnet()
Required. A free subnet for peering. (CIDR of /29)
string subnet = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
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 |
Type |
Description |
ByteString |
The bytes for subnet.
|
getVpc()
Required. Fully qualified name of the VPC that Datastream will peer to.
Format: projects/{project}/global/{networks}/{name}
string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The vpc.
|
getVpcBytes()
public ByteString getVpcBytes()
Required. Fully qualified name of the VPC that Datastream will peer to.
Format: projects/{project}/global/{networks}/{name}
string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for vpc.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(VpcPeeringConfig other)
public VpcPeeringConfig.Builder mergeFrom(VpcPeeringConfig other)
public VpcPeeringConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public VpcPeeringConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VpcPeeringConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public VpcPeeringConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VpcPeeringConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSubnet(String value)
public VpcPeeringConfig.Builder setSubnet(String value)
Required. A free subnet for peering. (CIDR of /29)
string subnet = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The subnet to set.
|
setSubnetBytes(ByteString value)
public VpcPeeringConfig.Builder setSubnetBytes(ByteString value)
Required. A free subnet for peering. (CIDR of /29)
string subnet = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for subnet to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final VpcPeeringConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setVpc(String value)
public VpcPeeringConfig.Builder setVpc(String value)
Required. Fully qualified name of the VPC that Datastream will peer to.
Format: projects/{project}/global/{networks}/{name}
string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The vpc to set.
|
setVpcBytes(ByteString value)
public VpcPeeringConfig.Builder setVpcBytes(ByteString value)
Required. Fully qualified name of the VPC that Datastream will peer to.
Format: projects/{project}/global/{networks}/{name}
string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for vpc to set.
|