Class CreateVpnConnectionRequest.Builder

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

public static final class CreateVpnConnectionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateVpnConnectionRequest.Builder> implements CreateVpnConnectionRequestOrBuilder
 Creates a VPN connection.
 
Protobuf type google.cloud.edgecontainer.v1.CreateVpnConnectionRequest
  • 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<CreateVpnConnectionRequest.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<CreateVpnConnectionRequest.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<CreateVpnConnectionRequest.Builder>
    • getDefaultInstanceForType

      public CreateVpnConnectionRequest 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

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

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

      public CreateVpnConnectionRequest.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<CreateVpnConnectionRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent location where this vpn connection will be created.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent location where this vpn connection will be created.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateVpnConnectionRequest.Builder setParent(String value)
       Required. The parent location where this vpn connection will be created.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateVpnConnectionRequest.Builder clearParent()
       Required. The parent location where this vpn connection will be created.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateVpnConnectionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent location where this vpn connection will be created.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getVpnConnectionId

      public String getVpnConnectionId()
       Required. The VPN connection identifier.
       
      string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVpnConnectionId in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The vpnConnectionId.
    • getVpnConnectionIdBytes

      public com.google.protobuf.ByteString getVpnConnectionIdBytes()
       Required. The VPN connection identifier.
       
      string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVpnConnectionIdBytes in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The bytes for vpnConnectionId.
    • setVpnConnectionId

      public CreateVpnConnectionRequest.Builder setVpnConnectionId(String value)
       Required. The VPN connection identifier.
       
      string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The vpnConnectionId to set.
      Returns:
      This builder for chaining.
    • clearVpnConnectionId

      public CreateVpnConnectionRequest.Builder clearVpnConnectionId()
       Required. The VPN connection identifier.
       
      string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setVpnConnectionIdBytes

      public CreateVpnConnectionRequest.Builder setVpnConnectionIdBytes(com.google.protobuf.ByteString value)
       Required. The VPN connection identifier.
       
      string vpn_connection_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for vpnConnectionId to set.
      Returns:
      This builder for chaining.
    • hasVpnConnection

      public boolean hasVpnConnection()
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasVpnConnection in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      Whether the vpnConnection field is set.
    • getVpnConnection

      public VpnConnection getVpnConnection()
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVpnConnection in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The vpnConnection.
    • setVpnConnection

      public CreateVpnConnectionRequest.Builder setVpnConnection(VpnConnection value)
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
    • setVpnConnection

      public CreateVpnConnectionRequest.Builder setVpnConnection(VpnConnection.Builder builderForValue)
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeVpnConnection

      public CreateVpnConnectionRequest.Builder mergeVpnConnection(VpnConnection value)
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearVpnConnection

      public CreateVpnConnectionRequest.Builder clearVpnConnection()
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
    • getVpnConnectionBuilder

      public VpnConnection.Builder getVpnConnectionBuilder()
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
    • getVpnConnectionOrBuilder

      public VpnConnectionOrBuilder getVpnConnectionOrBuilder()
       Required. The VPN connection to create.
       
      .google.cloud.edgecontainer.v1.VpnConnection vpn_connection = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVpnConnectionOrBuilder in interface CreateVpnConnectionRequestOrBuilder
    • getRequestId

      public String getRequestId()
       A unique identifier for this request. Restricted to 36 ASCII characters. A
       random UUID is recommended. This request is only idempotent if
       `request_id` is provided.
       
      string request_id = 4;
      Specified by:
      getRequestId in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       A unique identifier for this request. Restricted to 36 ASCII characters. A
       random UUID is recommended. This request is only idempotent if
       `request_id` is provided.
       
      string request_id = 4;
      Specified by:
      getRequestIdBytes in interface CreateVpnConnectionRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public CreateVpnConnectionRequest.Builder setRequestId(String value)
       A unique identifier for this request. Restricted to 36 ASCII characters. A
       random UUID is recommended. This request is only idempotent if
       `request_id` is provided.
       
      string request_id = 4;
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public CreateVpnConnectionRequest.Builder clearRequestId()
       A unique identifier for this request. Restricted to 36 ASCII characters. A
       random UUID is recommended. This request is only idempotent if
       `request_id` is provided.
       
      string request_id = 4;
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public CreateVpnConnectionRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       A unique identifier for this request. Restricted to 36 ASCII characters. A
       random UUID is recommended. This request is only idempotent if
       `request_id` is provided.
       
      string request_id = 4;
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.