Class Connection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
com.google.cloud.apigeeconnect.v1.Connection.Builder
All Implemented Interfaces:
ConnectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Connection

public static final class Connection.Builder extends com.google.protobuf.GeneratedMessage.Builder<Connection.Builder> implements ConnectionOrBuilder
Protobuf type google.cloud.apigeeconnect.v1.Connection
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
    • clear

      public Connection.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
    • getDefaultInstanceForType

      public Connection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Connection build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Connection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Connection.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Connection.Builder>
    • mergeFrom

      public Connection.Builder mergeFrom(Connection other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Connection.Builder>
    • mergeFrom

      public Connection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Connection.Builder>
      Throws:
      IOException
    • getEndpoint

      public String getEndpoint()
       The endpoint that the connection is made against.
       Format: `projects/{project_number}/endpoints/{endpoint}`
       
      string endpoint = 1;
      Specified by:
      getEndpoint in interface ConnectionOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       The endpoint that the connection is made against.
       Format: `projects/{project_number}/endpoints/{endpoint}`
       
      string endpoint = 1;
      Specified by:
      getEndpointBytes in interface ConnectionOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public Connection.Builder setEndpoint(String value)
       The endpoint that the connection is made against.
       Format: `projects/{project_number}/endpoints/{endpoint}`
       
      string endpoint = 1;
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public Connection.Builder clearEndpoint()
       The endpoint that the connection is made against.
       Format: `projects/{project_number}/endpoints/{endpoint}`
       
      string endpoint = 1;
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public Connection.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       The endpoint that the connection is made against.
       Format: `projects/{project_number}/endpoints/{endpoint}`
       
      string endpoint = 1;
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • hasCluster

      public boolean hasCluster()
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
      Specified by:
      hasCluster in interface ConnectionOrBuilder
      Returns:
      Whether the cluster field is set.
    • getCluster

      public Cluster getCluster()
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
      Specified by:
      getCluster in interface ConnectionOrBuilder
      Returns:
      The cluster.
    • setCluster

      public Connection.Builder setCluster(Cluster value)
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
    • setCluster

      public Connection.Builder setCluster(Cluster.Builder builderForValue)
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
    • mergeCluster

      public Connection.Builder mergeCluster(Cluster value)
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
    • clearCluster

      public Connection.Builder clearCluster()
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
    • getClusterBuilder

      public Cluster.Builder getClusterBuilder()
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
    • getClusterOrBuilder

      public ClusterOrBuilder getClusterOrBuilder()
       Cluster information.
       
      .google.cloud.apigeeconnect.v1.Cluster cluster = 2;
      Specified by:
      getClusterOrBuilder in interface ConnectionOrBuilder
    • getStreamCount

      public int getStreamCount()
       The count of streams.
       
      int32 stream_count = 3;
      Specified by:
      getStreamCount in interface ConnectionOrBuilder
      Returns:
      The streamCount.
    • setStreamCount

      public Connection.Builder setStreamCount(int value)
       The count of streams.
       
      int32 stream_count = 3;
      Parameters:
      value - The streamCount to set.
      Returns:
      This builder for chaining.
    • clearStreamCount

      public Connection.Builder clearStreamCount()
       The count of streams.
       
      int32 stream_count = 3;
      Returns:
      This builder for chaining.