Class GetGlobalForwardingRuleRequest.Builder (1.59.0)

public static final class GetGlobalForwardingRuleRequest.Builder extends GeneratedMessageV3.Builder<GetGlobalForwardingRuleRequest.Builder> implements GetGlobalForwardingRuleRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetGlobalForwardingRuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetGlobalForwardingRuleRequest build()
Returns
Type Description
GetGlobalForwardingRuleRequest

buildPartial()

public GetGlobalForwardingRuleRequest buildPartial()
Returns
Type Description
GetGlobalForwardingRuleRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearForwardingRule()

public GetGlobalForwardingRuleRequest.Builder clearForwardingRule()

Name of the ForwardingRule resource to return.

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

Returns
Type Description
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetGlobalForwardingRuleRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetGlobalForwardingRuleRequest getDefaultInstanceForType()
Returns
Type Description
GetGlobalForwardingRuleRequest

getDescriptorForType()

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

getForwardingRule()

public String getForwardingRule()

Name of the ForwardingRule resource to return.

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

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

Name of the ForwardingRule resource to return.

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

Returns
Type Description
ByteString

The bytes for forwardingRule.

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(GetGlobalForwardingRuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setForwardingRule(String value)

public GetGlobalForwardingRuleRequest.Builder setForwardingRule(String value)

Name of the ForwardingRule resource to return.

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

Parameter
Name Description
value String

The forwardingRule to set.

Returns
Type Description
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public GetGlobalForwardingRuleRequest.Builder setForwardingRuleBytes(ByteString value)

Name of the ForwardingRule resource to return.

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

Parameter
Name Description
value ByteString

The bytes for forwardingRule to set.

Returns
Type Description
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

setProject(String value)

public GetGlobalForwardingRuleRequest.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
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetGlobalForwardingRuleRequest.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
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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