Class NetworkInfo.Builder (1.31.0)

public static final class NetworkInfo.Builder extends GeneratedMessageV3.Builder<NetworkInfo.Builder> implements NetworkInfoOrBuilder

For display only. Metadata associated with a Compute Engine network.

Protobuf type google.cloud.networkmanagement.v1.NetworkInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkInfo.Builder
Overrides

build()

public NetworkInfo build()
Returns
TypeDescription
NetworkInfo

buildPartial()

public NetworkInfo buildPartial()
Returns
TypeDescription
NetworkInfo

clear()

public NetworkInfo.Builder clear()
Returns
TypeDescription
NetworkInfo.Builder
Overrides

clearDisplayName()

public NetworkInfo.Builder clearDisplayName()

Name of a Compute Engine network.

string display_name = 1;

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkInfo.Builder
Overrides

clearMatchedIpRange()

public NetworkInfo.Builder clearMatchedIpRange()

The IP range that matches the test.

string matched_ip_range = 4;

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkInfo.Builder
Overrides

clearUri()

public NetworkInfo.Builder clearUri()

URI of a Compute Engine network.

string uri = 2;

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

clone()

public NetworkInfo.Builder clone()
Returns
TypeDescription
NetworkInfo.Builder
Overrides

getDefaultInstanceForType()

public NetworkInfo getDefaultInstanceForType()
Returns
TypeDescription
NetworkInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Name of a Compute Engine network.

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Name of a Compute Engine network.

string display_name = 1;

Returns
TypeDescription
ByteString

The bytes for displayName.

getMatchedIpRange()

public String getMatchedIpRange()

The IP range that matches the test.

string matched_ip_range = 4;

Returns
TypeDescription
String

The matchedIpRange.

getMatchedIpRangeBytes()

public ByteString getMatchedIpRangeBytes()

The IP range that matches the test.

string matched_ip_range = 4;

Returns
TypeDescription
ByteString

The bytes for matchedIpRange.

getUri()

public String getUri()

URI of a Compute Engine network.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URI of a Compute Engine network.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkInfo other)

public NetworkInfo.Builder mergeFrom(NetworkInfo other)
Parameter
NameDescription
otherNetworkInfo
Returns
TypeDescription
NetworkInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkInfo.Builder
Overrides

setDisplayName(String value)

public NetworkInfo.Builder setDisplayName(String value)

Name of a Compute Engine network.

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public NetworkInfo.Builder setDisplayNameBytes(ByteString value)

Name of a Compute Engine network.

string display_name = 1;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkInfo.Builder
Overrides

setMatchedIpRange(String value)

public NetworkInfo.Builder setMatchedIpRange(String value)

The IP range that matches the test.

string matched_ip_range = 4;

Parameter
NameDescription
valueString

The matchedIpRange to set.

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

setMatchedIpRangeBytes(ByteString value)

public NetworkInfo.Builder setMatchedIpRangeBytes(ByteString value)

The IP range that matches the test.

string matched_ip_range = 4;

Parameter
NameDescription
valueByteString

The bytes for matchedIpRange to set.

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NetworkInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkInfo.Builder
Overrides

setUri(String value)

public NetworkInfo.Builder setUri(String value)

URI of a Compute Engine network.

string uri = 2;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.

setUriBytes(ByteString value)

public NetworkInfo.Builder setUriBytes(ByteString value)

URI of a Compute Engine network.

string uri = 2;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
NetworkInfo.Builder

This builder for chaining.