Class Transport.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Transport.Builder>
com.google.cloud.networkconnectivity.v1beta.Transport.Builder
All Implemented Interfaces:
TransportOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Transport

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Transport.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Transport.Builder>
    • clear

      public Transport.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<Transport.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<Transport.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Transport.Builder mergeFrom(Transport other)
    • isInitialized

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

      public Transport.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<Transport.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public Transport.Builder setName(String value)
       Identifier. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Transport.Builder clearName()
       Identifier. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Transport.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of the resource.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public Transport.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Transport.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Transport.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Transport.Builder clearCreateTime()
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Create time stamp.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpdateTime

      public Transport.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Transport.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Transport.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Transport.Builder clearUpdateTime()
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Update time stamp.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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
    • clearLabels

      public Transport.Builder clearLabels()
    • removeLabels

      public Transport.Builder removeLabels(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Transport.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Transport.Builder putAllLabels(Map<String,String> values)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • 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.
    • setDescription

      public Transport.Builder setDescription(String value)
       Optional. Description of the Transport.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Transport.Builder clearDescription()
       Optional. Description of the Transport.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Transport.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the Transport.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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.
    • setRemoteProfile

      public Transport.Builder setRemoteProfile(String value)
       Optional. Name of the remoteTransportProfile that this Transport is
       connecting to.
       
      string remote_profile = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The remoteProfile to set.
      Returns:
      This builder for chaining.
    • clearRemoteProfile

      public Transport.Builder clearRemoteProfile()
       Optional. Name of the remoteTransportProfile that this Transport is
       connecting to.
       
      string remote_profile = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRemoteProfileBytes

      public Transport.Builder setRemoteProfileBytes(com.google.protobuf.ByteString value)
       Optional. Name of the remoteTransportProfile that this Transport is
       connecting to.
       
      string remote_profile = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for remoteProfile to set.
      Returns:
      This builder for chaining.
    • 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.
    • setProvidedActivationKey

      public Transport.Builder setProvidedActivationKey(String value)
       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];
      Parameters:
      value - The providedActivationKey to set.
      Returns:
      This builder for chaining.
    • clearProvidedActivationKey

      public Transport.Builder clearProvidedActivationKey()
       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];
      Returns:
      This builder for chaining.
    • setProvidedActivationKeyBytes

      public Transport.Builder setProvidedActivationKeyBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for providedActivationKey to set.
      Returns:
      This builder for chaining.
    • 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.
    • setGeneratedActivationKey

      public Transport.Builder setGeneratedActivationKey(String value)
       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];
      Parameters:
      value - The generatedActivationKey to set.
      Returns:
      This builder for chaining.
    • clearGeneratedActivationKey

      public Transport.Builder clearGeneratedActivationKey()
       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];
      Returns:
      This builder for chaining.
    • setGeneratedActivationKeyBytes

      public Transport.Builder setGeneratedActivationKeyBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for generatedActivationKey to set.
      Returns:
      This builder for chaining.
    • 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.
    • setBandwidthValue

      public Transport.Builder setBandwidthValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for bandwidth to set.
      Returns:
      This builder for chaining.
    • 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.
    • setBandwidth

      public Transport.Builder setBandwidth(Transport.Bandwidth value)
       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];
      Parameters:
      value - The bandwidth to set.
      Returns:
      This builder for chaining.
    • clearBandwidth

      public Transport.Builder clearBandwidth()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setStackTypeValue

      public Transport.Builder setStackTypeValue(int value)
       Optional. IP version stack for the established connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.StackType stack_type = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for stackType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStackType

      public Transport.Builder setStackType(Transport.StackType value)
       Optional. IP version stack for the established connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.StackType stack_type = 11 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stackType to set.
      Returns:
      This builder for chaining.
    • clearStackType

      public Transport.Builder clearStackType()
       Optional. IP version stack for the established connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.StackType stack_type = 11 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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.
    • setStateValue

      public Transport.Builder setStateValue(int value)
       Output only. State of the underlying connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

      public Transport.Builder setState(Transport.State value)
       Output only. State of the underlying connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Transport.Builder clearState()
       Output only. State of the underlying connectivity.
       
      .google.cloud.networkconnectivity.v1beta.Transport.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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.
    • setMtuLimit

      public Transport.Builder setMtuLimit(int value)
       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];
      Parameters:
      value - The mtuLimit to set.
      Returns:
      This builder for chaining.
    • clearMtuLimit

      public Transport.Builder clearMtuLimit()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setAdminEnabled

      public Transport.Builder setAdminEnabled(boolean value)
       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];
      Parameters:
      value - The adminEnabled to set.
      Returns:
      This builder for chaining.
    • clearAdminEnabled

      public Transport.Builder clearAdminEnabled()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setNetwork

      public Transport.Builder setNetwork(String value)
       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) = { ... }
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public Transport.Builder clearNetwork()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Transport.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • 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.
    • setAdvertisedRoutes

      public Transport.Builder setAdvertisedRoutes(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The advertisedRoutes to set.
      Returns:
      This builder for chaining.
    • addAdvertisedRoutes

      public Transport.Builder addAdvertisedRoutes(String value)
       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];
      Parameters:
      value - The advertisedRoutes to add.
      Returns:
      This builder for chaining.
    • addAllAdvertisedRoutes

      public Transport.Builder addAllAdvertisedRoutes(Iterable<String> values)
       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];
      Parameters:
      values - The advertisedRoutes to add.
      Returns:
      This builder for chaining.
    • clearAdvertisedRoutes

      public Transport.Builder clearAdvertisedRoutes()
       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];
      Returns:
      This builder for chaining.
    • addAdvertisedRoutesBytes

      public Transport.Builder addAdvertisedRoutesBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the advertisedRoutes to add.
      Returns:
      This builder for chaining.
    • 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.
    • setRemoteAccountId

      public Transport.Builder setRemoteAccountId(String value)
       Optional. The user supplied account id for the CSP associated with the
       remote profile.
       
      string remote_account_id = 17 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The remoteAccountId to set.
      Returns:
      This builder for chaining.
    • clearRemoteAccountId

      public Transport.Builder clearRemoteAccountId()
       Optional. The user supplied account id for the CSP associated with the
       remote profile.
       
      string remote_account_id = 17 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRemoteAccountIdBytes

      public Transport.Builder setRemoteAccountIdBytes(com.google.protobuf.ByteString value)
       Optional. The user supplied account id for the CSP associated with the
       remote profile.
       
      string remote_account_id = 17 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for remoteAccountId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPeeringNetwork

      public Transport.Builder setPeeringNetwork(String value)
       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];
      Parameters:
      value - The peeringNetwork to set.
      Returns:
      This builder for chaining.
    • clearPeeringNetwork

      public Transport.Builder clearPeeringNetwork()
       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];
      Returns:
      This builder for chaining.
    • setPeeringNetworkBytes

      public Transport.Builder setPeeringNetworkBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for peeringNetwork to set.
      Returns:
      This builder for chaining.