Required. Short name of the ServiceLbPolicy resource to be created.
E.g. for resource name
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
the id is value of {service_lb_policy_name}
Required. Short name of the ServiceLbPolicy resource to be created.
E.g. for resource name
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
the id is value of {service_lb_policy_name}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-16 UTC."],[],[],null,["# Interface CreateServiceLbPolicyRequestOrBuilder (0.28.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.28.0 (latest)](/java/docs/reference/google-cloud-networkservices/latest/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-networkservices/0.26.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.24.0](/java/docs/reference/google-cloud-networkservices/0.24.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-networkservices/0.23.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-networkservices/0.20.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-networkservices/0.19.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-networkservices/0.18.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-networkservices/0.16.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-networkservices/0.15.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-networkservices/0.14.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-networkservices/0.13.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-networkservices/0.12.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-networkservices/0.11.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-networkservices/0.10.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-networkservices/0.9.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-networkservices/0.8.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-networkservices/0.7.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-networkservices/0.5.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-networkservices/0.4.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-networkservices/0.3.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-networkservices/0.2.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-networkservices/0.1.0/com.google.cloud.networkservices.v1.CreateServiceLbPolicyRequestOrBuilder) \n\n public interface CreateServiceLbPolicyRequestOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getParent()\n\n public abstract String getParent()\n\nRequired. The parent resource of the ServiceLbPolicy. Must be in the\nformat `projects/{project}/locations/{location}`.\n\n`\nstring parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getParentBytes()\n\n public abstract ByteString getParentBytes()\n\nRequired. The parent resource of the ServiceLbPolicy. Must be in the\nformat `projects/{project}/locations/{location}`.\n\n`\nstring parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getServiceLbPolicy()\n\n public abstract ServiceLbPolicy getServiceLbPolicy()\n\nRequired. ServiceLbPolicy resource to be created.\n\n`\n.google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policy = 3 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getServiceLbPolicyId()\n\n public abstract String getServiceLbPolicyId()\n\nRequired. Short name of the ServiceLbPolicy resource to be created.\nE.g. for resource name\n`projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.\nthe id is value of {service_lb_policy_name}\n\n`string service_lb_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getServiceLbPolicyIdBytes()\n\n public abstract ByteString getServiceLbPolicyIdBytes()\n\nRequired. Short name of the ServiceLbPolicy resource to be created.\nE.g. for resource name\n`projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`.\nthe id is value of {service_lb_policy_name}\n\n`string service_lb_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getServiceLbPolicyOrBuilder()\n\n public abstract ServiceLbPolicyOrBuilder getServiceLbPolicyOrBuilder()\n\nRequired. ServiceLbPolicy resource to be created.\n\n`\n.google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policy = 3 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### hasServiceLbPolicy()\n\n public abstract boolean hasServiceLbPolicy()\n\nRequired. ServiceLbPolicy resource to be created.\n\n`\n.google.cloud.networkservices.v1.ServiceLbPolicy service_lb_policy = 3 [(.google.api.field_behavior) = REQUIRED];\n`"]]