Class GoogleServiceInfo.Builder (1.84.0)

public static final class GoogleServiceInfo.Builder extends GeneratedMessage.Builder<GoogleServiceInfo.Builder> implements GoogleServiceInfoOrBuilder

For display only. Details of a Google Service sending packets to a VPC network. Although the source IP might be a publicly routable address, some Google Services use special routes within Google production infrastructure to reach Compute Engine Instances. https://cloud.google.com/vpc/docs/routes#special_return_paths

Protobuf type google.cloud.networkmanagement.v1.GoogleServiceInfo

Static Methods

getDescriptor()

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

Methods

build()

public GoogleServiceInfo build()
Returns
Type Description
GoogleServiceInfo

buildPartial()

public GoogleServiceInfo buildPartial()
Returns
Type Description
GoogleServiceInfo

clear()

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

clearGoogleServiceType()

public GoogleServiceInfo.Builder clearGoogleServiceType()

Recognized type of a Google Service.

.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;

Returns
Type Description
GoogleServiceInfo.Builder

This builder for chaining.

clearSourceIp()

public GoogleServiceInfo.Builder clearSourceIp()

Source IP address.

string source_ip = 1;

Returns
Type Description
GoogleServiceInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public GoogleServiceInfo getDefaultInstanceForType()
Returns
Type Description
GoogleServiceInfo

getDescriptorForType()

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

getGoogleServiceType()

public GoogleServiceInfo.GoogleServiceType getGoogleServiceType()

Recognized type of a Google Service.

.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;

Returns
Type Description
GoogleServiceInfo.GoogleServiceType

The googleServiceType.

getGoogleServiceTypeValue()

public int getGoogleServiceTypeValue()

Recognized type of a Google Service.

.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for googleServiceType.

getSourceIp()

public String getSourceIp()

Source IP address.

string source_ip = 1;

Returns
Type Description
String

The sourceIp.

getSourceIpBytes()

public ByteString getSourceIpBytes()

Source IP address.

string source_ip = 1;

Returns
Type Description
ByteString

The bytes for sourceIp.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleServiceInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGoogleServiceType(GoogleServiceInfo.GoogleServiceType value)

public GoogleServiceInfo.Builder setGoogleServiceType(GoogleServiceInfo.GoogleServiceType value)

Recognized type of a Google Service.

.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;

Parameter
Name Description
value GoogleServiceInfo.GoogleServiceType

The googleServiceType to set.

Returns
Type Description
GoogleServiceInfo.Builder

This builder for chaining.

setGoogleServiceTypeValue(int value)

public GoogleServiceInfo.Builder setGoogleServiceTypeValue(int value)

Recognized type of a Google Service.

.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType google_service_type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for googleServiceType to set.

Returns
Type Description
GoogleServiceInfo.Builder

This builder for chaining.

setSourceIp(String value)

public GoogleServiceInfo.Builder setSourceIp(String value)

Source IP address.

string source_ip = 1;

Parameter
Name Description
value String

The sourceIp to set.

Returns
Type Description
GoogleServiceInfo.Builder

This builder for chaining.

setSourceIpBytes(ByteString value)

public GoogleServiceInfo.Builder setSourceIpBytes(ByteString value)

Source IP address.

string source_ip = 1;

Parameter
Name Description
value ByteString

The bytes for sourceIp to set.

Returns
Type Description
GoogleServiceInfo.Builder

This builder for chaining.