Class DestinationConfig.Builder (0.99.0)

public static final class DestinationConfig.Builder extends GeneratedMessage.Builder<DestinationConfig.Builder> implements DestinationConfigOrBuilder

Defines target endpoints used to connect to third-party sources.

Protobuf type google.cloud.discoveryengine.v1.DestinationConfig

Static Methods

getDescriptor()

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

Methods

addAllDestinations(Iterable<? extends DestinationConfig.Destination> values)

public DestinationConfig.Builder addAllDestinations(Iterable<? extends DestinationConfig.Destination> values)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.DestinationConfig.Destination>
Returns
Type Description
DestinationConfig.Builder

addDestinations(DestinationConfig.Destination value)

public DestinationConfig.Builder addDestinations(DestinationConfig.Destination value)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DestinationConfig.Destination
Returns
Type Description
DestinationConfig.Builder

addDestinations(DestinationConfig.Destination.Builder builderForValue)

public DestinationConfig.Builder addDestinations(DestinationConfig.Destination.Builder builderForValue)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DestinationConfig.Destination.Builder
Returns
Type Description
DestinationConfig.Builder

addDestinations(int index, DestinationConfig.Destination value)

public DestinationConfig.Builder addDestinations(int index, DestinationConfig.Destination value)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value DestinationConfig.Destination
Returns
Type Description
DestinationConfig.Builder

addDestinations(int index, DestinationConfig.Destination.Builder builderForValue)

public DestinationConfig.Builder addDestinations(int index, DestinationConfig.Destination.Builder builderForValue)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DestinationConfig.Destination.Builder
Returns
Type Description
DestinationConfig.Builder

addDestinationsBuilder()

public DestinationConfig.Destination.Builder addDestinationsBuilder()

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DestinationConfig.Destination.Builder

addDestinationsBuilder(int index)

public DestinationConfig.Destination.Builder addDestinationsBuilder(int index)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DestinationConfig.Destination.Builder

build()

public DestinationConfig build()
Returns
Type Description
DestinationConfig

buildPartial()

public DestinationConfig buildPartial()
Returns
Type Description
DestinationConfig

clear()

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

clearDestinationConfigParams()

public DestinationConfig.Builder clearDestinationConfigParams()
Returns
Type Description
DestinationConfig.Builder

clearDestinations()

public DestinationConfig.Builder clearDestinations()

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DestinationConfig.Builder

clearJsonParams()

public DestinationConfig.Builder clearJsonParams()

Additional parameters for this destination config in json string format.

string json_params = 4;

Returns
Type Description
DestinationConfig.Builder

This builder for chaining.

clearKey()

public DestinationConfig.Builder clearKey()

Optional. Unique destination identifier that is supported by the connector.

string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DestinationConfig.Builder

This builder for chaining.

clearParams()

public DestinationConfig.Builder clearParams()

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DestinationConfig.Builder

getDefaultInstanceForType()

public DestinationConfig getDefaultInstanceForType()
Returns
Type Description
DestinationConfig

getDescriptorForType()

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

getDestinationConfigParamsCase()

public DestinationConfig.DestinationConfigParamsCase getDestinationConfigParamsCase()
Returns
Type Description
DestinationConfig.DestinationConfigParamsCase

getDestinations(int index)

public DestinationConfig.Destination getDestinations(int index)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DestinationConfig.Destination

getDestinationsBuilder(int index)

public DestinationConfig.Destination.Builder getDestinationsBuilder(int index)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DestinationConfig.Destination.Builder

getDestinationsBuilderList()

public List<DestinationConfig.Destination.Builder> getDestinationsBuilderList()

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getDestinationsCount()

public int getDestinationsCount()

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDestinationsList()

public List<DestinationConfig.Destination> getDestinationsList()

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Destination>

getDestinationsOrBuilder(int index)

public DestinationConfig.DestinationOrBuilder getDestinationsOrBuilder(int index)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DestinationConfig.DestinationOrBuilder

getDestinationsOrBuilderList()

public List<? extends DestinationConfig.DestinationOrBuilder> getDestinationsOrBuilderList()

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.DestinationConfig.DestinationOrBuilder>

getJsonParams()

public String getJsonParams()

Additional parameters for this destination config in json string format.

string json_params = 4;

Returns
Type Description
String

The jsonParams.

getJsonParamsBytes()

public ByteString getJsonParamsBytes()

Additional parameters for this destination config in json string format.

string json_params = 4;

Returns
Type Description
ByteString

The bytes for jsonParams.

getKey()

public String getKey()

Optional. Unique destination identifier that is supported by the connector.

string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Optional. Unique destination identifier that is supported by the connector.

string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for key.

getParams()

public Struct getParams()

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The params.

getParamsBuilder()

public Struct.Builder getParamsBuilder()

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getParamsOrBuilder()

public StructOrBuilder getParamsOrBuilder()

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

hasJsonParams()

public boolean hasJsonParams()

Additional parameters for this destination config in json string format.

string json_params = 4;

Returns
Type Description
boolean

Whether the jsonParams field is set.

hasParams()

public boolean hasParams()

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the params field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DestinationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParams(Struct value)

public DestinationConfig.Builder mergeParams(Struct value)

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
DestinationConfig.Builder

removeDestinations(int index)

public DestinationConfig.Builder removeDestinations(int index)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DestinationConfig.Builder

setDestinations(int index, DestinationConfig.Destination value)

public DestinationConfig.Builder setDestinations(int index, DestinationConfig.Destination value)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value DestinationConfig.Destination
Returns
Type Description
DestinationConfig.Builder

setDestinations(int index, DestinationConfig.Destination.Builder builderForValue)

public DestinationConfig.Builder setDestinations(int index, DestinationConfig.Destination.Builder builderForValue)

Optional. The destinations for the corresponding key.

repeated .google.cloud.discoveryengine.v1.DestinationConfig.Destination destinations = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue DestinationConfig.Destination.Builder
Returns
Type Description
DestinationConfig.Builder

setJsonParams(String value)

public DestinationConfig.Builder setJsonParams(String value)

Additional parameters for this destination config in json string format.

string json_params = 4;

Parameter
Name Description
value String

The jsonParams to set.

Returns
Type Description
DestinationConfig.Builder

This builder for chaining.

setJsonParamsBytes(ByteString value)

public DestinationConfig.Builder setJsonParamsBytes(ByteString value)

Additional parameters for this destination config in json string format.

string json_params = 4;

Parameter
Name Description
value ByteString

The bytes for jsonParams to set.

Returns
Type Description
DestinationConfig.Builder

This builder for chaining.

setKey(String value)

public DestinationConfig.Builder setKey(String value)

Optional. Unique destination identifier that is supported by the connector.

string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
DestinationConfig.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public DestinationConfig.Builder setKeyBytes(ByteString value)

Optional. Unique destination identifier that is supported by the connector.

string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
DestinationConfig.Builder

This builder for chaining.

setParams(Struct value)

public DestinationConfig.Builder setParams(Struct value)

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
DestinationConfig.Builder

setParams(Struct.Builder builderForValue)

public DestinationConfig.Builder setParams(Struct.Builder builderForValue)

Optional. Additional parameters for this destination config in structured json format.

.google.protobuf.Struct params = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DestinationConfig.Builder