Class ServiceAttachmentConsumerProjectLimit.Builder

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

public static final class ServiceAttachmentConsumerProjectLimit.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServiceAttachmentConsumerProjectLimit.Builder> implements ServiceAttachmentConsumerProjectLimitOrBuilder
 
Protobuf type google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit
  • 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<ServiceAttachmentConsumerProjectLimit.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<ServiceAttachmentConsumerProjectLimit.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<ServiceAttachmentConsumerProjectLimit.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ServiceAttachmentConsumerProjectLimit.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<ServiceAttachmentConsumerProjectLimit.Builder>
    • mergeFrom

    • isInitialized

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

      public ServiceAttachmentConsumerProjectLimit.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<ServiceAttachmentConsumerProjectLimit.Builder>
      Throws:
      IOException
    • hasConnectionLimit

      public boolean hasConnectionLimit()
       The value of the limit to set. For endpoint_url, the limit should be no
       more than 1.
       
      optional uint32 connection_limit = 131403546;
      Specified by:
      hasConnectionLimit in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      Whether the connectionLimit field is set.
    • getConnectionLimit

      public int getConnectionLimit()
       The value of the limit to set. For endpoint_url, the limit should be no
       more than 1.
       
      optional uint32 connection_limit = 131403546;
      Specified by:
      getConnectionLimit in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The connectionLimit.
    • setConnectionLimit

      public ServiceAttachmentConsumerProjectLimit.Builder setConnectionLimit(int value)
       The value of the limit to set. For endpoint_url, the limit should be no
       more than 1.
       
      optional uint32 connection_limit = 131403546;
      Parameters:
      value - The connectionLimit to set.
      Returns:
      This builder for chaining.
    • clearConnectionLimit

      public ServiceAttachmentConsumerProjectLimit.Builder clearConnectionLimit()
       The value of the limit to set. For endpoint_url, the limit should be no
       more than 1.
       
      optional uint32 connection_limit = 131403546;
      Returns:
      This builder for chaining.
    • hasEndpointUrl

      public boolean hasEndpointUrl()
       The URL for the PSC endpoint to accept
       
      optional string endpoint_url = 223428549;
      Specified by:
      hasEndpointUrl in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      Whether the endpointUrl field is set.
    • getEndpointUrl

      public String getEndpointUrl()
       The URL for the PSC endpoint to accept
       
      optional string endpoint_url = 223428549;
      Specified by:
      getEndpointUrl in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The endpointUrl.
    • getEndpointUrlBytes

      public com.google.protobuf.ByteString getEndpointUrlBytes()
       The URL for the PSC endpoint to accept
       
      optional string endpoint_url = 223428549;
      Specified by:
      getEndpointUrlBytes in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The bytes for endpointUrl.
    • setEndpointUrl

       The URL for the PSC endpoint to accept
       
      optional string endpoint_url = 223428549;
      Parameters:
      value - The endpointUrl to set.
      Returns:
      This builder for chaining.
    • clearEndpointUrl

       The URL for the PSC endpoint to accept
       
      optional string endpoint_url = 223428549;
      Returns:
      This builder for chaining.
    • setEndpointUrlBytes

      public ServiceAttachmentConsumerProjectLimit.Builder setEndpointUrlBytes(com.google.protobuf.ByteString value)
       The URL for the PSC endpoint to accept
       
      optional string endpoint_url = 223428549;
      Parameters:
      value - The bytes for endpointUrl to set.
      Returns:
      This builder for chaining.
    • hasNetworkUrl

      public boolean hasNetworkUrl()
       The network URL for the network to set the limit for.
       
      optional string network_url = 207194078;
      Specified by:
      hasNetworkUrl in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      Whether the networkUrl field is set.
    • getNetworkUrl

      public String getNetworkUrl()
       The network URL for the network to set the limit for.
       
      optional string network_url = 207194078;
      Specified by:
      getNetworkUrl in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The networkUrl.
    • getNetworkUrlBytes

      public com.google.protobuf.ByteString getNetworkUrlBytes()
       The network URL for the network to set the limit for.
       
      optional string network_url = 207194078;
      Specified by:
      getNetworkUrlBytes in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The bytes for networkUrl.
    • setNetworkUrl

       The network URL for the network to set the limit for.
       
      optional string network_url = 207194078;
      Parameters:
      value - The networkUrl to set.
      Returns:
      This builder for chaining.
    • clearNetworkUrl

       The network URL for the network to set the limit for.
       
      optional string network_url = 207194078;
      Returns:
      This builder for chaining.
    • setNetworkUrlBytes

      public ServiceAttachmentConsumerProjectLimit.Builder setNetworkUrlBytes(com.google.protobuf.ByteString value)
       The network URL for the network to set the limit for.
       
      optional string network_url = 207194078;
      Parameters:
      value - The bytes for networkUrl to set.
      Returns:
      This builder for chaining.
    • hasProjectIdOrNum

      public boolean hasProjectIdOrNum()
       The project id or number for the project to set the limit for.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      hasProjectIdOrNum in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      Whether the projectIdOrNum field is set.
    • getProjectIdOrNum

      public String getProjectIdOrNum()
       The project id or number for the project to set the limit for.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      getProjectIdOrNum in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The projectIdOrNum.
    • getProjectIdOrNumBytes

      public com.google.protobuf.ByteString getProjectIdOrNumBytes()
       The project id or number for the project to set the limit for.
       
      optional string project_id_or_num = 349783336;
      Specified by:
      getProjectIdOrNumBytes in interface ServiceAttachmentConsumerProjectLimitOrBuilder
      Returns:
      The bytes for projectIdOrNum.
    • setProjectIdOrNum

      public ServiceAttachmentConsumerProjectLimit.Builder setProjectIdOrNum(String value)
       The project id or number for the project to set the limit for.
       
      optional string project_id_or_num = 349783336;
      Parameters:
      value - The projectIdOrNum to set.
      Returns:
      This builder for chaining.
    • clearProjectIdOrNum

      public ServiceAttachmentConsumerProjectLimit.Builder clearProjectIdOrNum()
       The project id or number for the project to set the limit for.
       
      optional string project_id_or_num = 349783336;
      Returns:
      This builder for chaining.
    • setProjectIdOrNumBytes

      public ServiceAttachmentConsumerProjectLimit.Builder setProjectIdOrNumBytes(com.google.protobuf.ByteString value)
       The project id or number for the project to set the limit for.
       
      optional string project_id_or_num = 349783336;
      Parameters:
      value - The bytes for projectIdOrNum to set.
      Returns:
      This builder for chaining.