Class PrivateConnectivity.Builder (1.6.0)

public static final class PrivateConnectivity.Builder extends GeneratedMessageV3.Builder<PrivateConnectivity.Builder> implements PrivateConnectivityOrBuilder

Private Connectivity

Protobuf type google.cloud.datastream.v1.PrivateConnectivity

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PrivateConnectivity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

build()

public PrivateConnectivity build()
Returns
TypeDescription
PrivateConnectivity

buildPartial()

public PrivateConnectivity buildPartial()
Returns
TypeDescription
PrivateConnectivity

clear()

public PrivateConnectivity.Builder clear()
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PrivateConnectivity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PrivateConnectivity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

clearPrivateConnection()

public PrivateConnectivity.Builder clearPrivateConnection()

Required. A reference to a private connection resource. Format: projects/{project}/locations/{location}/privateConnections/{name}

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

Returns
TypeDescription
PrivateConnectivity.Builder

This builder for chaining.

clone()

public PrivateConnectivity.Builder clone()
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

getDefaultInstanceForType()

public PrivateConnectivity getDefaultInstanceForType()
Returns
TypeDescription
PrivateConnectivity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrivateConnection()

public String getPrivateConnection()

Required. A reference to a private connection resource. Format: projects/{project}/locations/{location}/privateConnections/{name}

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

Returns
TypeDescription
String

The privateConnection.

getPrivateConnectionBytes()

public ByteString getPrivateConnectionBytes()

Required. A reference to a private connection resource. Format: projects/{project}/locations/{location}/privateConnections/{name}

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

Returns
TypeDescription
ByteString

The bytes for privateConnection.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PrivateConnectivity other)

public PrivateConnectivity.Builder mergeFrom(PrivateConnectivity other)
Parameter
NameDescription
otherPrivateConnectivity
Returns
TypeDescription
PrivateConnectivity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PrivateConnectivity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PrivateConnectivity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PrivateConnectivity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PrivateConnectivity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

setPrivateConnection(String value)

public PrivateConnectivity.Builder setPrivateConnection(String value)

Required. A reference to a private connection resource. Format: projects/{project}/locations/{location}/privateConnections/{name}

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

Parameter
NameDescription
valueString

The privateConnection to set.

Returns
TypeDescription
PrivateConnectivity.Builder

This builder for chaining.

setPrivateConnectionBytes(ByteString value)

public PrivateConnectivity.Builder setPrivateConnectionBytes(ByteString value)

Required. A reference to a private connection resource. Format: projects/{project}/locations/{location}/privateConnections/{name}

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

Parameter
NameDescription
valueByteString

The bytes for privateConnection to set.

Returns
TypeDescription
PrivateConnectivity.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PrivateConnectivity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PrivateConnectivity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PrivateConnectivity.Builder
Overrides