Class SipConfig.Builder (4.100.0)

public static final class SipConfig.Builder extends GeneratedMessage.Builder<SipConfig.Builder> implements SipConfigOrBuilder

Defines the SIP configuration.

Protobuf type google.cloud.dialogflow.v2beta1.SipConfig

Implements

SipConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllCopyInboundCallLegHeaders(Iterable<String> values)

public SipConfig.Builder addAllCopyInboundCallLegHeaders(Iterable<String> values)

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Parameter
Name Description
values Iterable<String>

The copyInboundCallLegHeaders to add.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

addCopyInboundCallLegHeaders(String value)

public SipConfig.Builder addCopyInboundCallLegHeaders(String value)

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Parameter
Name Description
value String

The copyInboundCallLegHeaders to add.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

addCopyInboundCallLegHeadersBytes(ByteString value)

public SipConfig.Builder addCopyInboundCallLegHeadersBytes(ByteString value)

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Parameter
Name Description
value ByteString

The bytes of the copyInboundCallLegHeaders to add.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

build()

public SipConfig build()
Returns
Type Description
SipConfig

buildPartial()

public SipConfig buildPartial()
Returns
Type Description
SipConfig

clear()

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

clearAllowVirtualAgentInteraction()

public SipConfig.Builder clearAllowVirtualAgentInteraction()

Allows interactions with a Dialogflow virtual agent even if the call is connected for SIPREC purposes.

bool allow_virtual_agent_interaction = 5;

Returns
Type Description
SipConfig.Builder

This builder for chaining.

clearCopyInboundCallLegHeaders()

public SipConfig.Builder clearCopyInboundCallLegHeaders()

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Returns
Type Description
SipConfig.Builder

This builder for chaining.

clearCreateConversationOnTheFly()

public SipConfig.Builder clearCreateConversationOnTheFly()

Asks Dialogflow Telephony to create the conversation provided in the SIP header on the fly when the call comes in.

bool create_conversation_on_the_fly = 1;

Returns
Type Description
SipConfig.Builder

This builder for chaining.

clearIgnoreReinviteMediaDirection()

public SipConfig.Builder clearIgnoreReinviteMediaDirection()

Ignores any media direction in the reINVITE SDP offer. Reuse the previous media direction.

bool ignore_reinvite_media_direction = 9;

Returns
Type Description
SipConfig.Builder

This builder for chaining.

clearInactiveStart()

public SipConfig.Builder clearInactiveStart()

Starts the conversation with inactive SDP directives

bool inactive_start = 3;

Returns
Type Description
SipConfig.Builder

This builder for chaining.

clearKeepConversationRunning()

public SipConfig.Builder clearKeepConversationRunning()

Keeps the conversation running even if the call is disconnected.

bool keep_conversation_running = 6;

Returns
Type Description
SipConfig.Builder

This builder for chaining.

clearMaxAudioRecordingDuration()

public SipConfig.Builder clearMaxAudioRecordingDuration()

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Returns
Type Description
SipConfig.Builder

getAllowVirtualAgentInteraction()

public boolean getAllowVirtualAgentInteraction()

Allows interactions with a Dialogflow virtual agent even if the call is connected for SIPREC purposes.

bool allow_virtual_agent_interaction = 5;

Returns
Type Description
boolean

The allowVirtualAgentInteraction.

getCopyInboundCallLegHeaders(int index)

public String getCopyInboundCallLegHeaders(int index)

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The copyInboundCallLegHeaders at the given index.

getCopyInboundCallLegHeadersBytes(int index)

public ByteString getCopyInboundCallLegHeadersBytes(int index)

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the copyInboundCallLegHeaders at the given index.

getCopyInboundCallLegHeadersCount()

public int getCopyInboundCallLegHeadersCount()

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Returns
Type Description
int

The count of copyInboundCallLegHeaders.

getCopyInboundCallLegHeadersList()

public ProtocolStringList getCopyInboundCallLegHeadersList()

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Returns
Type Description
ProtocolStringList

A list containing the copyInboundCallLegHeaders.

getCreateConversationOnTheFly()

public boolean getCreateConversationOnTheFly()

Asks Dialogflow Telephony to create the conversation provided in the SIP header on the fly when the call comes in.

bool create_conversation_on_the_fly = 1;

Returns
Type Description
boolean

The createConversationOnTheFly.

getDefaultInstanceForType()

public SipConfig getDefaultInstanceForType()
Returns
Type Description
SipConfig

getDescriptorForType()

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

getIgnoreReinviteMediaDirection()

public boolean getIgnoreReinviteMediaDirection()

Ignores any media direction in the reINVITE SDP offer. Reuse the previous media direction.

bool ignore_reinvite_media_direction = 9;

Returns
Type Description
boolean

The ignoreReinviteMediaDirection.

getInactiveStart()

public boolean getInactiveStart()

Starts the conversation with inactive SDP directives

bool inactive_start = 3;

Returns
Type Description
boolean

The inactiveStart.

getKeepConversationRunning()

public boolean getKeepConversationRunning()

Keeps the conversation running even if the call is disconnected.

bool keep_conversation_running = 6;

Returns
Type Description
boolean

The keepConversationRunning.

getMaxAudioRecordingDuration()

public Duration getMaxAudioRecordingDuration()

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Returns
Type Description
Duration

The maxAudioRecordingDuration.

getMaxAudioRecordingDurationBuilder()

public Duration.Builder getMaxAudioRecordingDurationBuilder()

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Returns
Type Description
Builder

getMaxAudioRecordingDurationOrBuilder()

public DurationOrBuilder getMaxAudioRecordingDurationOrBuilder()

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Returns
Type Description
DurationOrBuilder

hasMaxAudioRecordingDuration()

public boolean hasMaxAudioRecordingDuration()

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Returns
Type Description
boolean

Whether the maxAudioRecordingDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SipConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMaxAudioRecordingDuration(Duration value)

public SipConfig.Builder mergeMaxAudioRecordingDuration(Duration value)

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Parameter
Name Description
value Duration
Returns
Type Description
SipConfig.Builder

setAllowVirtualAgentInteraction(boolean value)

public SipConfig.Builder setAllowVirtualAgentInteraction(boolean value)

Allows interactions with a Dialogflow virtual agent even if the call is connected for SIPREC purposes.

bool allow_virtual_agent_interaction = 5;

Parameter
Name Description
value boolean

The allowVirtualAgentInteraction to set.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

setCopyInboundCallLegHeaders(int index, String value)

public SipConfig.Builder setCopyInboundCallLegHeaders(int index, String value)

List of inbound call leg headers to be copied to outbound call legs created later.

repeated string copy_inbound_call_leg_headers = 8;

Parameters
Name Description
index int

The index to set the value at.

value String

The copyInboundCallLegHeaders to set.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

setCreateConversationOnTheFly(boolean value)

public SipConfig.Builder setCreateConversationOnTheFly(boolean value)

Asks Dialogflow Telephony to create the conversation provided in the SIP header on the fly when the call comes in.

bool create_conversation_on_the_fly = 1;

Parameter
Name Description
value boolean

The createConversationOnTheFly to set.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

setIgnoreReinviteMediaDirection(boolean value)

public SipConfig.Builder setIgnoreReinviteMediaDirection(boolean value)

Ignores any media direction in the reINVITE SDP offer. Reuse the previous media direction.

bool ignore_reinvite_media_direction = 9;

Parameter
Name Description
value boolean

The ignoreReinviteMediaDirection to set.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

setInactiveStart(boolean value)

public SipConfig.Builder setInactiveStart(boolean value)

Starts the conversation with inactive SDP directives

bool inactive_start = 3;

Parameter
Name Description
value boolean

The inactiveStart to set.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

setKeepConversationRunning(boolean value)

public SipConfig.Builder setKeepConversationRunning(boolean value)

Keeps the conversation running even if the call is disconnected.

bool keep_conversation_running = 6;

Parameter
Name Description
value boolean

The keepConversationRunning to set.

Returns
Type Description
SipConfig.Builder

This builder for chaining.

setMaxAudioRecordingDuration(Duration value)

public SipConfig.Builder setMaxAudioRecordingDuration(Duration value)

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Parameter
Name Description
value Duration
Returns
Type Description
SipConfig.Builder

setMaxAudioRecordingDuration(Duration.Builder builderForValue)

public SipConfig.Builder setMaxAudioRecordingDuration(Duration.Builder builderForValue)

Max duration for audio recording. Overrides the default value of 15 min. Max value is 8 hours.

.google.protobuf.Duration max_audio_recording_duration = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SipConfig.Builder