Class PscInterfaceConfig.Builder (1.82.0)

public static final class PscInterfaceConfig.Builder extends GeneratedMessage.Builder<PscInterfaceConfig.Builder> implements PscInterfaceConfigOrBuilder

The PSC Interface configuration is used to create PSC Interface between Datastream and the consumer's PSC.

Protobuf type google.cloud.datastream.v1.PscInterfaceConfig

Static Methods

getDescriptor()

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

Methods

build()

public PscInterfaceConfig build()
Returns
Type Description
PscInterfaceConfig

buildPartial()

public PscInterfaceConfig buildPartial()
Returns
Type Description
PscInterfaceConfig

clear()

public PscInterfaceConfig.Builder clear()
Returns
Type Description
PscInterfaceConfig.Builder
Overrides

clearNetworkAttachment()

public PscInterfaceConfig.Builder clearNetworkAttachment()

Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: projects/{project}/regions/{region}/networkAttachments/{name}

string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
PscInterfaceConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public PscInterfaceConfig getDefaultInstanceForType()
Returns
Type Description
PscInterfaceConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetworkAttachment()

public String getNetworkAttachment()

Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: projects/{project}/regions/{region}/networkAttachments/{name}

string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The networkAttachment.

getNetworkAttachmentBytes()

public ByteString getNetworkAttachmentBytes()

Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: projects/{project}/regions/{region}/networkAttachments/{name}

string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for networkAttachment.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PscInterfaceConfig other)

public PscInterfaceConfig.Builder mergeFrom(PscInterfaceConfig other)
Parameter
Name Description
other PscInterfaceConfig
Returns
Type Description
PscInterfaceConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PscInterfaceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PscInterfaceConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PscInterfaceConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PscInterfaceConfig.Builder
Overrides

setNetworkAttachment(String value)

public PscInterfaceConfig.Builder setNetworkAttachment(String value)

Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: projects/{project}/regions/{region}/networkAttachments/{name}

string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The networkAttachment to set.

Returns
Type Description
PscInterfaceConfig.Builder

This builder for chaining.

setNetworkAttachmentBytes(ByteString value)

public PscInterfaceConfig.Builder setNetworkAttachmentBytes(ByteString value)

Required. Fully qualified name of the Network Attachment that Datastream will connect to. Format: projects/{project}/regions/{region}/networkAttachments/{name}

string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for networkAttachment to set.

Returns
Type Description
PscInterfaceConfig.Builder

This builder for chaining.