Class NetworkPeering

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vmwareengine.v1.NetworkPeering
All Implemented Interfaces:
NetworkPeeringOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class NetworkPeering extends com.google.protobuf.GeneratedMessage implements NetworkPeeringOrBuilder
 Details of a network peering.
 
Protobuf type google.cloud.vmwareengine.v1.NetworkPeering
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • PEER_NETWORK_FIELD_NUMBER

      public static final int PEER_NETWORK_FIELD_NUMBER
      See Also:
    • EXPORT_CUSTOM_ROUTES_FIELD_NUMBER

      public static final int EXPORT_CUSTOM_ROUTES_FIELD_NUMBER
      See Also:
    • IMPORT_CUSTOM_ROUTES_FIELD_NUMBER

      public static final int IMPORT_CUSTOM_ROUTES_FIELD_NUMBER
      See Also:
    • EXCHANGE_SUBNET_ROUTES_FIELD_NUMBER

      public static final int EXCHANGE_SUBNET_ROUTES_FIELD_NUMBER
      See Also:
    • EXPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER

      public static final int EXPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER
      See Also:
    • IMPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER

      public static final int IMPORT_CUSTOM_ROUTES_WITH_PUBLIC_IP_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • STATE_DETAILS_FIELD_NUMBER

      public static final int STATE_DETAILS_FIELD_NUMBER
      See Also:
    • PEER_MTU_FIELD_NUMBER

      public static final int PEER_MTU_FIELD_NUMBER
      See Also:
    • PEER_NETWORK_TYPE_FIELD_NUMBER

      public static final int PEER_NETWORK_TYPE_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • VMWARE_ENGINE_NETWORK_FIELD_NUMBER

      public static final int VMWARE_ENGINE_NETWORK_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
  • 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
    • getName

      public String getName()
       Output only. The resource name of the network peering. NetworkPeering is a
       global resource and location can only be global. Resource names are
       scheme-less URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/global/networkPeerings/my-peering`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface NetworkPeeringOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the network peering. NetworkPeering is a
       global resource and location can only be global. Resource names are
       scheme-less URIs that follow the conventions in
       https://cloud.google.com/apis/design/resource_names.
       For example:
       `projects/my-project/locations/global/networkPeerings/my-peering`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface NetworkPeeringOrBuilder
      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 NetworkPeeringOrBuilder
      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 NetworkPeeringOrBuilder
      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 NetworkPeeringOrBuilder
    • 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 NetworkPeeringOrBuilder
      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 NetworkPeeringOrBuilder
      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 NetworkPeeringOrBuilder
    • getPeerNetwork

      public String getPeerNetwork()
       Required. The relative resource name of the network to peer with
       a standard VMware Engine network. The provided network can be a
       consumer VPC network or another standard VMware Engine network. If the
       `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
       `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
       Otherwise specify the name in the form:
       `projects/{project}/global/networks/{network_id}`, where
       `{project}` can either be a project number or a project ID.
       
      string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPeerNetwork in interface NetworkPeeringOrBuilder
      Returns:
      The peerNetwork.
    • getPeerNetworkBytes

      public com.google.protobuf.ByteString getPeerNetworkBytes()
       Required. The relative resource name of the network to peer with
       a standard VMware Engine network. The provided network can be a
       consumer VPC network or another standard VMware Engine network. If the
       `peer_network_type` is VMWARE_ENGINE_NETWORK, specify the name in the form:
       `projects/{project}/locations/global/vmwareEngineNetworks/{vmware_engine_network_id}`.
       Otherwise specify the name in the form:
       `projects/{project}/global/networks/{network_id}`, where
       `{project}` can either be a project number or a project ID.
       
      string peer_network = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPeerNetworkBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for peerNetwork.
    • hasExportCustomRoutes

      public boolean hasExportCustomRoutes()
       Optional. True if custom routes are exported to the peered network;
       false otherwise. The default value is true.
       
      optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the exportCustomRoutes field is set.
    • getExportCustomRoutes

      public boolean getExportCustomRoutes()
       Optional. True if custom routes are exported to the peered network;
       false otherwise. The default value is true.
       
      optional bool export_custom_routes = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The exportCustomRoutes.
    • hasImportCustomRoutes

      public boolean hasImportCustomRoutes()
       Optional. True if custom routes are imported from the peered network;
       false otherwise. The default value is true.
       
      optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasImportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the importCustomRoutes field is set.
    • getImportCustomRoutes

      public boolean getImportCustomRoutes()
       Optional. True if custom routes are imported from the peered network;
       false otherwise. The default value is true.
       
      optional bool import_custom_routes = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImportCustomRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The importCustomRoutes.
    • hasExchangeSubnetRoutes

      public boolean hasExchangeSubnetRoutes()
       Optional. True if full mesh connectivity is created and managed
       automatically between peered networks; false otherwise. Currently this
       field is always true because Google Compute Engine automatically creates
       and manages subnetwork routes between two VPC networks when peering state
       is 'ACTIVE'.
       
      optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExchangeSubnetRoutes in interface NetworkPeeringOrBuilder
      Returns:
      Whether the exchangeSubnetRoutes field is set.
    • getExchangeSubnetRoutes

      public boolean getExchangeSubnetRoutes()
       Optional. True if full mesh connectivity is created and managed
       automatically between peered networks; false otherwise. Currently this
       field is always true because Google Compute Engine automatically creates
       and manages subnetwork routes between two VPC networks when peering state
       is 'ACTIVE'.
       
      optional bool exchange_subnet_routes = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExchangeSubnetRoutes in interface NetworkPeeringOrBuilder
      Returns:
      The exchangeSubnetRoutes.
    • hasExportCustomRoutesWithPublicIp

      public boolean hasExportCustomRoutesWithPublicIp()
       Optional. True if all subnet routes with a public IP address range are
       exported; false otherwise. The default value is true. IPv4 special-use
       ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
       exported to peers and are not controlled by this field.
       
      optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExportCustomRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      Whether the exportCustomRoutesWithPublicIp field is set.
    • getExportCustomRoutesWithPublicIp

      public boolean getExportCustomRoutesWithPublicIp()
       Optional. True if all subnet routes with a public IP address range are
       exported; false otherwise. The default value is true. IPv4 special-use
       ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
       exported to peers and are not controlled by this field.
       
      optional bool export_custom_routes_with_public_ip = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExportCustomRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      The exportCustomRoutesWithPublicIp.
    • hasImportCustomRoutesWithPublicIp

      public boolean hasImportCustomRoutesWithPublicIp()
       Optional. True if all subnet routes with public IP address range are
       imported; false otherwise. The default value is true. IPv4 special-use
       ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
       imported to peers and are not controlled by this field.
       
      optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasImportCustomRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      Whether the importCustomRoutesWithPublicIp field is set.
    • getImportCustomRoutesWithPublicIp

      public boolean getImportCustomRoutesWithPublicIp()
       Optional. True if all subnet routes with public IP address range are
       imported; false otherwise. The default value is true. IPv4 special-use
       ranges (https://en.wikipedia.org/wiki/IPv4#Special_addresses) are always
       imported to peers and are not controlled by this field.
       
      optional bool import_custom_routes_with_public_ip = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImportCustomRoutesWithPublicIp in interface NetworkPeeringOrBuilder
      Returns:
      The importCustomRoutesWithPublicIp.
    • getStateValue

      public int getStateValue()
       Output only. State of the network peering. This field
       has a value of 'ACTIVE' when there's a matching configuration in the peer
       network. New values may be added to this enum when appropriate.
       
      .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface NetworkPeeringOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public NetworkPeering.State getState()
       Output only. State of the network peering. This field
       has a value of 'ACTIVE' when there's a matching configuration in the peer
       network. New values may be added to this enum when appropriate.
       
      .google.cloud.vmwareengine.v1.NetworkPeering.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface NetworkPeeringOrBuilder
      Returns:
      The state.
    • getStateDetails

      public String getStateDetails()
       Output only. Output Only. Details about the current state of the network
       peering.
       
      string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateDetails in interface NetworkPeeringOrBuilder
      Returns:
      The stateDetails.
    • getStateDetailsBytes

      public com.google.protobuf.ByteString getStateDetailsBytes()
       Output only. Output Only. Details about the current state of the network
       peering.
       
      string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateDetailsBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for stateDetails.
    • getPeerMtu

      public int getPeerMtu()
       Optional. Maximum transmission unit (MTU) in bytes.
       The default value is `1500`. If a value of `0` is provided for this field,
       VMware Engine uses the default value instead.
       
      int32 peer_mtu = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPeerMtu in interface NetworkPeeringOrBuilder
      Returns:
      The peerMtu.
    • getPeerNetworkTypeValue

      public int getPeerNetworkTypeValue()
       Required. The type of the network to peer with the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPeerNetworkTypeValue in interface NetworkPeeringOrBuilder
      Returns:
      The enum numeric value on the wire for peerNetworkType.
    • getPeerNetworkType

      public NetworkPeering.PeerNetworkType getPeerNetworkType()
       Required. The type of the network to peer with the VMware Engine network.
       
      .google.cloud.vmwareengine.v1.NetworkPeering.PeerNetworkType peer_network_type = 16 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPeerNetworkType in interface NetworkPeeringOrBuilder
      Returns:
      The peerNetworkType.
    • getUid

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

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

      public String getVmwareEngineNetwork()
       Required. The relative resource name of the VMware Engine network.
       Specify the name in the following form:
       `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
       where `{project}` can either be a project number or a project ID.
       
      string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getVmwareEngineNetwork in interface NetworkPeeringOrBuilder
      Returns:
      The vmwareEngineNetwork.
    • getVmwareEngineNetworkBytes

      public com.google.protobuf.ByteString getVmwareEngineNetworkBytes()
       Required. The relative resource name of the VMware Engine network.
       Specify the name in the following form:
       `projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}`
       where `{project}` can either be a project number or a project ID.
       
      string vmware_engine_network = 20 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getVmwareEngineNetworkBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for vmwareEngineNetwork.
    • getDescription

      public String getDescription()
       Optional. User-provided description for this network peering.
       
      string description = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface NetworkPeeringOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. User-provided description for this network peering.
       
      string description = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface NetworkPeeringOrBuilder
      Returns:
      The bytes for description.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 NetworkPeering parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static NetworkPeering parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkPeering parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetworkPeering parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NetworkPeering parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NetworkPeering parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static NetworkPeering.Builder newBuilder()
    • newBuilder

      public static NetworkPeering.Builder newBuilder(NetworkPeering prototype)
    • toBuilder

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

      protected NetworkPeering.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static NetworkPeering getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NetworkPeering> parser()
    • getParserForType

      public com.google.protobuf.Parser<NetworkPeering> 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.GeneratedMessage
    • getDefaultInstanceForType

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