class MockRequestBody extends Message (View source)

Generated from protobuf message google.apicore.testing.MockRequestBody

Properties

protected $oneof_field

Methods

__construct(array $data = NULL)

Constructor.

string
getName()

Generated from protobuf field string name = 1;

$this
setName(string $var)

Generated from protobuf field string name = 1;

int|string
getNumber()

Generated from protobuf field uint64 number = 2;

$this
setNumber(int|string $var)

Generated from protobuf field uint64 number = 2;

RepeatedField
getRepeatedField()

Generated from protobuf field repeated string repeated_field = 3;

$this
setRepeatedField(string[]|RepeatedField $var)

Generated from protobuf field repeated string repeated_field = 3;

getNestedMessage()

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

$this
setNestedMessage(MockRequestBody $var)

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

BytesValue
getBytesValue()

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

$this
setBytesValue(BytesValue $var)

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Duration
getDurationValue()

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

$this
setDurationValue(Duration $var)

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

FieldMask
getFieldMask()

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

$this
setFieldMask(FieldMask $var)

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

Int64Value
getInt64Value()

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

$this
setInt64Value(Int64Value $var)

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

ListValue
getListValue()

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

$this
setListValue(ListValue $var)

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

StringValue
getStringValue()

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

$this
setStringValue(StringValue $var)

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Struct
getStructValue()

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

$this
setStructValue(Struct $var)

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

Timestamp
getTimestampValue()

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

$this
setTimestampValue(Timestamp $var)

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

Value
getValueValue()

Generated from protobuf field .google.protobuf.Value value_value = 13;

$this
setValueValue(Value $var)

Generated from protobuf field .google.protobuf.Value value_value = 13;

string
getField1()

Generated from protobuf field string field_1 = 14;

$this
setField1(string $var)

Generated from protobuf field string field_1 = 14;

string
getField2()

Generated from protobuf field string field_2 = 15;

$this
setField2(string $var)

Generated from protobuf field string field_2 = 15;

string
getField3()

Generated from protobuf field string field_3 = 16;

$this
setField3(string $var)

Generated from protobuf field string field_3 = 16;

string
getOneofField()

No description

Details

__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $name
@type int|string $number
@type string[]|\Google\Protobuf\Internal\RepeatedField $repeated_field
@type \Google\ApiCore\Testing\MockRequestBody $nested_message
@type \Google\Protobuf\BytesValue $bytes_value
@type \Google\Protobuf\Duration $duration_value
@type \Google\Protobuf\FieldMask $field_mask
@type \Google\Protobuf\Int64Value $int64_value
@type \Google\Protobuf\ListValue $list_value
@type \Google\Protobuf\StringValue $string_value
@type \Google\Protobuf\Struct $struct_value
@type \Google\Protobuf\Timestamp $timestamp_value
@type \Google\Protobuf\Value $value_value
@type string $field_1
@type string $field_2
@type string $field_3

}

string getName()

Generated from protobuf field string name = 1;

Return Value

string

$this setName(string $var)

Generated from protobuf field string name = 1;

Parameters

string $var

Return Value

$this

int|string getNumber()

Generated from protobuf field uint64 number = 2;

Return Value

int|string

$this setNumber(int|string $var)

Generated from protobuf field uint64 number = 2;

Parameters

int|string $var

Return Value

$this

RepeatedField getRepeatedField()

Generated from protobuf field repeated string repeated_field = 3;

Return Value

RepeatedField

$this setRepeatedField(string[]|RepeatedField $var)

Generated from protobuf field repeated string repeated_field = 3;

Parameters

string[]|RepeatedField $var

Return Value

$this

MockRequestBody getNestedMessage()

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

Return Value

MockRequestBody

$this setNestedMessage(MockRequestBody $var)

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

Parameters

MockRequestBody $var

Return Value

$this

BytesValue getBytesValue()

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Return Value

BytesValue

$this setBytesValue(BytesValue $var)

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Parameters

BytesValue $var

Return Value

$this

Duration getDurationValue()

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

Return Value

Duration

$this setDurationValue(Duration $var)

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

Parameters

Duration $var

Return Value

$this

FieldMask getFieldMask()

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

Return Value

FieldMask

$this setFieldMask(FieldMask $var)

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

Parameters

FieldMask $var

Return Value

$this

Int64Value getInt64Value()

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

Return Value

Int64Value

$this setInt64Value(Int64Value $var)

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

Parameters

Int64Value $var

Return Value

$this

ListValue getListValue()

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

Return Value

ListValue

$this setListValue(ListValue $var)

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

Parameters

ListValue $var

Return Value

$this

StringValue getStringValue()

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Return Value

StringValue

$this setStringValue(StringValue $var)

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Parameters

StringValue $var

Return Value

$this

Struct getStructValue()

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

Return Value

Struct

$this setStructValue(Struct $var)

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

Parameters

Struct $var

Return Value

$this

Timestamp getTimestampValue()

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

Return Value

Timestamp

$this setTimestampValue(Timestamp $var)

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

Parameters

Timestamp $var

Return Value

$this

Value getValueValue()

Generated from protobuf field .google.protobuf.Value value_value = 13;

Return Value

Value

$this setValueValue(Value $var)

Generated from protobuf field .google.protobuf.Value value_value = 13;

Parameters

Value $var

Return Value

$this

string getField1()

Generated from protobuf field string field_1 = 14;

Return Value

string

$this setField1(string $var)

Generated from protobuf field string field_1 = 14;

Parameters

string $var

Return Value

$this

string getField2()

Generated from protobuf field string field_2 = 15;

Return Value

string

$this setField2(string $var)

Generated from protobuf field string field_2 = 15;

Parameters

string $var

Return Value

$this

string getField3()

Generated from protobuf field string field_3 = 16;

Return Value

string

$this setField3(string $var)

Generated from protobuf field string field_3 = 16;

Parameters

string $var

Return Value

$this

string getOneofField()

Return Value

string