Class GetGlobalForwardingRuleRequest.Builder (1.12.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetGlobalForwardingRuleRequest build()
Returns
TypeDescription
GetGlobalForwardingRuleRequest

buildPartial()

public GetGlobalForwardingRuleRequest buildPartial()
Returns
TypeDescription
GetGlobalForwardingRuleRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GetGlobalForwardingRuleRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetGlobalForwardingRuleRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetGlobalForwardingRuleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetGlobalForwardingRuleRequest getDefaultInstanceForType()
Returns
TypeDescription
GetGlobalForwardingRuleRequest

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetGlobalForwardingRuleRequest other)

public GetGlobalForwardingRuleRequest.Builder mergeFrom(GetGlobalForwardingRuleRequest other)
Parameter
NameDescription
otherGetGlobalForwardingRuleRequest
Returns
TypeDescription
GetGlobalForwardingRuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public GetGlobalForwardingRuleRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The forwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for forwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueString

The project to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetGlobalForwardingRuleRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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