Class GetForwardingRuleRequest.Builder (1.26.0)

public static final class GetForwardingRuleRequest.Builder extends GeneratedMessageV3.Builder<GetForwardingRuleRequest.Builder> implements GetForwardingRuleRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetForwardingRuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetForwardingRuleRequest build()
Returns
TypeDescription
GetForwardingRuleRequest

buildPartial()

public GetForwardingRuleRequest buildPartial()
Returns
TypeDescription
GetForwardingRuleRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearForwardingRule()

public GetForwardingRuleRequest.Builder clearForwardingRule()

Name of the ForwardingRule resource to return.

string forwarding_rule = 269964030 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetForwardingRuleRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

clearRegion()

public GetForwardingRuleRequest.Builder clearRegion()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetForwardingRuleRequest getDefaultInstanceForType()
Returns
TypeDescription
GetForwardingRuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForwardingRule()

public String getForwardingRule()

Name of the ForwardingRule resource to return.

string forwarding_rule = 269964030 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

Name of the ForwardingRule resource to return.

string forwarding_rule = 269964030 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for forwardingRule.

getProject()

public String getProject()

Project ID for this request.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
TypeDescription
ByteString

The bytes for project.

getRegion()

public String getRegion()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetForwardingRuleRequest other)

public GetForwardingRuleRequest.Builder mergeFrom(GetForwardingRuleRequest other)
Parameter
NameDescription
otherGetForwardingRuleRequest
Returns
TypeDescription
GetForwardingRuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setForwardingRule(String value)

public GetForwardingRuleRequest.Builder setForwardingRule(String value)

Name of the ForwardingRule resource to return.

string forwarding_rule = 269964030 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The forwardingRule to set.

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public GetForwardingRuleRequest.Builder setForwardingRuleBytes(ByteString value)

Name of the ForwardingRule resource to return.

string forwarding_rule = 269964030 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for forwardingRule to set.

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

setProject(String value)

public GetForwardingRuleRequest.Builder setProject(String value)

Project ID for this request.

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

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetForwardingRuleRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

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

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

setRegion(String value)

public GetForwardingRuleRequest.Builder setRegion(String value)

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetForwardingRuleRequest.Builder setRegionBytes(ByteString value)

Name of the region scoping this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
GetForwardingRuleRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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