Class GetRoutePolicyRouterRequest.Builder

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

public static final class GetRoutePolicyRouterRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetRoutePolicyRouterRequest.Builder> implements GetRoutePolicyRouterRequestOrBuilder
 A request message for Routers.GetRoutePolicy. See the method description for details.
 
Protobuf type google.cloud.compute.v1.GetRoutePolicyRouterRequest
  • 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<GetRoutePolicyRouterRequest.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<GetRoutePolicyRouterRequest.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<GetRoutePolicyRouterRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public GetRoutePolicyRouterRequest.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<GetRoutePolicyRouterRequest.Builder>
      Throws:
      IOException
    • hasPolicy

      public boolean hasPolicy()
       The Policy name for this request. Name must conform to RFC1035
       
      optional string policy = 91071794;
      Specified by:
      hasPolicy in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      Whether the policy field is set.
    • getPolicy

      public String getPolicy()
       The Policy name for this request. Name must conform to RFC1035
       
      optional string policy = 91071794;
      Specified by:
      getPolicy in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The policy.
    • getPolicyBytes

      public com.google.protobuf.ByteString getPolicyBytes()
       The Policy name for this request. Name must conform to RFC1035
       
      optional string policy = 91071794;
      Specified by:
      getPolicyBytes in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The bytes for policy.
    • setPolicy

      public GetRoutePolicyRouterRequest.Builder setPolicy(String value)
       The Policy name for this request. Name must conform to RFC1035
       
      optional string policy = 91071794;
      Parameters:
      value - The policy to set.
      Returns:
      This builder for chaining.
    • clearPolicy

       The Policy name for this request. Name must conform to RFC1035
       
      optional string policy = 91071794;
      Returns:
      This builder for chaining.
    • setPolicyBytes

      public GetRoutePolicyRouterRequest.Builder setPolicyBytes(com.google.protobuf.ByteString value)
       The Policy name for this request. Name must conform to RFC1035
       
      optional string policy = 91071794;
      Parameters:
      value - The bytes for policy to set.
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProject in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProjectBytes in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public GetRoutePolicyRouterRequest.Builder setProject(String value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public GetRoutePolicyRouterRequest.Builder clearProject()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setProjectBytes

      public GetRoutePolicyRouterRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegion in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegionBytes in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public GetRoutePolicyRouterRequest.Builder setRegion(String value)
       Name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

       Name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRegionBytes

      public GetRoutePolicyRouterRequest.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Name of the region for this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getRouter

      public String getRouter()
       Name of the Router resource to query for the route policy. The name should
       conform to RFC1035.
       
      string router = 148608841 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRouter in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The router.
    • getRouterBytes

      public com.google.protobuf.ByteString getRouterBytes()
       Name of the Router resource to query for the route policy. The name should
       conform to RFC1035.
       
      string router = 148608841 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRouterBytes in interface GetRoutePolicyRouterRequestOrBuilder
      Returns:
      The bytes for router.
    • setRouter

      public GetRoutePolicyRouterRequest.Builder setRouter(String value)
       Name of the Router resource to query for the route policy. The name should
       conform to RFC1035.
       
      string router = 148608841 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The router to set.
      Returns:
      This builder for chaining.
    • clearRouter

       Name of the Router resource to query for the route policy. The name should
       conform to RFC1035.
       
      string router = 148608841 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRouterBytes

      public GetRoutePolicyRouterRequest.Builder setRouterBytes(com.google.protobuf.ByteString value)
       Name of the Router resource to query for the route policy. The name should
       conform to RFC1035.
       
      string router = 148608841 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for router to set.
      Returns:
      This builder for chaining.