Class GatewayRouteView.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GatewayRouteView.Builder>
com.google.cloud.networkservices.v1.GatewayRouteView.Builder
All Implemented Interfaces:
GatewayRouteViewOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GatewayRouteView

public static final class GatewayRouteView.Builder extends com.google.protobuf.GeneratedMessage.Builder<GatewayRouteView.Builder> implements GatewayRouteViewOrBuilder
 GatewayRouteView defines view-only resource for Routes to a Gateway
 
Protobuf type google.cloud.networkservices.v1.GatewayRouteView
  • 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.Builder<GatewayRouteView.Builder>
    • clear

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

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

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

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

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

      public GatewayRouteView.Builder mergeFrom(GatewayRouteView other)
    • isInitialized

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

      public GatewayRouteView.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<GatewayRouteView.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. Full path name of the GatewayRouteView resource.
       Format:
       projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface GatewayRouteViewOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. Full path name of the GatewayRouteView resource.
       Format:
       projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface GatewayRouteViewOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GatewayRouteView.Builder setName(String value)
       Output only. Identifier. Full path name of the GatewayRouteView resource.
       Format:
       projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GatewayRouteView.Builder clearName()
       Output only. Identifier. Full path name of the GatewayRouteView resource.
       Format:
       projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GatewayRouteView.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. Full path name of the GatewayRouteView resource.
       Format:
       projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/{route_view}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRouteProjectNumber

      public long getRouteProjectNumber()
       Output only. Project number where the route exists.
       
      int64 route_project_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteProjectNumber in interface GatewayRouteViewOrBuilder
      Returns:
      The routeProjectNumber.
    • setRouteProjectNumber

      public GatewayRouteView.Builder setRouteProjectNumber(long value)
       Output only. Project number where the route exists.
       
      int64 route_project_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The routeProjectNumber to set.
      Returns:
      This builder for chaining.
    • clearRouteProjectNumber

      public GatewayRouteView.Builder clearRouteProjectNumber()
       Output only. Project number where the route exists.
       
      int64 route_project_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getRouteLocation

      public String getRouteLocation()
       Output only. Location where the route exists.
       
      string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteLocation in interface GatewayRouteViewOrBuilder
      Returns:
      The routeLocation.
    • getRouteLocationBytes

      public com.google.protobuf.ByteString getRouteLocationBytes()
       Output only. Location where the route exists.
       
      string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteLocationBytes in interface GatewayRouteViewOrBuilder
      Returns:
      The bytes for routeLocation.
    • setRouteLocation

      public GatewayRouteView.Builder setRouteLocation(String value)
       Output only. Location where the route exists.
       
      string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The routeLocation to set.
      Returns:
      This builder for chaining.
    • clearRouteLocation

      public GatewayRouteView.Builder clearRouteLocation()
       Output only. Location where the route exists.
       
      string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRouteLocationBytes

      public GatewayRouteView.Builder setRouteLocationBytes(com.google.protobuf.ByteString value)
       Output only. Location where the route exists.
       
      string route_location = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for routeLocation to set.
      Returns:
      This builder for chaining.
    • getRouteType

      public String getRouteType()
       Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
       
      string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteType in interface GatewayRouteViewOrBuilder
      Returns:
      The routeType.
    • getRouteTypeBytes

      public com.google.protobuf.ByteString getRouteTypeBytes()
       Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
       
      string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteTypeBytes in interface GatewayRouteViewOrBuilder
      Returns:
      The bytes for routeType.
    • setRouteType

      public GatewayRouteView.Builder setRouteType(String value)
       Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
       
      string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The routeType to set.
      Returns:
      This builder for chaining.
    • clearRouteType

      public GatewayRouteView.Builder clearRouteType()
       Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
       
      string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRouteTypeBytes

      public GatewayRouteView.Builder setRouteTypeBytes(com.google.protobuf.ByteString value)
       Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
       
      string route_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for routeType to set.
      Returns:
      This builder for chaining.
    • getRouteId

      public String getRouteId()
       Output only. The resource id for the route.
       
      string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteId in interface GatewayRouteViewOrBuilder
      Returns:
      The routeId.
    • getRouteIdBytes

      public com.google.protobuf.ByteString getRouteIdBytes()
       Output only. The resource id for the route.
       
      string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRouteIdBytes in interface GatewayRouteViewOrBuilder
      Returns:
      The bytes for routeId.
    • setRouteId

      public GatewayRouteView.Builder setRouteId(String value)
       Output only. The resource id for the route.
       
      string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The routeId to set.
      Returns:
      This builder for chaining.
    • clearRouteId

      public GatewayRouteView.Builder clearRouteId()
       Output only. The resource id for the route.
       
      string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRouteIdBytes

      public GatewayRouteView.Builder setRouteIdBytes(com.google.protobuf.ByteString value)
       Output only. The resource id for the route.
       
      string route_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for routeId to set.
      Returns:
      This builder for chaining.