Class GetNetworkProfileRequest.Builder (1.65.0)

public static final class GetNetworkProfileRequest.Builder extends GeneratedMessageV3.Builder<GetNetworkProfileRequest.Builder> implements GetNetworkProfileRequestOrBuilder

A request message for NetworkProfiles.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetNetworkProfileRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetNetworkProfileRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

build()

public GetNetworkProfileRequest build()
Returns
Type Description
GetNetworkProfileRequest

buildPartial()

public GetNetworkProfileRequest buildPartial()
Returns
Type Description
GetNetworkProfileRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetNetworkProfileRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

clearNetworkProfile()

public GetNetworkProfileRequest.Builder clearNetworkProfile()

Name of the network profile to return.

string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetNetworkProfileRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetNetworkProfileRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

clearProject()

public GetNetworkProfileRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetNetworkProfileRequest.Builder

This builder for chaining.

clone()

public GetNetworkProfileRequest.Builder clone()
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

getDefaultInstanceForType()

public GetNetworkProfileRequest getDefaultInstanceForType()
Returns
Type Description
GetNetworkProfileRequest

getDescriptorForType()

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

getNetworkProfile()

public String getNetworkProfile()

Name of the network profile to return.

string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The networkProfile.

getNetworkProfileBytes()

public ByteString getNetworkProfileBytes()

Name of the network profile to return.

string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for networkProfile.

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetNetworkProfileRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetNetworkProfileRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetNetworkProfileRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

setNetworkProfile(String value)

public GetNetworkProfileRequest.Builder setNetworkProfile(String value)

Name of the network profile to return.

string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The networkProfile to set.

Returns
Type Description
GetNetworkProfileRequest.Builder

This builder for chaining.

setNetworkProfileBytes(ByteString value)

public GetNetworkProfileRequest.Builder setNetworkProfileBytes(ByteString value)

Name of the network profile to return.

string network_profile = 173112472 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for networkProfile to set.

Returns
Type Description
GetNetworkProfileRequest.Builder

This builder for chaining.

setProject(String value)

public GetNetworkProfileRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetNetworkProfileRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetNetworkProfileRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetNetworkProfileRequest.Builder

This builder for chaining.

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

public GetNetworkProfileRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetNetworkProfileRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetNetworkProfileRequest.Builder
Overrides