Class ExternalExposure.Builder (2.96.0)

public static final class ExternalExposure.Builder extends GeneratedMessage.Builder<ExternalExposure.Builder> implements ExternalExposureOrBuilder

Details about the externally exposed resource associated with the finding.

Protobuf type google.cloud.securitycenter.v1.ExternalExposure

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ExternalExposure build()
Returns
Type Description
ExternalExposure

buildPartial()

public ExternalExposure buildPartial()
Returns
Type Description
ExternalExposure

clear()

public ExternalExposure.Builder clear()
Returns
Type Description
ExternalExposure.Builder
Overrides

clearBackendService()

public ExternalExposure.Builder clearBackendService()

The full resource name of load balancer backend service, for example, "//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

string backend_service = 10;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearExposedEndpoint()

public ExternalExposure.Builder clearExposedEndpoint()

The resource which is running the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}.”

string exposed_endpoint = 6;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearExposedService()

public ExternalExposure.Builder clearExposedService()

The name and version of the service, for example, "Jupyter Notebook 6.14.0".

string exposed_service = 3;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearForwardingRule()

public ExternalExposure.Builder clearForwardingRule()

The full resource name of the forwarding rule, for example, "//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

string forwarding_rule = 9;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearInstanceGroup()

public ExternalExposure.Builder clearInstanceGroup()

The full resource name of the instance group, for example, "//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

string instance_group = 11;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearLoadBalancerFirewallPolicy()

public ExternalExposure.Builder clearLoadBalancerFirewallPolicy()

The full resource name of the load balancer firewall policy, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string load_balancer_firewall_policy = 7;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearNetworkEndpointGroup()

public ExternalExposure.Builder clearNetworkEndpointGroup()

The full resource name of the network endpoint group, for example, "//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

string network_endpoint_group = 12;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearPrivateIpAddress()

public ExternalExposure.Builder clearPrivateIpAddress()

Private IP address of the exposed endpoint.

string private_ip_address = 1 [(.google.api.field_info) = { ... }

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearPrivatePort()

public ExternalExposure.Builder clearPrivatePort()

Port number associated with private IP address.

string private_port = 2;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearPublicIpAddress()

public ExternalExposure.Builder clearPublicIpAddress()

Public IP address of the exposed endpoint.

string public_ip_address = 4 [(.google.api.field_info) = { ... }

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearPublicPort()

public ExternalExposure.Builder clearPublicPort()

Public port number of the exposed endpoint.

string public_port = 5;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

clearServiceFirewallPolicy()

public ExternalExposure.Builder clearServiceFirewallPolicy()

The full resource name of the firewall policy of the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string service_firewall_policy = 8;

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

getBackendService()

public String getBackendService()

The full resource name of load balancer backend service, for example, "//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

string backend_service = 10;

Returns
Type Description
String

The backendService.

getBackendServiceBytes()

public ByteString getBackendServiceBytes()

The full resource name of load balancer backend service, for example, "//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

string backend_service = 10;

Returns
Type Description
ByteString

The bytes for backendService.

getDefaultInstanceForType()

public ExternalExposure getDefaultInstanceForType()
Returns
Type Description
ExternalExposure

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExposedEndpoint()

public String getExposedEndpoint()

The resource which is running the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}.”

string exposed_endpoint = 6;

Returns
Type Description
String

The exposedEndpoint.

getExposedEndpointBytes()

public ByteString getExposedEndpointBytes()

The resource which is running the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}.”

string exposed_endpoint = 6;

Returns
Type Description
ByteString

The bytes for exposedEndpoint.

getExposedService()

public String getExposedService()

The name and version of the service, for example, "Jupyter Notebook 6.14.0".

string exposed_service = 3;

Returns
Type Description
String

The exposedService.

getExposedServiceBytes()

public ByteString getExposedServiceBytes()

The name and version of the service, for example, "Jupyter Notebook 6.14.0".

string exposed_service = 3;

Returns
Type Description
ByteString

The bytes for exposedService.

getForwardingRule()

public String getForwardingRule()

The full resource name of the forwarding rule, for example, "//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

string forwarding_rule = 9;

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

The full resource name of the forwarding rule, for example, "//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

string forwarding_rule = 9;

Returns
Type Description
ByteString

The bytes for forwardingRule.

getInstanceGroup()

public String getInstanceGroup()

The full resource name of the instance group, for example, "//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

string instance_group = 11;

Returns
Type Description
String

The instanceGroup.

getInstanceGroupBytes()

public ByteString getInstanceGroupBytes()

The full resource name of the instance group, for example, "//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

string instance_group = 11;

Returns
Type Description
ByteString

The bytes for instanceGroup.

getLoadBalancerFirewallPolicy()

public String getLoadBalancerFirewallPolicy()

The full resource name of the load balancer firewall policy, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string load_balancer_firewall_policy = 7;

Returns
Type Description
String

The loadBalancerFirewallPolicy.

getLoadBalancerFirewallPolicyBytes()

public ByteString getLoadBalancerFirewallPolicyBytes()

The full resource name of the load balancer firewall policy, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string load_balancer_firewall_policy = 7;

Returns
Type Description
ByteString

The bytes for loadBalancerFirewallPolicy.

getNetworkEndpointGroup()

public String getNetworkEndpointGroup()

The full resource name of the network endpoint group, for example, "//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

string network_endpoint_group = 12;

Returns
Type Description
String

The networkEndpointGroup.

getNetworkEndpointGroupBytes()

public ByteString getNetworkEndpointGroupBytes()

The full resource name of the network endpoint group, for example, "//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

string network_endpoint_group = 12;

Returns
Type Description
ByteString

The bytes for networkEndpointGroup.

getPrivateIpAddress()

public String getPrivateIpAddress()

Private IP address of the exposed endpoint.

string private_ip_address = 1 [(.google.api.field_info) = { ... }

Returns
Type Description
String

The privateIpAddress.

getPrivateIpAddressBytes()

public ByteString getPrivateIpAddressBytes()

Private IP address of the exposed endpoint.

string private_ip_address = 1 [(.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for privateIpAddress.

getPrivatePort()

public String getPrivatePort()

Port number associated with private IP address.

string private_port = 2;

Returns
Type Description
String

The privatePort.

getPrivatePortBytes()

public ByteString getPrivatePortBytes()

Port number associated with private IP address.

string private_port = 2;

Returns
Type Description
ByteString

The bytes for privatePort.

getPublicIpAddress()

public String getPublicIpAddress()

Public IP address of the exposed endpoint.

string public_ip_address = 4 [(.google.api.field_info) = { ... }

Returns
Type Description
String

The publicIpAddress.

getPublicIpAddressBytes()

public ByteString getPublicIpAddressBytes()

Public IP address of the exposed endpoint.

string public_ip_address = 4 [(.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for publicIpAddress.

getPublicPort()

public String getPublicPort()

Public port number of the exposed endpoint.

string public_port = 5;

Returns
Type Description
String

The publicPort.

getPublicPortBytes()

public ByteString getPublicPortBytes()

Public port number of the exposed endpoint.

string public_port = 5;

Returns
Type Description
ByteString

The bytes for publicPort.

getServiceFirewallPolicy()

public String getServiceFirewallPolicy()

The full resource name of the firewall policy of the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string service_firewall_policy = 8;

Returns
Type Description
String

The serviceFirewallPolicy.

getServiceFirewallPolicyBytes()

public ByteString getServiceFirewallPolicyBytes()

The full resource name of the firewall policy of the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string service_firewall_policy = 8;

Returns
Type Description
ByteString

The bytes for serviceFirewallPolicy.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExternalExposure other)

public ExternalExposure.Builder mergeFrom(ExternalExposure other)
Parameter
Name Description
other ExternalExposure
Returns
Type Description
ExternalExposure.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExternalExposure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExternalExposure.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExternalExposure.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExternalExposure.Builder
Overrides

setBackendService(String value)

public ExternalExposure.Builder setBackendService(String value)

The full resource name of load balancer backend service, for example, "//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

string backend_service = 10;

Parameter
Name Description
value String

The backendService to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setBackendServiceBytes(ByteString value)

public ExternalExposure.Builder setBackendServiceBytes(ByteString value)

The full resource name of load balancer backend service, for example, "//compute.googleapis.com/projects/{project-id}/global/backendServices/{name}".

string backend_service = 10;

Parameter
Name Description
value ByteString

The bytes for backendService to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setExposedEndpoint(String value)

public ExternalExposure.Builder setExposedEndpoint(String value)

The resource which is running the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}.”

string exposed_endpoint = 6;

Parameter
Name Description
value String

The exposedEndpoint to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setExposedEndpointBytes(ByteString value)

public ExternalExposure.Builder setExposedEndpointBytes(ByteString value)

The resource which is running the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/zones/{zone}/instances/{instance}.”

string exposed_endpoint = 6;

Parameter
Name Description
value ByteString

The bytes for exposedEndpoint to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setExposedService(String value)

public ExternalExposure.Builder setExposedService(String value)

The name and version of the service, for example, "Jupyter Notebook 6.14.0".

string exposed_service = 3;

Parameter
Name Description
value String

The exposedService to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setExposedServiceBytes(ByteString value)

public ExternalExposure.Builder setExposedServiceBytes(ByteString value)

The name and version of the service, for example, "Jupyter Notebook 6.14.0".

string exposed_service = 3;

Parameter
Name Description
value ByteString

The bytes for exposedService to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setForwardingRule(String value)

public ExternalExposure.Builder setForwardingRule(String value)

The full resource name of the forwarding rule, for example, "//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

string forwarding_rule = 9;

Parameter
Name Description
value String

The forwardingRule to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public ExternalExposure.Builder setForwardingRuleBytes(ByteString value)

The full resource name of the forwarding rule, for example, "//compute.googleapis.com/projects/{project-id}/global/forwardingRules/{forwarding-rule-name}".

string forwarding_rule = 9;

Parameter
Name Description
value ByteString

The bytes for forwardingRule to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setInstanceGroup(String value)

public ExternalExposure.Builder setInstanceGroup(String value)

The full resource name of the instance group, for example, "//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

string instance_group = 11;

Parameter
Name Description
value String

The instanceGroup to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setInstanceGroupBytes(ByteString value)

public ExternalExposure.Builder setInstanceGroupBytes(ByteString value)

The full resource name of the instance group, for example, "//compute.googleapis.com/projects/{project-id}/global/instanceGroups/{name}".

string instance_group = 11;

Parameter
Name Description
value ByteString

The bytes for instanceGroup to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setLoadBalancerFirewallPolicy(String value)

public ExternalExposure.Builder setLoadBalancerFirewallPolicy(String value)

The full resource name of the load balancer firewall policy, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string load_balancer_firewall_policy = 7;

Parameter
Name Description
value String

The loadBalancerFirewallPolicy to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setLoadBalancerFirewallPolicyBytes(ByteString value)

public ExternalExposure.Builder setLoadBalancerFirewallPolicyBytes(ByteString value)

The full resource name of the load balancer firewall policy, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string load_balancer_firewall_policy = 7;

Parameter
Name Description
value ByteString

The bytes for loadBalancerFirewallPolicy to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setNetworkEndpointGroup(String value)

public ExternalExposure.Builder setNetworkEndpointGroup(String value)

The full resource name of the network endpoint group, for example, "//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

string network_endpoint_group = 12;

Parameter
Name Description
value String

The networkEndpointGroup to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setNetworkEndpointGroupBytes(ByteString value)

public ExternalExposure.Builder setNetworkEndpointGroupBytes(ByteString value)

The full resource name of the network endpoint group, for example, "//compute.googleapis.com/projects/{project-id}/global/networkEndpointGroups/{name}".

string network_endpoint_group = 12;

Parameter
Name Description
value ByteString

The bytes for networkEndpointGroup to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPrivateIpAddress(String value)

public ExternalExposure.Builder setPrivateIpAddress(String value)

Private IP address of the exposed endpoint.

string private_ip_address = 1 [(.google.api.field_info) = { ... }

Parameter
Name Description
value String

The privateIpAddress to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPrivateIpAddressBytes(ByteString value)

public ExternalExposure.Builder setPrivateIpAddressBytes(ByteString value)

Private IP address of the exposed endpoint.

string private_ip_address = 1 [(.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for privateIpAddress to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPrivatePort(String value)

public ExternalExposure.Builder setPrivatePort(String value)

Port number associated with private IP address.

string private_port = 2;

Parameter
Name Description
value String

The privatePort to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPrivatePortBytes(ByteString value)

public ExternalExposure.Builder setPrivatePortBytes(ByteString value)

Port number associated with private IP address.

string private_port = 2;

Parameter
Name Description
value ByteString

The bytes for privatePort to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPublicIpAddress(String value)

public ExternalExposure.Builder setPublicIpAddress(String value)

Public IP address of the exposed endpoint.

string public_ip_address = 4 [(.google.api.field_info) = { ... }

Parameter
Name Description
value String

The publicIpAddress to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPublicIpAddressBytes(ByteString value)

public ExternalExposure.Builder setPublicIpAddressBytes(ByteString value)

Public IP address of the exposed endpoint.

string public_ip_address = 4 [(.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for publicIpAddress to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPublicPort(String value)

public ExternalExposure.Builder setPublicPort(String value)

Public port number of the exposed endpoint.

string public_port = 5;

Parameter
Name Description
value String

The publicPort to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setPublicPortBytes(ByteString value)

public ExternalExposure.Builder setPublicPortBytes(ByteString value)

Public port number of the exposed endpoint.

string public_port = 5;

Parameter
Name Description
value ByteString

The bytes for publicPort to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setServiceFirewallPolicy(String value)

public ExternalExposure.Builder setServiceFirewallPolicy(String value)

The full resource name of the firewall policy of the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string service_firewall_policy = 8;

Parameter
Name Description
value String

The serviceFirewallPolicy to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.

setServiceFirewallPolicyBytes(ByteString value)

public ExternalExposure.Builder setServiceFirewallPolicyBytes(ByteString value)

The full resource name of the firewall policy of the exposed service, for example, "//compute.googleapis.com/projects/{project-id}/global/firewallPolicies/{policy-name}".

string service_firewall_policy = 8;

Parameter
Name Description
value ByteString

The bytes for serviceFirewallPolicy to set.

Returns
Type Description
ExternalExposure.Builder

This builder for chaining.