Class Destination

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

@Generated public final class Destination extends com.google.protobuf.GeneratedMessage implements DestinationOrBuilder
 The `Destination` resource. It specifies the IP prefix and the associated
 autonomous system numbers (ASN) that you want to include in a
 `MulticloudDataTransferConfig` resource.
 
Protobuf type google.cloud.networkconnectivity.v1beta.Destination
See Also:
  • Field Details

  • 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. The name of the `Destination` resource.
       Format:
       `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DestinationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the `Destination` resource.
       Format:
       `projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DestinationOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when the `Destination` resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DestinationOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when the `Destination` resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DestinationOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when the `Destination` resource was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DestinationOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time when the `Destination` resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DestinationOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time when the `Destination` resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DestinationOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time when the `Destination` resource was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DestinationOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DestinationOrBuilder
       Optional. User-defined labels.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface DestinationOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. User-defined labels.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface DestinationOrBuilder
    • getLabels

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

      public Map<String,String> getLabelsMap()
       Optional. User-defined labels.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface DestinationOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. User-defined labels.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface DestinationOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. User-defined labels.
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface DestinationOrBuilder
    • getEtag

      public String getEtag()
       The etag is computed by the server, and might be sent with update and
       delete requests so that the client has an up-to-date value before
       proceeding.
       
      string etag = 5;
      Specified by:
      getEtag in interface DestinationOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       The etag is computed by the server, and might be sent with update and
       delete requests so that the client has an up-to-date value before
       proceeding.
       
      string etag = 5;
      Specified by:
      getEtagBytes in interface DestinationOrBuilder
      Returns:
      The bytes for etag.
    • getDescription

      public String getDescription()
       Optional. A description of this resource.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface DestinationOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A description of this resource.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface DestinationOrBuilder
      Returns:
      The bytes for description.
    • getIpPrefix

      public String getIpPrefix()
       Required. Immutable. The IP prefix that represents your workload on another
       CSP.
       
      string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getIpPrefix in interface DestinationOrBuilder
      Returns:
      The ipPrefix.
    • getIpPrefixBytes

      public com.google.protobuf.ByteString getIpPrefixBytes()
       Required. Immutable. The IP prefix that represents your workload on another
       CSP.
       
      string ip_prefix = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getIpPrefixBytes in interface DestinationOrBuilder
      Returns:
      The bytes for ipPrefix.
    • getEndpointsList

      public List<Destination.DestinationEndpoint> getEndpointsList()
       Required. Unordered list. The list of `DestinationEndpoint` resources
       configured for the IP prefix.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointsList in interface DestinationOrBuilder
    • getEndpointsOrBuilderList

      public List<? extends Destination.DestinationEndpointOrBuilder> getEndpointsOrBuilderList()
       Required. Unordered list. The list of `DestinationEndpoint` resources
       configured for the IP prefix.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointsOrBuilderList in interface DestinationOrBuilder
    • getEndpointsCount

      public int getEndpointsCount()
       Required. Unordered list. The list of `DestinationEndpoint` resources
       configured for the IP prefix.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointsCount in interface DestinationOrBuilder
    • getEndpoints

      public Destination.DestinationEndpoint getEndpoints(int index)
       Required. Unordered list. The list of `DestinationEndpoint` resources
       configured for the IP prefix.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpoints in interface DestinationOrBuilder
    • getEndpointsOrBuilder

      public Destination.DestinationEndpointOrBuilder getEndpointsOrBuilder(int index)
       Required. Unordered list. The list of `DestinationEndpoint` resources
       configured for the IP prefix.
       
      repeated .google.cloud.networkconnectivity.v1beta.Destination.DestinationEndpoint endpoints = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndpointsOrBuilder in interface DestinationOrBuilder
    • hasStateTimeline

      public boolean hasStateTimeline()
       Output only. The timeline of the expected `Destination` states or the
       current rest state. If a state change is expected, the value is `ADDING`,
       `DELETING` or `SUSPENDING`, depending on the action specified.
      
       Example:
       "state_timeline": {
       "states": [
       {
       // The time when the `Destination` resource will be activated.
       "effectiveTime": "2024-12-01T08:00:00Z",
       "state": "ADDING"
       },
       {
       // The time when the `Destination` resource will be suspended.
       "effectiveTime": "2024-12-01T20:00:00Z",
       "state": "SUSPENDING"
       }
       ]
       }
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStateTimeline in interface DestinationOrBuilder
      Returns:
      Whether the stateTimeline field is set.
    • getStateTimeline

      public StateTimeline getStateTimeline()
       Output only. The timeline of the expected `Destination` states or the
       current rest state. If a state change is expected, the value is `ADDING`,
       `DELETING` or `SUSPENDING`, depending on the action specified.
      
       Example:
       "state_timeline": {
       "states": [
       {
       // The time when the `Destination` resource will be activated.
       "effectiveTime": "2024-12-01T08:00:00Z",
       "state": "ADDING"
       },
       {
       // The time when the `Destination` resource will be suspended.
       "effectiveTime": "2024-12-01T20:00:00Z",
       "state": "SUSPENDING"
       }
       ]
       }
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateTimeline in interface DestinationOrBuilder
      Returns:
      The stateTimeline.
    • getStateTimelineOrBuilder

      public StateTimelineOrBuilder getStateTimelineOrBuilder()
       Output only. The timeline of the expected `Destination` states or the
       current rest state. If a state change is expected, the value is `ADDING`,
       `DELETING` or `SUSPENDING`, depending on the action specified.
      
       Example:
       "state_timeline": {
       "states": [
       {
       // The time when the `Destination` resource will be activated.
       "effectiveTime": "2024-12-01T08:00:00Z",
       "state": "ADDING"
       },
       {
       // The time when the `Destination` resource will be suspended.
       "effectiveTime": "2024-12-01T20:00:00Z",
       "state": "SUSPENDING"
       }
       ]
       }
       
      .google.cloud.networkconnectivity.v1beta.StateTimeline state_timeline = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateTimelineOrBuilder in interface DestinationOrBuilder
    • getUid

      public String getUid()
       Output only. The Google-generated unique ID for the `Destination` resource.
       This value is unique across all `Destination` resources.
       If a resource is deleted and another with the same name is
       created, the new resource is assigned a different and unique ID.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface DestinationOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. The Google-generated unique ID for the `Destination` resource.
       This value is unique across all `Destination` resources.
       If a resource is deleted and another with the same name is
       created, the new resource is assigned a different and unique ID.
       
      string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface DestinationOrBuilder
      Returns:
      The bytes for uid.
    • 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 Destination parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Destination.Builder newBuilder()
    • newBuilder

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

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

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

      public static Destination getDefaultInstance()
    • parser

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

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