Class AddRuleSecurityPolicyRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.AddRuleSecurityPolicyRequest
All Implemented Interfaces:
AddRuleSecurityPolicyRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AddRuleSecurityPolicyRequest extends com.google.protobuf.GeneratedMessage implements AddRuleSecurityPolicyRequestOrBuilder
 A request message for SecurityPolicies.AddRule. See the method description for details.
 
Protobuf type google.cloud.compute.v1.AddRuleSecurityPolicyRequest
See Also:
  • Field Details

    • PROJECT_FIELD_NUMBER

      public static final int PROJECT_FIELD_NUMBER
      See Also:
    • SECURITY_POLICY_FIELD_NUMBER

      public static final int SECURITY_POLICY_FIELD_NUMBER
      See Also:
    • SECURITY_POLICY_RULE_RESOURCE_FIELD_NUMBER

      public static final int SECURITY_POLICY_RULE_RESOURCE_FIELD_NUMBER
      See Also:
    • VALIDATE_ONLY_FIELD_NUMBER

      public static final int VALIDATE_ONLY_FIELD_NUMBER
      See Also:
  • 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
    • getProject

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

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

      public String getSecurityPolicy()
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicy in interface AddRuleSecurityPolicyRequestOrBuilder
      Returns:
      The securityPolicy.
    • getSecurityPolicyBytes

      public com.google.protobuf.ByteString getSecurityPolicyBytes()
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicyBytes in interface AddRuleSecurityPolicyRequestOrBuilder
      Returns:
      The bytes for securityPolicy.
    • hasSecurityPolicyRuleResource

      public boolean hasSecurityPolicyRuleResource()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSecurityPolicyRuleResource in interface AddRuleSecurityPolicyRequestOrBuilder
      Returns:
      Whether the securityPolicyRuleResource field is set.
    • getSecurityPolicyRuleResource

      public SecurityPolicyRule getSecurityPolicyRuleResource()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicyRuleResource in interface AddRuleSecurityPolicyRequestOrBuilder
      Returns:
      The securityPolicyRuleResource.
    • getSecurityPolicyRuleResourceOrBuilder

      public SecurityPolicyRuleOrBuilder getSecurityPolicyRuleResourceOrBuilder()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicyRuleResourceOrBuilder in interface AddRuleSecurityPolicyRequestOrBuilder
    • hasValidateOnly

      public boolean hasValidateOnly()
       If true, the request will not be committed.
       
      optional bool validate_only = 242744629;
      Specified by:
      hasValidateOnly in interface AddRuleSecurityPolicyRequestOrBuilder
      Returns:
      Whether the validateOnly field is set.
    • getValidateOnly

      public boolean getValidateOnly()
       If true, the request will not be committed.
       
      optional bool validate_only = 242744629;
      Specified by:
      getValidateOnly in interface AddRuleSecurityPolicyRequestOrBuilder
      Returns:
      The validateOnly.
    • 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 AddRuleSecurityPolicyRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AddRuleSecurityPolicyRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static AddRuleSecurityPolicyRequest getDefaultInstance()
    • parser

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

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