Class SipTrunk (4.82.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.82.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  SipTrunk   extends   GeneratedMessageV3   implements   SipTrunkOrBuilder  
   SipTrunk is the resource that represents a SIP trunk to connect to Google
 Telephony platform SIP trunking service.
 Protobuf type google.cloud.dialogflow.v2beta1.SipTrunk
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  CONNECTIONS_FIELD_NUMBER 
  
    
public   static   final   int   CONNECTIONS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  EXPECTED_HOSTNAME_FIELD_NUMBER 
  
    
public   static   final   int   EXPECTED_HOSTNAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   SipTrunk   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   SipTrunk . Builder   newBuilder ()  
  
  newBuilder(SipTrunk prototype) 
  
    
public   static   SipTrunk . Builder   newBuilder ( SipTrunk   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeSipTrunk  
     
  
  
  
    
public   static   SipTrunk   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   SipTrunk   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   SipTrunk   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SipTrunk   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   SipTrunk   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SipTrunk   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SipTrunk   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   SipTrunk   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SipTrunk   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   SipTrunk   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   SipTrunk   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SipTrunk   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<SipTrunk>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getConnections(int index) 
  
    
public   Connection   getConnections ( int   index )  
   Output only. Connections of the SIP trunk.
 
 repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getConnectionsCount() 
  
    
public   int   getConnectionsCount ()  
   Output only. Connections of the SIP trunk.
 
 repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getConnectionsList() 
  
    
public   List<Connection>   getConnectionsList ()  
   Output only. Connections of the SIP trunk.
 
 repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getConnectionsOrBuilder(int index) 
  
    
public   ConnectionOrBuilder   getConnectionsOrBuilder ( int   index )  
   Output only. Connections of the SIP trunk.
 
 repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getConnectionsOrBuilderList() 
  
    
public   List <?   extends   ConnectionOrBuilder >  getConnectionsOrBuilderList ()  
   Output only. Connections of the SIP trunk.
 
 repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.dialogflow.v2beta1.ConnectionOrBuilder > 
     
  
  getDefaultInstanceForType() 
  
    
public   SipTrunk   getDefaultInstanceForType ()  
  
  getDisplayName() 
  
    
public   String   getDisplayName ()  
   Optional. Human readable alias for this trunk.
 string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The displayName.
 
     
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
   Optional. Human readable alias for this trunk.
 string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for displayName.
 
     
  
  getExpectedHostname(int index) 
  
    
public   String   getExpectedHostname ( int   index )  
   Required. The expected hostnames in the peer certificate from partner that
 is used for TLS authentication.
 repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The expectedHostname at the given index.
 
     
  
  getExpectedHostnameBytes(int index) 
  
    
public   ByteString   getExpectedHostnameBytes ( int   index )  
   Required. The expected hostnames in the peer certificate from partner that
 is used for TLS authentication.
 repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the expectedHostname at the given index.
 
     
  
  getExpectedHostnameCount() 
  
    
public   int   getExpectedHostnameCount ()  
   Required. The expected hostnames in the peer certificate from partner that
 is used for TLS authentication.
 repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        int The count of expectedHostname.
 
     
  
  getExpectedHostnameList() 
  
    
public   ProtocolStringList   getExpectedHostnameList ()  
   Required. The expected hostnames in the peer certificate from partner that
 is used for TLS authentication.
 repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];
getName() 
  
   Identifier. The unique identifier of the SIP trunk.
 Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
 ID>.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
    
      
        Returns  
      
        Type Description  
      
        String The name.
 
     
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
   Identifier. The unique identifier of the SIP trunk.
 Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk
 ID>.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  getParserForType() 
  
    
public   Parser<SipTrunk>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   SipTrunk . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SipTrunk . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   SipTrunk . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]