java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkconnectivity.v1beta.Transport
All Implemented Interfaces:
TransportOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Transport extends com.google.protobuf.GeneratedMessage implements TransportOrBuilder
 Message describing Transport object.
 
Protobuf type google.cloud.networkconnectivity.v1beta.Transport
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:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • REMOTE_PROFILE_FIELD_NUMBER

      public static final int REMOTE_PROFILE_FIELD_NUMBER
      See Also:
    • PROVIDED_ACTIVATION_KEY_FIELD_NUMBER

      public static final int PROVIDED_ACTIVATION_KEY_FIELD_NUMBER
      See Also:
    • GENERATED_ACTIVATION_KEY_FIELD_NUMBER

      public static final int GENERATED_ACTIVATION_KEY_FIELD_NUMBER
      See Also:
    • BANDWIDTH_FIELD_NUMBER

      public static final int BANDWIDTH_FIELD_NUMBER
      See Also:
    • STACK_TYPE_FIELD_NUMBER

      public static final int STACK_TYPE_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • MTU_LIMIT_FIELD_NUMBER

      public static final int MTU_LIMIT_FIELD_NUMBER
      See Also:
    • ADMIN_ENABLED_FIELD_NUMBER

      public static final int ADMIN_ENABLED_FIELD_NUMBER
      See Also:
    • NETWORK_FIELD_NUMBER

      public static final int NETWORK_FIELD_NUMBER
      See Also:
    • ADVERTISED_ROUTES_FIELD_NUMBER

      public static final int ADVERTISED_ROUTES_FIELD_NUMBER
      See Also:
    • REMOTE_ACCOUNT_ID_FIELD_NUMBER

      public static final int REMOTE_ACCOUNT_ID_FIELD_NUMBER
      See Also:
    • PEERING_NETWORK_FIELD_NUMBER

      public static final int PEERING_NETWORK_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

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

      public String getName()
       Identifier. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface TransportOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface TransportOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

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

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface TransportOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface TransportOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface TransportOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface TransportOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface TransportOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: TransportOrBuilder
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface TransportOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface TransportOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface TransportOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface TransportOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface TransportOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface TransportOrBuilder
    • getDescription

      public String getDescription()
       Optional. Description of the Transport.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface TransportOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the Transport.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface TransportOrBuilder
      Returns:
      The bytes for description.
    • getRemoteProfile

      public String getRemoteProfile()
       Optional. Name of the remoteTransportProfile that this Transport is
       connecting to.
       
      string remote_profile = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getRemoteProfile in interface TransportOrBuilder
      Returns:
      The remoteProfile.
    • getRemoteProfileBytes

      public com.google.protobuf.ByteString getRemoteProfileBytes()
       Optional. Name of the remoteTransportProfile that this Transport is
       connecting to.
       
      string remote_profile = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getRemoteProfileBytes in interface TransportOrBuilder
      Returns:
      The bytes for remoteProfile.
    • getProvidedActivationKey

      public String getProvidedActivationKey()
       Optional. Key used for establishing a connection with the remote transport.
       This key can only be provided if the profile supports an INPUT key flow and
       the resource is in the PENDING_KEY state.
       
      string provided_activation_key = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProvidedActivationKey in interface TransportOrBuilder
      Returns:
      The providedActivationKey.
    • getProvidedActivationKeyBytes

      public com.google.protobuf.ByteString getProvidedActivationKeyBytes()
       Optional. Key used for establishing a connection with the remote transport.
       This key can only be provided if the profile supports an INPUT key flow and
       the resource is in the PENDING_KEY state.
       
      string provided_activation_key = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProvidedActivationKeyBytes in interface TransportOrBuilder
      Returns:
      The bytes for providedActivationKey.
    • getGeneratedActivationKey

      public String getGeneratedActivationKey()
       Output only. Google-generated activation key. This is only output if the
       selected profile supports an OUTPUT key flow. Inputting this to the
       provider is only valid while the resource is in a PENDING_KEY state. Once
       the provider has accepted the key, the resource will move to the
       CONFIGURING state.
       
      string generated_activation_key = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGeneratedActivationKey in interface TransportOrBuilder
      Returns:
      The generatedActivationKey.
    • getGeneratedActivationKeyBytes

      public com.google.protobuf.ByteString getGeneratedActivationKeyBytes()
       Output only. Google-generated activation key. This is only output if the
       selected profile supports an OUTPUT key flow. Inputting this to the
       provider is only valid while the resource is in a PENDING_KEY state. Once
       the provider has accepted the key, the resource will move to the
       CONFIGURING state.
       
      string generated_activation_key = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGeneratedActivationKeyBytes in interface TransportOrBuilder
      Returns:
      The bytes for generatedActivationKey.
    • getBandwidthValue

      public int getBandwidthValue()
       Optional. Bandwidth of the Transport. This must be one of the supported
       bandwidths for the remote profile, and must be set when no activation key
       is being provided.
       
      .google.cloud.networkconnectivity.v1beta.Transport.Bandwidth bandwidth = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBandwidthValue in interface TransportOrBuilder
      Returns:
      The enum numeric value on the wire for bandwidth.
    • getBandwidth

      public Transport.Bandwidth getBandwidth()
       Optional. Bandwidth of the Transport. This must be one of the supported
       bandwidths for the remote profile, and must be set when no activation key
       is being provided.
       
      .google.cloud.networkconnectivity.v1beta.Transport.Bandwidth bandwidth = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBandwidth in interface TransportOrBuilder
      Returns:
      The bandwidth.
    • getStackTypeValue

      public int getStackTypeValue()
       Optional. IP version stack for the established connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.StackType stack_type = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStackTypeValue in interface TransportOrBuilder
      Returns:
      The enum numeric value on the wire for stackType.
    • getStackType

      public Transport.StackType getStackType()
       Optional. IP version stack for the established connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.StackType stack_type = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStackType in interface TransportOrBuilder
      Returns:
      The stackType.
    • getStateValue

      public int getStateValue()
       Output only. State of the underlying connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface TransportOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public Transport.State getState()
       Output only. State of the underlying connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface TransportOrBuilder
      Returns:
      The state.
    • getMtuLimit

      public int getMtuLimit()
       Output only. The maximum transmission unit (MTU) of a packet that can be
       sent over this transport.
       
      int32 mtu_limit = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMtuLimit in interface TransportOrBuilder
      Returns:
      The mtuLimit.
    • getAdminEnabled

      public boolean getAdminEnabled()
       Optional. Administrative state of the underlying connectivity. If set to
       true (default), connectivity should be available between your environments.
       If set to false, the connectivity over these links is disabled. Disabling
       your Transport does not affect billing, and retains the underlying network
       bandwidth associated with the connectivity.
       
      bool admin_enabled = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdminEnabled in interface TransportOrBuilder
      Returns:
      The adminEnabled.
    • getNetwork

      public String getNetwork()
       Optional. Resource URI of the Network that will be peered with this
       Transport. This field must be provided during resource creation and cannot
       be changed.
       
      string network = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetwork in interface TransportOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Optional. Resource URI of the Network that will be peered with this
       Transport. This field must be provided during resource creation and cannot
       be changed.
       
      string network = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetworkBytes in interface TransportOrBuilder
      Returns:
      The bytes for network.
    • getAdvertisedRoutesList

      public com.google.protobuf.ProtocolStringList getAdvertisedRoutesList()
       Optional. List of IP Prefixes that will be advertised to the remote
       provider. Both IPv4 and IPv6 addresses are supported.
       
      repeated string advertised_routes = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvertisedRoutesList in interface TransportOrBuilder
      Returns:
      A list containing the advertisedRoutes.
    • getAdvertisedRoutesCount

      public int getAdvertisedRoutesCount()
       Optional. List of IP Prefixes that will be advertised to the remote
       provider. Both IPv4 and IPv6 addresses are supported.
       
      repeated string advertised_routes = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvertisedRoutesCount in interface TransportOrBuilder
      Returns:
      The count of advertisedRoutes.
    • getAdvertisedRoutes

      public String getAdvertisedRoutes(int index)
       Optional. List of IP Prefixes that will be advertised to the remote
       provider. Both IPv4 and IPv6 addresses are supported.
       
      repeated string advertised_routes = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvertisedRoutes in interface TransportOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The advertisedRoutes at the given index.
    • getAdvertisedRoutesBytes

      public com.google.protobuf.ByteString getAdvertisedRoutesBytes(int index)
       Optional. List of IP Prefixes that will be advertised to the remote
       provider. Both IPv4 and IPv6 addresses are supported.
       
      repeated string advertised_routes = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdvertisedRoutesBytes in interface TransportOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the advertisedRoutes at the given index.
    • getRemoteAccountId

      public String getRemoteAccountId()
       Optional. The user supplied account id for the CSP associated with the
       remote profile.
       
      string remote_account_id = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRemoteAccountId in interface TransportOrBuilder
      Returns:
      The remoteAccountId.
    • getRemoteAccountIdBytes

      public com.google.protobuf.ByteString getRemoteAccountIdBytes()
       Optional. The user supplied account id for the CSP associated with the
       remote profile.
       
      string remote_account_id = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRemoteAccountIdBytes in interface TransportOrBuilder
      Returns:
      The bytes for remoteAccountId.
    • getPeeringNetwork

      public String getPeeringNetwork()
       Output only. VPC Network URI that was created for the VPC Peering
       connection to the provided `network`. If VPC Peering is disconnected, this
       can be used to re-establish.
       
      string peering_network = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPeeringNetwork in interface TransportOrBuilder
      Returns:
      The peeringNetwork.
    • getPeeringNetworkBytes

      public com.google.protobuf.ByteString getPeeringNetworkBytes()
       Output only. VPC Network URI that was created for the VPC Peering
       connection to the provided `network`. If VPC Peering is disconnected, this
       can be used to re-establish.
       
      string peering_network = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPeeringNetworkBytes in interface TransportOrBuilder
      Returns:
      The bytes for peeringNetwork.
    • 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 Transport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Transport.Builder newBuilder()
    • newBuilder

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

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

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

      public static Transport getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Transport> 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 Transport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder