Class CreateSipTrunkRequest.Builder (4.60.0)

public static final class CreateSipTrunkRequest.Builder extends GeneratedMessageV3.Builder<CreateSipTrunkRequest.Builder> implements CreateSipTrunkRequestOrBuilder

The request message for SipTrunks.CreateSipTrunk.

Protobuf type google.cloud.dialogflow.v2beta1.CreateSipTrunkRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateSipTrunkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

build()

public CreateSipTrunkRequest build()
Returns
Type Description
CreateSipTrunkRequest

buildPartial()

public CreateSipTrunkRequest buildPartial()
Returns
Type Description
CreateSipTrunkRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateSipTrunkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSipTrunkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

clearParent()

public CreateSipTrunkRequest.Builder clearParent()

Required. The location to create a SIP trunk for. Format: projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
CreateSipTrunkRequest.Builder

This builder for chaining.

clearSipTrunk()

public CreateSipTrunkRequest.Builder clearSipTrunk()

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSipTrunkRequest.Builder

clone()

public CreateSipTrunkRequest.Builder clone()
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateSipTrunkRequest getDefaultInstanceForType()
Returns
Type Description
CreateSipTrunkRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The location to create a SIP trunk for. Format: projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location to create a SIP trunk for. Format: projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

getSipTrunk()

public SipTrunk getSipTrunk()

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SipTrunk

The sipTrunk.

getSipTrunkBuilder()

public SipTrunk.Builder getSipTrunkBuilder()

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SipTrunk.Builder

getSipTrunkOrBuilder()

public SipTrunkOrBuilder getSipTrunkOrBuilder()

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SipTrunkOrBuilder

hasSipTrunk()

public boolean hasSipTrunk()

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the sipTrunk field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSipTrunkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSipTrunk(SipTrunk value)

public CreateSipTrunkRequest.Builder mergeSipTrunk(SipTrunk value)

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SipTrunk
Returns
Type Description
CreateSipTrunkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateSipTrunkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSipTrunkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

setParent(String value)

public CreateSipTrunkRequest.Builder setParent(String value)

Required. The location to create a SIP trunk for. Format: projects/<Project ID>/locations/<Location ID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSipTrunkRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSipTrunkRequest.Builder setParentBytes(ByteString value)

Required. The location to create a SIP trunk for. Format: projects/<Project ID>/locations/<Location ID>.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateSipTrunkRequest.Builder

This builder for chaining.

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

public CreateSipTrunkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides

setSipTrunk(SipTrunk value)

public CreateSipTrunkRequest.Builder setSipTrunk(SipTrunk value)

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SipTrunk
Returns
Type Description
CreateSipTrunkRequest.Builder

setSipTrunk(SipTrunk.Builder builderForValue)

public CreateSipTrunkRequest.Builder setSipTrunk(SipTrunk.Builder builderForValue)

Required. The SIP trunk to create.

.google.cloud.dialogflow.v2beta1.SipTrunk sip_trunk = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SipTrunk.Builder
Returns
Type Description
CreateSipTrunkRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateSipTrunkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSipTrunkRequest.Builder
Overrides