MockRequestBody
class MockRequestBody extends Message (View source)
internal |
Generated from protobuf message google.apicore.testing.MockRequestBody
Properties
protected | $name | Generated from protobuf field |
|
protected | $number | Generated from protobuf field |
|
protected | $nested_message | Generated from protobuf field |
|
protected | $bytes_value | Generated from protobuf field |
|
protected | $duration_value | Generated from protobuf field |
|
protected | $field_mask | Generated from protobuf field |
|
protected | $int64_value | Generated from protobuf field |
|
protected | $list_value | Generated from protobuf field |
|
protected | $string_value | Generated from protobuf field |
|
protected | $struct_value | Generated from protobuf field |
|
protected | $timestamp_value | Generated from protobuf field |
|
protected | $value_value | Generated from protobuf field |
|
protected | $oneof_field |
Methods
Constructor.
Generated from protobuf field string name = 1;
Generated from protobuf field string name = 1;
Generated from protobuf field uint64 number = 2;
Generated from protobuf field uint64 number = 2;
Generated from protobuf field repeated string repeated_field = 3;
Generated from protobuf field repeated string repeated_field = 3;
Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;
No description
No description
Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;
Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;
No description
No description
Returns the unboxed value from getBytesValue()
Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;
Sets the field by wrapping a primitive type in a Google\Protobuf\BytesValue object.
Generated from protobuf field .google.protobuf.Duration duration_value = 6;
No description
No description
Generated from protobuf field .google.protobuf.Duration duration_value = 6;
Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;
No description
No description
Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;
Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;
No description
No description
Returns the unboxed value from getInt64Value()
Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
Generated from protobuf field .google.protobuf.ListValue list_value = 9;
No description
No description
Generated from protobuf field .google.protobuf.ListValue list_value = 9;
Generated from protobuf field .google.protobuf.StringValue string_value = 10;
No description
No description
Returns the unboxed value from getStringValue()
Generated from protobuf field .google.protobuf.StringValue string_value = 10;
Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.
Generated from protobuf field .google.protobuf.Struct struct_value = 11;
No description
No description
Generated from protobuf field .google.protobuf.Struct struct_value = 11;
Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;
No description
No description
Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;
Generated from protobuf field .google.protobuf.Value value_value = 13;
No description
No description
Generated from protobuf field .google.protobuf.Value value_value = 13;
Generated from protobuf field string field_1 = 14;
No description
Generated from protobuf field string field_1 = 14;
Generated from protobuf field string field_2 = 15;
No description
Generated from protobuf field string field_2 = 15;
Generated from protobuf field string field_3 = 16;
No description
Generated from protobuf field string field_3 = 16;
No description
Details
__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;
MockRequestBody
getNestedMessage()
Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;
hasNestedMessage()
No description
clearNestedMessage()
No description
$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;
hasBytesValue()
No description
clearBytesValue()
No description
string|null
getBytesValueUnwrapped()
Returns the unboxed value from 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;
$this
setBytesValueUnwrapped(string|null $var)
Sets the field by wrapping a primitive type in a Google\Protobuf\BytesValue object.
Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;
Duration
getDurationValue()
Generated from protobuf field .google.protobuf.Duration duration_value = 6;
hasDurationValue()
No description
clearDurationValue()
No description
$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;
hasFieldMask()
No description
clearFieldMask()
No description
$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;
hasInt64Value()
No description
clearInt64Value()
No description
int|string|null
getInt64ValueUnwrapped()
Returns the unboxed value from 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;
$this
setInt64ValueUnwrapped(int|string|null $var)
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;
ListValue
getListValue()
Generated from protobuf field .google.protobuf.ListValue list_value = 9;
hasListValue()
No description
clearListValue()
No description
$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;
hasStringValue()
No description
clearStringValue()
No description
string|null
getStringValueUnwrapped()
Returns the unboxed value from 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;
$this
setStringValueUnwrapped(string|null $var)
Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.
Generated from protobuf field .google.protobuf.StringValue string_value = 10;
Struct
getStructValue()
Generated from protobuf field .google.protobuf.Struct struct_value = 11;
hasStructValue()
No description
clearStructValue()
No description
$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;
hasTimestampValue()
No description
clearTimestampValue()
No description
$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;
hasValueValue()
No description
clearValueValue()
No description
$this
setValueValue(Value $var)
Generated from protobuf field .google.protobuf.Value value_value = 13;
string
getField1()
Generated from protobuf field string field_1 = 14;
hasField1()
No description
$this
setField1(string $var)
Generated from protobuf field string field_1 = 14;
string
getField2()
Generated from protobuf field string field_2 = 15;
hasField2()
No description
$this
setField2(string $var)
Generated from protobuf field string field_2 = 15;
string
getField3()
Generated from protobuf field string field_3 = 16;
hasField3()
No description
$this
setField3(string $var)
Generated from protobuf field string field_3 = 16;
string
getOneofField()
No description