Class PrivateConnection

  • All Implemented Interfaces:
    PrivateConnectionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class PrivateConnection
    extends com.google.protobuf.GeneratedMessageV3
    implements PrivateConnectionOrBuilder
     Private connection resource that provides connectivity for VMware Engine
     private clouds.
     
    Protobuf type google.cloud.vmwareengine.v1.PrivateConnection
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. The resource name of the private connection.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         For example:
         `projects/my-project/locations/us-central1/privateConnections/my-connection`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface PrivateConnectionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of the private connection.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         For example:
         `projects/my-project/locations/us-central1/privateConnections/my-connection`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for name.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Creation time of this resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface PrivateConnectionOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Creation time of this resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface PrivateConnectionOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Creation time of this resource.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface PrivateConnectionOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. Last update time of this resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface PrivateConnectionOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. Last update time of this resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface PrivateConnectionOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. Last update time of this resource.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface PrivateConnectionOrBuilder
      • getDescription

        public String getDescription()
         Optional. User-provided description for this private connection.
         
        string description = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface PrivateConnectionOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. User-provided description for this private connection.
         
        string description = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for description.
      • getStateValue

        public int getStateValue()
         Output only. State of the private connection.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface PrivateConnectionOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public PrivateConnection.State getState()
         Output only. State of the private connection.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface PrivateConnectionOrBuilder
        Returns:
        The state.
      • getVmwareEngineNetwork

        public String getVmwareEngineNetwork()
         Required. The relative resource name of Legacy VMware Engine network.
         Specify the name in the following form:
         `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
         where `{project}`, `{location}` will be same as specified in private
         connection resource name and `{vmware_engine_network_id}` will be in the
         form of `{location}`-default e.g.
         projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
         
        string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getVmwareEngineNetwork in interface PrivateConnectionOrBuilder
        Returns:
        The vmwareEngineNetwork.
      • getVmwareEngineNetworkBytes

        public com.google.protobuf.ByteString getVmwareEngineNetworkBytes()
         Required. The relative resource name of Legacy VMware Engine network.
         Specify the name in the following form:
         `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
         where `{project}`, `{location}` will be same as specified in private
         connection resource name and `{vmware_engine_network_id}` will be in the
         form of `{location}`-default e.g.
         projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.
         
        string vmware_engine_network = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getVmwareEngineNetworkBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for vmwareEngineNetwork.
      • getVmwareEngineNetworkCanonical

        public String getVmwareEngineNetworkCanonical()
         Output only. The canonical name of the VMware Engine network in the form:
         `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
         
        string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getVmwareEngineNetworkCanonical in interface PrivateConnectionOrBuilder
        Returns:
        The vmwareEngineNetworkCanonical.
      • getVmwareEngineNetworkCanonicalBytes

        public com.google.protobuf.ByteString getVmwareEngineNetworkCanonicalBytes()
         Output only. The canonical name of the VMware Engine network in the form:
         `projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
         
        string vmware_engine_network_canonical = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getVmwareEngineNetworkCanonicalBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for vmwareEngineNetworkCanonical.
      • getTypeValue

        public int getTypeValue()
         Required. Private connection type.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTypeValue in interface PrivateConnectionOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getType

        public PrivateConnection.Type getType()
         Required. Private connection type.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.Type type = 10 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getType in interface PrivateConnectionOrBuilder
        Returns:
        The type.
      • getPeeringId

        public String getPeeringId()
         Output only. VPC network peering id between given network VPC and
         VMwareEngineNetwork.
         
        string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPeeringId in interface PrivateConnectionOrBuilder
        Returns:
        The peeringId.
      • getPeeringIdBytes

        public com.google.protobuf.ByteString getPeeringIdBytes()
         Output only. VPC network peering id between given network VPC and
         VMwareEngineNetwork.
         
        string peering_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPeeringIdBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for peeringId.
      • getRoutingModeValue

        public int getRoutingModeValue()
         Optional. Routing Mode.
         Default value is set to GLOBAL.
         For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
         REGIONAL, for other types only GLOBAL is supported.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRoutingModeValue in interface PrivateConnectionOrBuilder
        Returns:
        The enum numeric value on the wire for routingMode.
      • getRoutingMode

        public PrivateConnection.RoutingMode getRoutingMode()
         Optional. Routing Mode.
         Default value is set to GLOBAL.
         For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or
         REGIONAL, for other types only GLOBAL is supported.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.RoutingMode routing_mode = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRoutingMode in interface PrivateConnectionOrBuilder
        Returns:
        The routingMode.
      • getUid

        public String getUid()
         Output only. System-generated unique identifier for the resource.
         
        string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUid in interface PrivateConnectionOrBuilder
        Returns:
        The uid.
      • getUidBytes

        public com.google.protobuf.ByteString getUidBytes()
         Output only. System-generated unique identifier for the resource.
         
        string uid = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUidBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for uid.
      • getServiceNetwork

        public String getServiceNetwork()
         Required. Service network to create private connection.
         Specify the name in the following form:
         `projects/{project}/global/networks/{network_id}`
         For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
         VPC, e.g. projects/project-tp/global/networks/servicenetworking.
         For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
         e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
         For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
         projects/project-tp/global/networks/dell-tenant-vpc.
         For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
         any other producer VPC to which the VMware Engine Network needs to be
         connected, e.g. projects/project/global/networks/vpc.
         
        string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getServiceNetwork in interface PrivateConnectionOrBuilder
        Returns:
        The serviceNetwork.
      • getServiceNetworkBytes

        public com.google.protobuf.ByteString getServiceNetworkBytes()
         Required. Service network to create private connection.
         Specify the name in the following form:
         `projects/{project}/global/networks/{network_id}`
         For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking
         VPC, e.g. projects/project-tp/global/networks/servicenetworking.
         For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC,
         e.g. projects/project-tp/global/networks/netapp-tenant-vpc.
         For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g.
         projects/project-tp/global/networks/dell-tenant-vpc.
         For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or
         any other producer VPC to which the VMware Engine Network needs to be
         connected, e.g. projects/project/global/networks/vpc.
         
        string service_network = 16 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getServiceNetworkBytes in interface PrivateConnectionOrBuilder
        Returns:
        The bytes for serviceNetwork.
      • getPeeringStateValue

        public int getPeeringStateValue()
         Output only. Peering state between service network and VMware Engine
         network.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPeeringStateValue in interface PrivateConnectionOrBuilder
        Returns:
        The enum numeric value on the wire for peeringState.
      • getPeeringState

        public PrivateConnection.PeeringState getPeeringState()
         Output only. Peering state between service network and VMware Engine
         network.
         
        .google.cloud.vmwareengine.v1.PrivateConnection.PeeringState peering_state = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPeeringState in interface PrivateConnectionOrBuilder
        Returns:
        The peeringState.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static PrivateConnection parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PrivateConnection parseFrom​(ByteBuffer data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PrivateConnection parseFrom​(com.google.protobuf.ByteString data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PrivateConnection parseFrom​(com.google.protobuf.ByteString data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PrivateConnection parseFrom​(byte[] data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PrivateConnection parseFrom​(byte[] data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static PrivateConnection parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public PrivateConnection.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public PrivateConnection.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected PrivateConnection.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<PrivateConnection> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public PrivateConnection getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder